diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0bd0ee06..b6a49cc8 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1 +1,7 @@ -Fixes # (it's a good idea to open an issue first for context and/or discussion) \ No newline at end of file +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 # ☕️ diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml new file mode 100644 index 00000000..f247d5c7 --- /dev/null +++ b/.github/trusted-contribution.yml @@ -0,0 +1,2 @@ +trustedContributors: +- renovate-bot \ No newline at end of file diff --git a/.kokoro/build.sh b/.kokoro/build.sh index f1ae5840..99920686 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -20,36 +20,45 @@ 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} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C +# 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_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) fi +RETURN_CODE=0 +set +e + case ${JOB_TYPE} in test) mvn test -B -Dclirr.skip=true -Denforcer.skip=true - bash ${KOKORO_GFILE_DIR}/codecov.sh - bash .kokoro/coerce_logs.sh + RETURN_CODE=$? ;; lint) mvn \ -Penable-samples \ com.coveo:fmt-maven-plugin:check + RETURN_CODE=$? ;; javadoc) mvn javadoc:javadoc javadoc:test-javadoc + RETURN_CODE=$? ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ @@ -59,21 +68,46 @@ integration) -Denforcer.skip=true \ -fae \ verify - bash .kokoro/coerce_logs.sh + RETURN_CODE=$? ;; samples) - mvn -B \ - -Penable-samples \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - bash .kokoro/coerce_logs.sh + 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/buildcop + ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-tasks +fi + +echo "exiting with ${RETURN_CODE}" +exit ${RETURN_CODE} diff --git a/.kokoro/common.sh b/.kokoro/common.sh new file mode 100644 index 00000000..a3bbc5f6 --- /dev/null +++ b/.kokoro/common.sh @@ -0,0 +1,44 @@ +#!/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 retry_with_backoff { + attempts_left=$1 + sleep_seconds=$2 + shift 2 + command=$@ + + echo "${command}" + ${command} + exit_code=$? + + 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 +} diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg index 3b017fc8..495cc7ba 100644 --- a/.kokoro/continuous/java8.cfg +++ b/.kokoro/continuous/java8.cfg @@ -5,3 +5,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "REPORT_COVERAGE" + value: "true" +} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index cb6ee6eb..0aade871 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -15,7 +15,13 @@ set -eo pipefail -cd github/java-tasks/ +## 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 @@ -24,8 +30,9 @@ echo $JOB_TYPE export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh index 6a4da32f..759ab4e2 100755 --- a/.kokoro/linkage-monitor.sh +++ b/.kokoro/linkage-monitor.sh @@ -17,18 +17,26 @@ set -eo pipefail # Display commands being run. set -x -cd github/java-tasks/ +## 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} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true +# 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 # Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR JAR=linkage-monitor-latest-all-deps.jar diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index 3b017fc8..8bf59c02 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -5,3 +5,17 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "ENABLE_BUILD_COP" + value: "true" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg index 3b017fc8..495cc7ba 100644 --- a/.kokoro/nightly/java8.cfg +++ b/.kokoro/nightly/java8.cfg @@ -5,3 +5,8 @@ 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 index 9a910249..b4b051cd 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -2,23 +2,28 @@ # Configure the docker image for kokoro-trampoline. env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" } env_vars: { - key: "JOB_TYPE" - value: "samples" + key: "JOB_TYPE" + value: "samples" } env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "gcloud-devel" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +env_vars: { + key: "ENABLE_BUILD_COP" + value: "true" } before_action { diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg index 3b017fc8..495cc7ba 100644 --- a/.kokoro/presubmit/java8.cfg +++ b/.kokoro/presubmit/java8.cfg @@ -5,3 +5,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "REPORT_COVERAGE" + value: "true" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f93c95f..8195ed72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [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) diff --git a/README.md b/README.md index 1fa7eee2..7b2be4e2 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 3.5.0 + 4.3.0 pom import @@ -29,7 +29,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud google-cloud-tasks - + ``` [//]: # ({x-version-update-start:google-cloud-tasks:released}) @@ -40,17 +40,18 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 1.28.2 + 1.29.0 + ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.28.2' +compile 'com.google.cloud:google-cloud-tasks:1.29.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.28.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.29.0" ``` [//]: # ({x-version-update-end}) @@ -84,6 +85,8 @@ use this Cloud Tasks Client Library. + + ## Troubleshooting To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. @@ -152,4 +155,5 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [license]: https://github.com/googleapis/java-tasks/blob/master/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 \ No newline at end of file +[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 diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d0062d1b..c125d168 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.28.2 + 1.29.0 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.84.2 + 0.85.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.84.2 + 0.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.84.2 + 0.85.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.28.2 + 1.29.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.84.2 + 0.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.28.2 + 1.29.0 com.google.cloud google-cloud-tasks - 1.28.2 + 1.29.0 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index de3ba19c..eaca51eb 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.28.2 + 1.29.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 google-cloud-tasks 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 f8a4d8e7..a731c0d0 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 @@ -61,8 +61,12 @@ * * CloudTasksSettings.Builder cloudTasksSettingsBuilder = * CloudTasksSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * 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/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index 3ca67411..f08e9113 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 @@ -93,8 +93,12 @@ * * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = * CloudTasksStubSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * 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/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java index 7e3f63b0..bb2292a4 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 @@ -61,8 +61,12 @@ * * CloudTasksSettings.Builder cloudTasksSettingsBuilder = * CloudTasksSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * 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/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index b622f1aa..2dd9a68a 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 @@ -98,8 +98,12 @@ * * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = * CloudTasksStubSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * 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/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java index 4bdde6a7..226a0bd7 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 @@ -61,8 +61,12 @@ * * CloudTasksSettings.Builder cloudTasksSettingsBuilder = * CloudTasksSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * 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/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index ded102a1..cfc88cd6 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 @@ -93,8 +93,12 @@ * * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = * CloudTasksStubSettings.newBuilder(); - * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * cloudTasksSettingsBuilder + * .getQueueSettings() + * .setRetrySettings( + * cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); * * diff --git a/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml new file mode 100644 index 00000000..cb6877e5 --- /dev/null +++ b/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml @@ -0,0 +1,10 @@ + + + + + + 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 ee3971ad..961a862c 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.28.2 + 1.29.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 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 93d7f7e3..4ba2a4ac 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 @@ -31,7 +31,7 @@ * */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/cloud/tasks/v2/cloudtasks.proto") public final class CloudTasksGrpc { @@ -40,26 +40,18 @@ private CloudTasksGrpc() {} public static final String SERVICE_NAME = "google.cloud.tasks.v2.CloudTasks"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListQueuesMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> - METHOD_LIST_QUEUES = getListQueuesMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> getListQueuesMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListQueuesMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> - getListQueuesMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> @@ -74,8 +66,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.ListQueuesResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "ListQueues")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -91,26 +82,18 @@ private CloudTasksGrpc() {} return getListQueuesMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_GET_QUEUE = getGetQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> getGetQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> - getGetQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> getGetQueueMethod; @@ -123,8 +106,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "GetQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -140,26 +122,18 @@ private CloudTasksGrpc() {} return getGetQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_CREATE_QUEUE = getCreateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> getCreateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> - getCreateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> getCreateQueueMethod; @@ -173,8 +147,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "CreateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -190,26 +163,18 @@ private CloudTasksGrpc() {} return getCreateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_UPDATE_QUEUE = getUpdateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> getUpdateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getUpdateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> - getUpdateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> getUpdateQueueMethod; @@ -223,8 +188,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "UpdateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -240,26 +204,18 @@ private CloudTasksGrpc() {} return getUpdateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> - METHOD_DELETE_QUEUE = getDeleteQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; @@ -272,8 +228,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "DeleteQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -289,26 +244,18 @@ private CloudTasksGrpc() {} return getDeleteQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPurgeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_PURGE_QUEUE = getPurgeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> getPurgeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPurgeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> - getPurgeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> getPurgeQueueMethod; @@ -322,8 +269,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "PurgeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -339,26 +285,18 @@ private CloudTasksGrpc() {} return getPurgeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPauseQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_PAUSE_QUEUE = getPauseQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> getPauseQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPauseQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> - getPauseQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> getPauseQueueMethod; @@ -372,8 +310,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "PauseQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -389,26 +326,18 @@ private CloudTasksGrpc() {} return getPauseQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getResumeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> - METHOD_RESUME_QUEUE = getResumeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> getResumeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getResumeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> - getResumeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> getResumeQueueMethod; @@ -422,8 +351,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "ResumeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -439,26 +367,18 @@ private CloudTasksGrpc() {} return getResumeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_GET_IAM_POLICY = getGetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { @@ -469,9 +389,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2.CloudTasks", "GetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -487,26 +405,18 @@ private CloudTasksGrpc() {} return getGetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_SET_IAM_POLICY = getSetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getSetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { @@ -517,9 +427,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2.CloudTasks", "SetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -535,26 +443,18 @@ private CloudTasksGrpc() {} return getSetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getTestIamPermissionsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - METHOD_TEST_IAM_PERMISSIONS = getTestIamPermissionsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getTestIamPermissionsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethodHelper() { io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> @@ -569,9 +469,7 @@ private CloudTasksGrpc() {} com.google.iam.v1.TestIamPermissionsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2.CloudTasks", "TestIamPermissions")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -588,26 +486,18 @@ private CloudTasksGrpc() {} return getTestIamPermissionsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTasksMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> - METHOD_LIST_TASKS = getListTasksMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> getListTasksMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListTasksMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> - getListTasksMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> getListTasksMethod; @@ -621,8 +511,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2.ListTasksResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "ListTasks")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -638,26 +527,18 @@ private CloudTasksGrpc() {} return getListTasksMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> - METHOD_GET_TASK = getGetTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> getGetTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> - getGetTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> getGetTaskMethod; @@ -670,8 +551,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "GetTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -687,26 +567,18 @@ private CloudTasksGrpc() {} return getGetTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> - METHOD_CREATE_TASK = getCreateTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> getCreateTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> - getCreateTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> getCreateTaskMethod; @@ -719,8 +591,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "CreateTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -736,26 +607,18 @@ private CloudTasksGrpc() {} return getCreateTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty> - METHOD_DELETE_TASK = getDeleteTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty> getDeleteTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethodHelper() { io.grpc.MethodDescriptor getDeleteTaskMethod; if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { @@ -767,8 +630,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "DeleteTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -784,26 +646,18 @@ private CloudTasksGrpc() {} return getDeleteTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRunTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> - METHOD_RUN_TASK = getRunTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> getRunTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getRunTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> - getRunTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> getRunTaskMethod; @@ -816,8 +670,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.cloud.tasks.v2.CloudTasks", "RunTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -835,19 +688,42 @@ private CloudTasksGrpc() {} /** Creates a new async stub that supports all call types for the service */ public static CloudTasksStub newStub(io.grpc.Channel channel) { - return new CloudTasksStub(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) { - return new CloudTasksBlockingStub(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) { - return new CloudTasksFutureStub(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); } /** @@ -872,7 +748,7 @@ public void listQueues( com.google.cloud.tasks.v2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -885,7 +761,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -907,7 +783,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); } /** @@ -931,7 +807,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); } /** @@ -953,7 +829,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); } /** @@ -969,7 +845,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -987,7 +863,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -1010,7 +886,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); } /** @@ -1029,7 +905,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** @@ -1049,7 +925,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** @@ -1068,7 +944,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** @@ -1087,7 +963,7 @@ public void testIamPermissions( public void listTasks( com.google.cloud.tasks.v2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -1100,7 +976,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -1115,7 +991,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1131,7 +1007,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1162,105 +1038,105 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListQueuesMethodHelper(), + getListQueuesMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse>(this, METHODID_LIST_QUEUES))) .addMethod( - getGetQueueMethodHelper(), + getGetQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_GET_QUEUE))) .addMethod( - getCreateQueueMethodHelper(), + getCreateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( - getUpdateQueueMethodHelper(), + getUpdateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( - getDeleteQueueMethodHelper(), + getDeleteQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( - getPurgeQueueMethodHelper(), + getPurgeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_PURGE_QUEUE))) .addMethod( - getPauseQueueMethodHelper(), + getPauseQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_PAUSE_QUEUE))) .addMethod( - getResumeQueueMethodHelper(), + getResumeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( - getGetIamPolicyMethodHelper(), + getGetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethodHelper(), + getSetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethodHelper(), + getTestIamPermissionsMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getListTasksMethodHelper(), + getListTasksMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( - getGetTaskMethodHelper(), + getGetTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task>( this, METHODID_GET_TASK))) .addMethod( - getCreateTaskMethodHelper(), + getCreateTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task>( this, METHODID_CREATE_TASK))) .addMethod( - getDeleteTaskMethodHelper(), + getDeleteTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( - getRunTaskMethodHelper(), + getRunTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task>( @@ -1277,11 +1153,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * work in their applications. * */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractStub { - private CloudTasksStub(io.grpc.Channel channel) { - super(channel); - } - + public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1304,9 +1176,7 @@ public void listQueues( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } /** @@ -1320,9 +1190,7 @@ public void getQueue( com.google.cloud.tasks.v2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1345,7 +1213,7 @@ public void createQueue( com.google.cloud.tasks.v2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1372,7 +1240,7 @@ public void updateQueue( com.google.cloud.tasks.v2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1397,7 +1265,7 @@ public void deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1416,9 +1284,7 @@ public void purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1437,9 +1303,7 @@ public void pauseQueue( com.google.cloud.tasks.v2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1463,7 +1327,7 @@ public void resumeQueue( com.google.cloud.tasks.v2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1485,7 +1349,7 @@ public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1508,7 +1372,7 @@ public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1530,7 +1394,7 @@ public void testIamPermissions( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } @@ -1552,9 +1416,7 @@ public void listTasks( com.google.cloud.tasks.v2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTasksMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } /** @@ -1568,9 +1430,7 @@ public void getTask( com.google.cloud.tasks.v2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1586,9 +1446,7 @@ public void createTask( com.google.cloud.tasks.v2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1605,9 +1463,7 @@ public void deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1639,9 +1495,7 @@ public void runTask( com.google.cloud.tasks.v2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -1654,11 +1508,7 @@ public void runTask( * */ public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractStub { - private CloudTasksBlockingStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractBlockingStub { private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1679,8 +1529,7 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( com.google.cloud.tasks.v2.ListQueuesRequest request) { - return blockingUnaryCall( - getChannel(), getListQueuesMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -1692,7 +1541,7 @@ 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(), getGetQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -1713,8 +1562,7 @@ 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(), getCreateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -1737,8 +1585,7 @@ 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(), getUpdateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -1759,8 +1606,7 @@ public com.google.cloud.tasks.v2.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -1775,8 +1621,7 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2.Queue purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return blockingUnaryCall( - getChannel(), getPurgeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -1793,8 +1638,7 @@ 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(), getPauseQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -1816,8 +1660,7 @@ 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(), getResumeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -1834,8 +1677,7 @@ public com.google.cloud.tasks.v2.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall( - getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1853,8 +1695,7 @@ 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(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1872,7 +1713,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( - getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** @@ -1890,7 +1731,7 @@ 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(), getListTasksMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -1902,7 +1743,7 @@ 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(), getGetTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -1916,8 +1757,7 @@ 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(), getCreateTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -1932,8 +1772,7 @@ public com.google.cloud.tasks.v2.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -1963,7 +1802,7 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2.Task runTask( com.google.cloud.tasks.v2.RunTaskRequest request) { - return blockingUnaryCall(getChannel(), getRunTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -1976,11 +1815,7 @@ public com.google.cloud.tasks.v2.Task runTask( * */ public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractStub { - private CloudTasksFutureStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractFutureStub { private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2002,7 +1837,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.tasks.v2.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2.ListQueuesRequest request) { return futureUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } /** @@ -2014,8 +1849,7 @@ 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(getGetQueueMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -2037,7 +1871,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( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } /** @@ -2061,7 +1895,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( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } /** @@ -2083,7 +1917,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( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } /** @@ -2099,7 +1933,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( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } /** @@ -2117,7 +1951,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( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } /** @@ -2140,7 +1974,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( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } /** @@ -2159,7 +1993,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( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2179,7 +2013,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( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2198,7 +2032,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** @@ -2217,8 +2051,7 @@ 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(getListTasksMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2230,8 +2063,7 @@ 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(getGetTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2246,7 +2078,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( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } /** @@ -2262,7 +2094,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( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } /** @@ -2292,8 +2124,7 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2.RunTaskRequest request) { - return futureUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } @@ -2478,22 +2309,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethodHelper()) - .addMethod(getGetQueueMethodHelper()) - .addMethod(getCreateQueueMethodHelper()) - .addMethod(getUpdateQueueMethodHelper()) - .addMethod(getDeleteQueueMethodHelper()) - .addMethod(getPurgeQueueMethodHelper()) - .addMethod(getPauseQueueMethodHelper()) - .addMethod(getResumeQueueMethodHelper()) - .addMethod(getGetIamPolicyMethodHelper()) - .addMethod(getSetIamPolicyMethodHelper()) - .addMethod(getTestIamPermissionsMethodHelper()) - .addMethod(getListTasksMethodHelper()) - .addMethod(getGetTaskMethodHelper()) - .addMethod(getCreateTaskMethodHelper()) - .addMethod(getDeleteTaskMethodHelper()) - .addMethod(getRunTaskMethodHelper()) + .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(); } } diff --git a/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml new file mode 100644 index 00000000..3b75055a --- /dev/null +++ b/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml @@ -0,0 +1,10 @@ + + + + + + 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 91ffbc04..550765eb 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.84.2 + 0.85.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 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 d428229b..b4d447b1 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 @@ -31,7 +31,7 @@ * */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/cloud/tasks/v2beta2/cloudtasks.proto") public final class CloudTasksGrpc { @@ -40,30 +40,20 @@ private CloudTasksGrpc() {} public static final String SERVICE_NAME = "google.cloud.tasks.v2beta2.CloudTasks"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListQueuesMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - METHOD_LIST_QUEUES = getListQueuesMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ListQueuesRequest, com.google.cloud.tasks.v2beta2.ListQueuesResponse> getListQueuesMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListQueuesMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - getListQueuesMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ListQueuesRequest, com.google.cloud.tasks.v2beta2.ListQueuesResponse> @@ -78,9 +68,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.ListQueuesResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "ListQueues")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -98,26 +86,18 @@ private CloudTasksGrpc() {} return getListQueuesMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_GET_QUEUE = getGetQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getGetQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getGetQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getGetQueueMethod; @@ -131,9 +111,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "GetQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -149,26 +127,18 @@ private CloudTasksGrpc() {} return getGetQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_CREATE_QUEUE = getCreateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getCreateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getCreateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getCreateQueueMethod; @@ -182,9 +152,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "CreateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -201,26 +169,18 @@ private CloudTasksGrpc() {} return getCreateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_UPDATE_QUEUE = getUpdateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getUpdateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getUpdateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getUpdateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getUpdateQueueMethod; @@ -234,9 +194,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "UpdateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -253,26 +211,18 @@ private CloudTasksGrpc() {} return getUpdateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> - METHOD_DELETE_QUEUE = getDeleteQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; @@ -286,9 +236,7 @@ private CloudTasksGrpc() {} com.google.protobuf.Empty> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "DeleteQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -305,26 +253,18 @@ private CloudTasksGrpc() {} return getDeleteQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPurgeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_PURGE_QUEUE = getPurgeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getPurgeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPurgeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPurgeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getPurgeQueueMethod; @@ -338,9 +278,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "PurgeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -357,26 +295,18 @@ private CloudTasksGrpc() {} return getPurgeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPauseQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_PAUSE_QUEUE = getPauseQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getPauseQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPauseQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPauseQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getPauseQueueMethod; @@ -390,9 +320,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "PauseQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -409,26 +337,18 @@ private CloudTasksGrpc() {} return getPauseQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getResumeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - METHOD_RESUME_QUEUE = getResumeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getResumeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getResumeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getResumeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> getResumeQueueMethod; @@ -442,9 +362,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "ResumeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -461,26 +379,18 @@ private CloudTasksGrpc() {} return getResumeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_GET_IAM_POLICY = getGetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { @@ -491,9 +401,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "GetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -509,26 +417,18 @@ private CloudTasksGrpc() {} return getGetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_SET_IAM_POLICY = getSetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getSetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { @@ -539,9 +439,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "SetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -557,26 +455,18 @@ private CloudTasksGrpc() {} return getSetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getTestIamPermissionsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - METHOD_TEST_IAM_PERMISSIONS = getTestIamPermissionsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getTestIamPermissionsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethodHelper() { io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> @@ -591,9 +481,7 @@ private CloudTasksGrpc() {} com.google.iam.v1.TestIamPermissionsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "TestIamPermissions")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -610,30 +498,20 @@ private CloudTasksGrpc() {} return getTestIamPermissionsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTasksMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse> - METHOD_LIST_TASKS = getListTasksMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ListTasksRequest, com.google.cloud.tasks.v2beta2.ListTasksResponse> getListTasksMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListTasksMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse> - getListTasksMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.ListTasksRequest, com.google.cloud.tasks.v2beta2.ListTasksResponse> @@ -648,9 +526,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.ListTasksResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "ListTasks")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -667,26 +543,18 @@ private CloudTasksGrpc() {} return getListTasksMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> - METHOD_GET_TASK = getGetTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> getGetTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getGetTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> getGetTaskMethod; @@ -700,9 +568,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "GetTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -718,26 +584,18 @@ private CloudTasksGrpc() {} return getGetTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> - METHOD_CREATE_TASK = getCreateTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> getCreateTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getCreateTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> getCreateTaskMethod; @@ -751,9 +609,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "CreateTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -770,26 +626,18 @@ private CloudTasksGrpc() {} return getCreateTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> - METHOD_DELETE_TASK = getDeleteTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> getDeleteTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> getDeleteTaskMethod; @@ -802,9 +650,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "DeleteTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -821,30 +667,20 @@ private CloudTasksGrpc() {} return getDeleteTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getLeaseTasksMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - METHOD_LEASE_TASKS = getLeaseTasksMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.LeaseTasksRequest, com.google.cloud.tasks.v2beta2.LeaseTasksResponse> getLeaseTasksMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getLeaseTasksMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - getLeaseTasksMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.LeaseTasksRequest, com.google.cloud.tasks.v2beta2.LeaseTasksResponse> @@ -859,9 +695,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.LeaseTasksResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "LeaseTasks")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseTasks")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -879,26 +713,18 @@ private CloudTasksGrpc() {} return getLeaseTasksMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getAcknowledgeTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> - METHOD_ACKNOWLEDGE_TASK = getAcknowledgeTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> getAcknowledgeTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getAcknowledgeTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> - getAcknowledgeTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> getAcknowledgeTaskMethod; @@ -912,9 +738,7 @@ private CloudTasksGrpc() {} com.google.protobuf.Empty> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "AcknowledgeTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AcknowledgeTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -932,26 +756,18 @@ private CloudTasksGrpc() {} return getAcknowledgeTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRenewLeaseMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - METHOD_RENEW_LEASE = getRenewLeaseMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> getRenewLeaseMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getRenewLeaseMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getRenewLeaseMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> getRenewLeaseMethod; @@ -965,9 +781,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "RenewLease")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenewLease")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -984,26 +798,18 @@ private CloudTasksGrpc() {} return getRenewLeaseMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCancelLeaseMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - METHOD_CANCEL_LEASE = getCancelLeaseMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> getCancelLeaseMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCancelLeaseMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getCancelLeaseMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> getCancelLeaseMethod; @@ -1017,9 +823,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "CancelLease")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelLease")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -1036,26 +840,18 @@ private CloudTasksGrpc() {} return getCancelLeaseMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRunTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> - METHOD_RUN_TASK = getRunTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> getRunTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getRunTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getRunTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> getRunTaskMethod; @@ -1069,9 +865,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta2.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta2.CloudTasks", "RunTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -1089,19 +883,42 @@ private CloudTasksGrpc() {} /** Creates a new async stub that supports all call types for the service */ public static CloudTasksStub newStub(io.grpc.Channel channel) { - return new CloudTasksStub(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) { - return new CloudTasksBlockingStub(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) { - return new CloudTasksFutureStub(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); } /** @@ -1126,7 +943,7 @@ public void listQueues( com.google.cloud.tasks.v2beta2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -1139,7 +956,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -1161,7 +978,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); } /** @@ -1185,7 +1002,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); } /** @@ -1207,7 +1024,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); } /** @@ -1223,7 +1040,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -1241,7 +1058,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -1264,7 +1081,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); } /** @@ -1283,7 +1100,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** @@ -1303,7 +1120,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** @@ -1322,7 +1139,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** @@ -1342,7 +1159,7 @@ public void listTasks( com.google.cloud.tasks.v2beta2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -1355,7 +1172,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -1372,7 +1189,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1388,7 +1205,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1420,7 +1237,7 @@ public void leaseTasks( com.google.cloud.tasks.v2beta2.LeaseTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getLeaseTasksMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getLeaseTasksMethod(), responseObserver); } /** @@ -1443,7 +1260,7 @@ public void leaseTasks( public void acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAcknowledgeTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getAcknowledgeTaskMethod(), responseObserver); } /** @@ -1459,7 +1276,7 @@ public void acknowledgeTask( public void renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRenewLeaseMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getRenewLeaseMethod(), responseObserver); } /** @@ -1476,7 +1293,7 @@ public void renewLease( public void cancelLease( com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelLeaseMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCancelLeaseMethod(), responseObserver); } /** @@ -1509,131 +1326,131 @@ public void cancelLease( public void runTask( com.google.cloud.tasks.v2beta2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListQueuesMethodHelper(), + getListQueuesMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ListQueuesRequest, com.google.cloud.tasks.v2beta2.ListQueuesResponse>( this, METHODID_LIST_QUEUES))) .addMethod( - getGetQueueMethodHelper(), + getGetQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_GET_QUEUE))) .addMethod( - getCreateQueueMethodHelper(), + getCreateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( - getUpdateQueueMethodHelper(), + getUpdateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( - getDeleteQueueMethodHelper(), + getDeleteQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( - getPurgeQueueMethodHelper(), + getPurgeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PURGE_QUEUE))) .addMethod( - getPauseQueueMethodHelper(), + getPauseQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PAUSE_QUEUE))) .addMethod( - getResumeQueueMethodHelper(), + getResumeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( - getGetIamPolicyMethodHelper(), + getGetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethodHelper(), + getSetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethodHelper(), + getTestIamPermissionsMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getListTasksMethodHelper(), + getListTasksMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ListTasksRequest, com.google.cloud.tasks.v2beta2.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( - getGetTaskMethodHelper(), + getGetTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_GET_TASK))) .addMethod( - getCreateTaskMethodHelper(), + getCreateTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CREATE_TASK))) .addMethod( - getDeleteTaskMethodHelper(), + getDeleteTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( - getLeaseTasksMethodHelper(), + getLeaseTasksMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.LeaseTasksRequest, com.google.cloud.tasks.v2beta2.LeaseTasksResponse>( this, METHODID_LEASE_TASKS))) .addMethod( - getAcknowledgeTaskMethodHelper(), + getAcknowledgeTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty>(this, METHODID_ACKNOWLEDGE_TASK))) .addMethod( - getRenewLeaseMethodHelper(), + getRenewLeaseMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_RENEW_LEASE))) .addMethod( - getCancelLeaseMethodHelper(), + getCancelLeaseMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CANCEL_LEASE))) .addMethod( - getRunTaskMethodHelper(), + getRunTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.RunTaskRequest, @@ -1650,11 +1467,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * work in their applications. * */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractStub { - private CloudTasksStub(io.grpc.Channel channel) { - super(channel); - } - + public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1677,9 +1490,7 @@ public void listQueues( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } /** @@ -1693,9 +1504,7 @@ public void getQueue( com.google.cloud.tasks.v2beta2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1718,7 +1527,7 @@ public void createQueue( com.google.cloud.tasks.v2beta2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1745,7 +1554,7 @@ public void updateQueue( com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1770,7 +1579,7 @@ public void deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1789,9 +1598,7 @@ public void purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1810,9 +1617,7 @@ public void pauseQueue( com.google.cloud.tasks.v2beta2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1836,7 +1641,7 @@ public void resumeQueue( com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1858,7 +1663,7 @@ public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1881,7 +1686,7 @@ public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1903,7 +1708,7 @@ public void testIamPermissions( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } @@ -1926,9 +1731,7 @@ public void listTasks( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTasksMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } /** @@ -1942,9 +1745,7 @@ public void getTask( com.google.cloud.tasks.v2beta2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1962,9 +1763,7 @@ public void createTask( com.google.cloud.tasks.v2beta2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1981,9 +1780,7 @@ public void deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -2016,9 +1813,7 @@ public void leaseTasks( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getLeaseTasksMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request, responseObserver); } /** @@ -2042,7 +1837,7 @@ public void acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getAcknowledgeTaskMethodHelper(), getCallOptions()), + getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), request, responseObserver); } @@ -2061,9 +1856,7 @@ public void renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getRenewLeaseMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request, responseObserver); } /** @@ -2081,7 +1874,7 @@ public void cancelLease( com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCancelLeaseMethodHelper(), getCallOptions()), + getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), request, responseObserver); } @@ -2117,9 +1910,7 @@ public void runTask( com.google.cloud.tasks.v2beta2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -2132,11 +1923,7 @@ public void runTask( * */ public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractStub { - private CloudTasksBlockingStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractBlockingStub { private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2157,8 +1944,7 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return blockingUnaryCall( - getChannel(), getListQueuesMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -2170,7 +1956,7 @@ 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(), getGetQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -2191,8 +1977,7 @@ 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(), getCreateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -2215,8 +2000,7 @@ 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(), getUpdateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -2237,8 +2021,7 @@ public com.google.cloud.tasks.v2beta2.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -2253,8 +2036,7 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2beta2.Queue purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return blockingUnaryCall( - getChannel(), getPurgeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -2271,8 +2053,7 @@ 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(), getPauseQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -2294,8 +2075,7 @@ 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(), getResumeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -2312,8 +2092,7 @@ public com.google.cloud.tasks.v2beta2.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall( - getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -2331,8 +2110,7 @@ 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(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -2350,7 +2128,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( - getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** @@ -2368,7 +2146,7 @@ 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(), getListTasksMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -2380,7 +2158,7 @@ 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(), getGetTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -2396,8 +2174,7 @@ 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(), getCreateTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -2412,8 +2189,7 @@ public com.google.cloud.tasks.v2beta2.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -2443,8 +2219,7 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return blockingUnaryCall( - getChannel(), getLeaseTasksMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getLeaseTasksMethod(), getCallOptions(), request); } /** @@ -2466,8 +2241,7 @@ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( */ public com.google.protobuf.Empty acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return blockingUnaryCall( - getChannel(), getAcknowledgeTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getAcknowledgeTaskMethod(), getCallOptions(), request); } /** @@ -2482,8 +2256,7 @@ public com.google.protobuf.Empty acknowledgeTask( */ public com.google.cloud.tasks.v2beta2.Task renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return blockingUnaryCall( - getChannel(), getRenewLeaseMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getRenewLeaseMethod(), getCallOptions(), request); } /** @@ -2499,8 +2272,7 @@ 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(), getCancelLeaseMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCancelLeaseMethod(), getCallOptions(), request); } /** @@ -2532,7 +2304,7 @@ 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(), getRunTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -2545,11 +2317,7 @@ public com.google.cloud.tasks.v2beta2.Task runTask( * */ public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractStub { - private CloudTasksFutureStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractFutureStub { private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2571,7 +2339,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.tasks.v2beta2.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { return futureUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } /** @@ -2583,8 +2351,7 @@ 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(getGetQueueMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -2606,7 +2373,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( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } /** @@ -2630,7 +2397,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( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } /** @@ -2652,7 +2419,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( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } /** @@ -2668,7 +2435,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( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } /** @@ -2686,7 +2453,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( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } /** @@ -2709,7 +2476,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( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } /** @@ -2728,7 +2495,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( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2748,7 +2515,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( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2767,7 +2534,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** @@ -2786,8 +2553,7 @@ 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(getListTasksMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2799,8 +2565,7 @@ 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(getGetTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2817,7 +2582,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( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } /** @@ -2833,7 +2598,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( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } /** @@ -2865,7 +2630,7 @@ public com.google.common.util.concurrent.ListenableFuture leaseTasks(com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { return futureUnaryCall( - getChannel().newCall(getLeaseTasksMethodHelper(), getCallOptions()), request); + getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request); } /** @@ -2888,7 +2653,7 @@ public com.google.common.util.concurrent.ListenableFuture acknowledgeTask(com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { return futureUnaryCall( - getChannel().newCall(getAcknowledgeTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), request); } /** @@ -2904,7 +2669,7 @@ public com.google.common.util.concurrent.ListenableFuture renewLease(com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { return futureUnaryCall( - getChannel().newCall(getRenewLeaseMethodHelper(), getCallOptions()), request); + getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request); } /** @@ -2921,7 +2686,7 @@ public com.google.common.util.concurrent.ListenableFuture cancelLease(com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { return futureUnaryCall( - getChannel().newCall(getCancelLeaseMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), request); } /** @@ -2953,8 +2718,7 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return futureUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } @@ -3164,26 +2928,26 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethodHelper()) - .addMethod(getGetQueueMethodHelper()) - .addMethod(getCreateQueueMethodHelper()) - .addMethod(getUpdateQueueMethodHelper()) - .addMethod(getDeleteQueueMethodHelper()) - .addMethod(getPurgeQueueMethodHelper()) - .addMethod(getPauseQueueMethodHelper()) - .addMethod(getResumeQueueMethodHelper()) - .addMethod(getGetIamPolicyMethodHelper()) - .addMethod(getSetIamPolicyMethodHelper()) - .addMethod(getTestIamPermissionsMethodHelper()) - .addMethod(getListTasksMethodHelper()) - .addMethod(getGetTaskMethodHelper()) - .addMethod(getCreateTaskMethodHelper()) - .addMethod(getDeleteTaskMethodHelper()) - .addMethod(getLeaseTasksMethodHelper()) - .addMethod(getAcknowledgeTaskMethodHelper()) - .addMethod(getRenewLeaseMethodHelper()) - .addMethod(getCancelLeaseMethodHelper()) - .addMethod(getRunTaskMethodHelper()) + .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(); } } diff --git a/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml new file mode 100644 index 00000000..a4437bbb --- /dev/null +++ b/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml @@ -0,0 +1,10 @@ + + + + + + 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 c297449c..5e74f07e 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.84.2 + 0.85.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 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 3e306f69..4a438234 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 @@ -31,7 +31,7 @@ * */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/cloud/tasks/v2beta3/cloudtasks.proto") public final class CloudTasksGrpc { @@ -40,30 +40,20 @@ private CloudTasksGrpc() {} public static final String SERVICE_NAME = "google.cloud.tasks.v2beta3.CloudTasks"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListQueuesMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - METHOD_LIST_QUEUES = getListQueuesMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ListQueuesRequest, com.google.cloud.tasks.v2beta3.ListQueuesResponse> getListQueuesMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListQueuesMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - getListQueuesMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ListQueuesRequest, com.google.cloud.tasks.v2beta3.ListQueuesResponse> @@ -78,9 +68,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.ListQueuesResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "ListQueues")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -98,26 +86,18 @@ private CloudTasksGrpc() {} return getListQueuesMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_GET_QUEUE = getGetQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getGetQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getGetQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getGetQueueMethod; @@ -131,9 +111,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "GetQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -149,26 +127,18 @@ private CloudTasksGrpc() {} return getGetQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_CREATE_QUEUE = getCreateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getCreateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getCreateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getCreateQueueMethod; @@ -182,9 +152,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "CreateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -201,26 +169,18 @@ private CloudTasksGrpc() {} return getCreateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_UPDATE_QUEUE = getUpdateQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getUpdateQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getUpdateQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getUpdateQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getUpdateQueueMethod; @@ -234,9 +194,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "UpdateQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -253,26 +211,18 @@ private CloudTasksGrpc() {} return getUpdateQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> - METHOD_DELETE_QUEUE = getDeleteQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> getDeleteQueueMethod; @@ -286,9 +236,7 @@ private CloudTasksGrpc() {} com.google.protobuf.Empty> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "DeleteQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -305,26 +253,18 @@ private CloudTasksGrpc() {} return getDeleteQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPurgeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_PURGE_QUEUE = getPurgeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getPurgeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPurgeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPurgeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getPurgeQueueMethod; @@ -338,9 +278,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "PurgeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -357,26 +295,18 @@ private CloudTasksGrpc() {} return getPurgeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPauseQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_PAUSE_QUEUE = getPauseQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getPauseQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getPauseQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPauseQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getPauseQueueMethod; @@ -390,9 +320,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "PauseQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -409,26 +337,18 @@ private CloudTasksGrpc() {} return getPauseQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getResumeQueueMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - METHOD_RESUME_QUEUE = getResumeQueueMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getResumeQueueMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getResumeQueueMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getResumeQueueMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> getResumeQueueMethod; @@ -442,9 +362,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Queue> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "ResumeQueue")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -461,26 +379,18 @@ private CloudTasksGrpc() {} return getResumeQueueMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_GET_IAM_POLICY = getGetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { @@ -491,9 +401,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "GetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -509,26 +417,18 @@ private CloudTasksGrpc() {} return getGetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - METHOD_SET_IAM_POLICY = getSetIamPolicyMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getSetIamPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethodHelper() { io.grpc.MethodDescriptor getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { @@ -539,9 +439,7 @@ private CloudTasksGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "SetIamPolicy")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -557,26 +455,18 @@ private CloudTasksGrpc() {} return getSetIamPolicyMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getTestIamPermissionsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - METHOD_TEST_IAM_PERMISSIONS = getTestIamPermissionsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getTestIamPermissionsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethodHelper() { io.grpc.MethodDescriptor< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> @@ -591,9 +481,7 @@ private CloudTasksGrpc() {} com.google.iam.v1.TestIamPermissionsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "TestIamPermissions")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -610,30 +498,20 @@ private CloudTasksGrpc() {} return getTestIamPermissionsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTasksMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse> - METHOD_LIST_TASKS = getListTasksMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ListTasksRequest, com.google.cloud.tasks.v2beta3.ListTasksResponse> getListTasksMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getListTasksMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse> - getListTasksMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.ListTasksRequest, com.google.cloud.tasks.v2beta3.ListTasksResponse> @@ -648,9 +526,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.ListTasksResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "ListTasks")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -667,26 +543,18 @@ private CloudTasksGrpc() {} return getListTasksMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> - METHOD_GET_TASK = getGetTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> getGetTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getGetTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getGetTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> getGetTaskMethod; @@ -700,9 +568,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "GetTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -718,26 +584,18 @@ private CloudTasksGrpc() {} return getGetTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> - METHOD_CREATE_TASK = getCreateTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> getCreateTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getCreateTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getCreateTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> getCreateTaskMethod; @@ -751,9 +609,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "CreateTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -770,26 +626,18 @@ private CloudTasksGrpc() {} return getCreateTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> - METHOD_DELETE_TASK = getDeleteTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> getDeleteTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getDeleteTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> getDeleteTaskMethod; @@ -802,9 +650,7 @@ private CloudTasksGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "DeleteTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -821,26 +667,18 @@ private CloudTasksGrpc() {} return getDeleteTaskMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRunTaskMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> - METHOD_RUN_TASK = getRunTaskMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> getRunTaskMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @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() { - return getRunTaskMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getRunTaskMethodHelper() { io.grpc.MethodDescriptor< com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> getRunTaskMethod; @@ -854,9 +692,7 @@ private CloudTasksGrpc() {} com.google.cloud.tasks.v2beta3.Task> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.tasks.v2beta3.CloudTasks", "RunTask")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -874,19 +710,42 @@ private CloudTasksGrpc() {} /** Creates a new async stub that supports all call types for the service */ public static CloudTasksStub newStub(io.grpc.Channel channel) { - return new CloudTasksStub(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) { - return new CloudTasksBlockingStub(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) { - return new CloudTasksFutureStub(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); } /** @@ -911,7 +770,7 @@ public void listQueues( com.google.cloud.tasks.v2beta3.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -924,7 +783,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta3.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -946,7 +805,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta3.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); } /** @@ -970,7 +829,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); } /** @@ -992,7 +851,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); } /** @@ -1008,7 +867,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -1026,7 +885,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta3.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -1049,7 +908,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); } /** @@ -1068,7 +927,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** @@ -1088,7 +947,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** @@ -1107,7 +966,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** @@ -1127,7 +986,7 @@ public void listTasks( com.google.cloud.tasks.v2beta3.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -1140,7 +999,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta3.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -1155,7 +1014,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta3.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1171,7 +1030,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1202,106 +1061,106 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListQueuesMethodHelper(), + getListQueuesMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ListQueuesRequest, com.google.cloud.tasks.v2beta3.ListQueuesResponse>( this, METHODID_LIST_QUEUES))) .addMethod( - getGetQueueMethodHelper(), + getGetQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_GET_QUEUE))) .addMethod( - getCreateQueueMethodHelper(), + getCreateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( - getUpdateQueueMethodHelper(), + getUpdateQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( - getDeleteQueueMethodHelper(), + getDeleteQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( - getPurgeQueueMethodHelper(), + getPurgeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PURGE_QUEUE))) .addMethod( - getPauseQueueMethodHelper(), + getPauseQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PAUSE_QUEUE))) .addMethod( - getResumeQueueMethodHelper(), + getResumeQueueMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( - getGetIamPolicyMethodHelper(), + getGetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethodHelper(), + getSetIamPolicyMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethodHelper(), + getTestIamPermissionsMethod(), asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getListTasksMethodHelper(), + getListTasksMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ListTasksRequest, com.google.cloud.tasks.v2beta3.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( - getGetTaskMethodHelper(), + getGetTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task>(this, METHODID_GET_TASK))) .addMethod( - getCreateTaskMethodHelper(), + getCreateTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task>(this, METHODID_CREATE_TASK))) .addMethod( - getDeleteTaskMethodHelper(), + getDeleteTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( - getRunTaskMethodHelper(), + getRunTaskMethod(), asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.RunTaskRequest, @@ -1318,11 +1177,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * work in their applications. * */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractStub { - private CloudTasksStub(io.grpc.Channel channel) { - super(channel); - } - + public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1345,9 +1200,7 @@ public void listQueues( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } /** @@ -1361,9 +1214,7 @@ public void getQueue( com.google.cloud.tasks.v2beta3.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1386,7 +1237,7 @@ public void createQueue( com.google.cloud.tasks.v2beta3.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1413,7 +1264,7 @@ public void updateQueue( com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1438,7 +1289,7 @@ public void deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1457,9 +1308,7 @@ public void purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1478,9 +1327,7 @@ public void pauseQueue( com.google.cloud.tasks.v2beta3.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } /** @@ -1504,7 +1351,7 @@ public void resumeQueue( com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1526,7 +1373,7 @@ public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1549,7 +1396,7 @@ public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -1571,7 +1418,7 @@ public void testIamPermissions( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } @@ -1594,9 +1441,7 @@ public void listTasks( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTasksMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } /** @@ -1610,9 +1455,7 @@ public void getTask( com.google.cloud.tasks.v2beta3.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1628,9 +1471,7 @@ public void createTask( com.google.cloud.tasks.v2beta3.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1647,9 +1488,7 @@ public void deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } /** @@ -1681,9 +1520,7 @@ public void runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -1696,11 +1533,7 @@ public void runTask( * */ public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractStub { - private CloudTasksBlockingStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractBlockingStub { private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1721,8 +1554,7 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return blockingUnaryCall( - getChannel(), getListQueuesMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -1734,7 +1566,7 @@ 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(), getGetQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -1755,8 +1587,7 @@ 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(), getCreateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -1779,8 +1610,7 @@ 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(), getUpdateQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -1801,8 +1631,7 @@ public com.google.cloud.tasks.v2beta3.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -1817,8 +1646,7 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2beta3.Queue purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return blockingUnaryCall( - getChannel(), getPurgeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -1835,8 +1663,7 @@ 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(), getPauseQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -1858,8 +1685,7 @@ 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(), getResumeQueueMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -1876,8 +1702,7 @@ public com.google.cloud.tasks.v2beta3.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall( - getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1895,8 +1720,7 @@ 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(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1914,7 +1738,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( - getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** @@ -1932,7 +1756,7 @@ 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(), getListTasksMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -1944,7 +1768,7 @@ 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(), getGetTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -1958,8 +1782,7 @@ 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(), getCreateTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -1974,8 +1797,7 @@ public com.google.cloud.tasks.v2beta3.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -2005,7 +1827,7 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2beta3.Task runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return blockingUnaryCall(getChannel(), getRunTaskMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -2018,11 +1840,7 @@ public com.google.cloud.tasks.v2beta3.Task runTask( * */ public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractStub { - private CloudTasksFutureStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractFutureStub { private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2044,7 +1862,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.tasks.v2beta3.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { return futureUnaryCall( - getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } /** @@ -2056,8 +1874,7 @@ 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(getGetQueueMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -2079,7 +1896,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( - getChannel().newCall(getCreateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } /** @@ -2103,7 +1920,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( - getChannel().newCall(getUpdateQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } /** @@ -2125,7 +1942,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( - getChannel().newCall(getDeleteQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } /** @@ -2141,7 +1958,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( - getChannel().newCall(getPurgeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } /** @@ -2159,7 +1976,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( - getChannel().newCall(getPauseQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } /** @@ -2182,7 +1999,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( - getChannel().newCall(getResumeQueueMethodHelper(), getCallOptions()), request); + getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } /** @@ -2201,7 +2018,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( - getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2221,7 +2038,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( - getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** @@ -2240,7 +2057,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** @@ -2259,8 +2076,7 @@ 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(getListTasksMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2272,8 +2088,7 @@ 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(getGetTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2288,7 +2103,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( - getChannel().newCall(getCreateTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } /** @@ -2304,7 +2119,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( - getChannel().newCall(getDeleteTaskMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } /** @@ -2334,8 +2149,7 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return futureUnaryCall( - getChannel().newCall(getRunTaskMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } @@ -2520,22 +2334,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethodHelper()) - .addMethod(getGetQueueMethodHelper()) - .addMethod(getCreateQueueMethodHelper()) - .addMethod(getUpdateQueueMethodHelper()) - .addMethod(getDeleteQueueMethodHelper()) - .addMethod(getPurgeQueueMethodHelper()) - .addMethod(getPauseQueueMethodHelper()) - .addMethod(getResumeQueueMethodHelper()) - .addMethod(getGetIamPolicyMethodHelper()) - .addMethod(getSetIamPolicyMethodHelper()) - .addMethod(getTestIamPermissionsMethodHelper()) - .addMethod(getListTasksMethodHelper()) - .addMethod(getGetTaskMethodHelper()) - .addMethod(getCreateTaskMethodHelper()) - .addMethod(getDeleteTaskMethodHelper()) - .addMethod(getRunTaskMethodHelper()) + .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(); } } diff --git a/pom.xml b/pom.xml index 50e95905..a23a2960 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.28.2 + 1.29.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -63,12 +63,12 @@ UTF-8 github google-cloud-tasks-parent - 1.92.4 - 1.8.1 + 1.93.1 + 1.9.0 1.17.0 - 1.53.1 - 1.27.0 - 3.11.3 + 1.54.0 + 1.27.2 + 3.11.4 4.13 28.2-android 1.4.1 @@ -82,37 +82,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.84.2 + 0.85.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.84.2 + 0.85.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.28.2 + 1.29.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.84.2 + 0.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.84.2 + 0.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.28.2 + 1.29.0 com.google.cloud google-cloud-tasks - 1.28.2 + 1.29.0 @@ -251,7 +251,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.1 + 3.2.0 html diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index b83d6658..a70d01a8 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.28.2 + 1.29.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 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 8051ff3e..0b78e1aa 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 @@ -148,6 +148,23 @@ private Queue( 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: @@ -820,6 +837,58 @@ 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. + */ + 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. + */ + 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; + */ + public com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder + getStackdriverLoggingConfigOrBuilder() { + return getStackdriverLoggingConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -852,6 +921,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (purgeTime_ != null) { output.writeMessage(6, getPurgeTime()); } + if (stackdriverLoggingConfig_ != null) { + output.writeMessage(9, getStackdriverLoggingConfig()); + } unknownFields.writeTo(output); } @@ -881,6 +953,11 @@ public int getSerializedSize() { if (purgeTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPurgeTime()); } + if (stackdriverLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getStackdriverLoggingConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -914,6 +991,10 @@ public boolean equals(final java.lang.Object obj) { 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -945,6 +1026,10 @@ public int hashCode() { 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1118,6 +1203,12 @@ public Builder clear() { purgeTime_ = null; purgeTimeBuilder_ = null; } + if (stackdriverLoggingConfigBuilder_ == null) { + stackdriverLoggingConfig_ = null; + } else { + stackdriverLoggingConfig_ = null; + stackdriverLoggingConfigBuilder_ = null; + } return this; } @@ -1166,6 +1257,11 @@ public com.google.cloud.tasks.v2.Queue buildPartial() { } else { result.purgeTime_ = purgeTimeBuilder_.build(); } + if (stackdriverLoggingConfigBuilder_ == null) { + result.stackdriverLoggingConfig_ = stackdriverLoggingConfig_; + } else { + result.stackdriverLoggingConfig_ = stackdriverLoggingConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1234,6 +1330,9 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.Queue other) { if (other.hasPurgeTime()) { mergePurgeTime(other.getPurgeTime()); } + if (other.hasStackdriverLoggingConfig()) { + mergeStackdriverLoggingConfig(other.getStackdriverLoggingConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2671,6 +2770,215 @@ public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { 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); 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 index dafc09c5..b88abb66 100644 --- 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 @@ -378,4 +378,46 @@ public interface QueueOrBuilder * .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 index d6803e86..c90215f3 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 @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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; @@ -53,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\"\335\003\n\005Queue\022\014\n\004name\030\001 \001(\t" + + "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" @@ -61,22 +65,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.cloud.tasks.v2.RetryConfig\0221\n\005stat" + "e\030\005 \001(\0162\".google.cloud.tasks.v2.Queue.St" + "ate\022.\n\npurge_time\030\006 \001(\0132\032.google.protobu" - + "f.Timestamp\"E\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DISABLED" - + "\020\003:\\\352AY\n\037cloudtasks.googleapis.com/Queue" - + "\0226projects/{project}/locations/{location" - + "}/queues/{queue}\"j\n\nRateLimits\022!\n\031max_di" - + "spatches_per_second\030\001 \001(\001\022\026\n\016max_burst_s" - + "ize\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\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(\005Be\n\031com.google.cloud.tas" - + "ks.v2B\nQueueProtoP\001Z:google.golang.org/g" - + "enproto/googleapis/cloud/tasks/v2;tasksb" - + "\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -94,7 +101,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tasks_v2_Queue_descriptor, new java.lang.String[] { - "Name", "AppEngineRoutingOverride", "RateLimits", "RetryConfig", "State", "PurgeTime", + "Name", + "AppEngineRoutingOverride", + "RateLimits", + "RetryConfig", + "State", + "PurgeTime", + "StackdriverLoggingConfig", }); internal_static_google_cloud_tasks_v2_RateLimits_descriptor = getDescriptor().getMessageTypes().get(1); @@ -112,6 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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); 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 new file mode 100644 index 00000000..ba3669d6 --- /dev/null +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java @@ -0,0 +1,562 @@ +/* + * 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; + } + + 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 (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; + } + + @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. + */ + 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 (samplingRatio_ != 0D) { + output.writeDouble(1, samplingRatio_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (samplingRatio_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tasks.v2.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SAMPLING_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSamplingRatio())); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @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.unknownFields); + 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 { + com.google.cloud.tasks.v2.StackdriverLoggingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.tasks.v2.StackdriverLoggingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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. + */ + 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 { + return new StackdriverLoggingConfig(input, extensionRegistry); + } + }; + + 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 new file mode 100644 index 00000000..af110ade --- /dev/null +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java @@ -0,0 +1,41 @@ +/* + * 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/proto/google/cloud/tasks/v2/queue.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto index b50f5aec..483a1f61 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 @@ -166,6 +166,11 @@ message 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. @@ -344,3 +349,13 @@ message RetryConfig { // 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-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 50203018..8cd20c6d 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.84.2 + 0.85.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 2fc20ebc..e448cde9 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.84.2 + 0.85.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.28.2 + 1.29.0 diff --git a/renovate.json b/renovate.json index 268a4669..1f590cef 100644 --- a/renovate.json +++ b/renovate.json @@ -54,6 +54,15 @@ "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": [ "^com.google.cloud:google-cloud-" @@ -68,4 +77,4 @@ } ], "semanticCommits": true -} +} \ No newline at end of file diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml new file mode 100644 index 00000000..3117fb28 --- /dev/null +++ b/samples/install-without-bom/pom.xml @@ -0,0 +1,84 @@ + + + 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.0.14 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + com.google.cloud + google-cloud-tasks + 1.28.2 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/samples/pom.xml b/samples/pom.xml new file mode 100644 index 00000000..80a5e847 --- /dev/null +++ b/samples/pom.xml @@ -0,0 +1,56 @@ + + + 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.0.14 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + true + + + + + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml new file mode 100644 index 00000000..5f984aaf --- /dev/null +++ b/samples/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 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.0.14 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + google-cloud-tasks + 1.28.2 + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.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/pom.xml b/samples/snippets/pom.xml new file mode 100644 index 00000000..e01c90ad --- /dev/null +++ b/samples/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 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.0.14 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.3.0 + pom + import + + + + + + + com.google.cloud + google-cloud-tasks + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + diff --git a/synth.metadata b/synth.metadata index 5c2e8009..5b178acd 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,27 +1,21 @@ { - "updateTime": "2020-02-05T23:03:43.258885Z", + "updateTime": "2020-03-25T19:06:04.782527Z", "sources": [ - { - "generator": { - "name": "artman", - "version": "0.44.4", - "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" - } - }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "781aadb932e64a12fb6ead7cd842698d99588433", - "internalRef": "293443396", - "log": "781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n" + "sha": "fd83ab212176a1042e8d45ea90766b3bf59ac679", + "internalRef": "302913609", + "log": "fd83ab212176a1042e8d45ea90766b3bf59ac679\nfix: migrate osconfig/agentendpoint/v1 go_gapic_library target to microgen impl\n\nPiperOrigin-RevId: 302913609\n\n0e07113e776bdd8fcc0783372e08bb6e76cb1b5b\ndocs: Update documentation with links to smart home developer guides and reference pages. Remove outdated authorization instructions.\n\nPiperOrigin-RevId: 302892245\n\n551cf1e6e3addcc63740427c4f9b40dedd3dac27\nfeat: Add OS Config AgentEndpointService v1 PatchJobs and Tasks APIs.\n\nPiperOrigin-RevId: 302792195\n\n1df117114c73299b614dfd3ba3632bf246669336\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 302753982\n\n71d6c56a14bb433beb1237dccb48dabcd9597924\nRefresh monitoring client libraries.\nRename to Cloud Monitoring API.\nAdded support for TimeSeriesQueryLanguageCondition condition type in alert policies.\n\nPiperOrigin-RevId: 302735422\n\n25a1781c096974df99d556cc5888fefa82bc6425\nbazel: migrate all go_gapic_library targets to microgenerator implementation\n\n* update rules_go and gazelle bazel dependencies\n* update gapic-generator bazel dependency (with build file generator changes)\n\nPiperOrigin-RevId: 302730217\n\n36c0febd0fa7267ab66d14408eec2afd1b6bec4e\nUpdate GAPIC configurations to v2 .yaml.\n\nPiperOrigin-RevId: 302639621\n\n078f222366ed344509a48f2f084944ef61476613\nFix containeranalysis v1beta1 assembly target name\n\nPiperOrigin-RevId: 302529186\n\n0be7105dc52590fa9a24e784052298ae37ce53aa\nAdd BUILD.bazel file to asset/v1p1beta1\n\nPiperOrigin-RevId: 302154871\n\n6c248fd13e8543f8d22cbf118d978301a9fbe2a8\nAdd missing resource annotations and additional_bindings to dialogflow v2 API.\n\nPiperOrigin-RevId: 302063117\n\n9a3a7f33be9eeacf7b3e98435816b7022d206bd7\nChange the service name from \"chromeos-moblab.googleapis.com\" to \"chromeosmoblab.googleapis.com\"\n\nPiperOrigin-RevId: 302060989\n\n98a339237577e3de26cb4921f75fb5c57cc7a19f\nfeat: devtools/build/v1 publish client library config annotations\n\n* add details field to some of the BuildEvents\n* add final_invocation_id and build_tool_exit_code fields to BuildStatus\n\nPiperOrigin-RevId: 302044087\n\ncfabc98c6bbbb22d1aeaf7612179c0be193b3a13\nfeat: home/graph/v1 publish client library config annotations & comment updates\n\nThis change includes adding the client library configuration annotations, updated proto comments, and some client library configuration files.\n\nPiperOrigin-RevId: 302042647\n\nc8c8c0bd15d082db9546253dbaad1087c7a9782c\nchore: use latest gapic-generator in bazel WORKSPACE.\nincluding the following commits from gapic-generator:\n- feat: take source protos in all sub-packages (#3144)\n\nPiperOrigin-RevId: 301843591\n\ne4daf5202ea31cb2cb6916fdbfa9d6bd771aeb4c\nAdd bazel file for v1 client lib generation\n\nPiperOrigin-RevId: 301802926\n\n" } }, { - "template": { - "name": "java_library", - "origin": "synthtool.gcp", - "version": "2019.10.17" + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8", + "log": "e36822bfa0acb355502dab391b8ef9c4f30208d8\nchore(java): treat samples shared configuration dependency update as chore (#457)\n\n\n1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c\nfix: do not run node 8 CI (#456)\n\n\nee4330a0e5f4b93978e8683fbda8e6d4148326b7\nchore(java_templates): mark version bumps of current library as a chore (#452)\n\nWith the samples/install-without-bom/pom.xml referencing the latest released library, we want to mark updates of this version as a chore for renovate bot.\na0d3133a5d45544a66345059eebf76933265c099\nfix(java): run mvn install with retry (#453)\n\n* fix(java): run mvn install with retry\n\n* fix invocation of command\n6a17abc7652e2fe563e1288c6e8c23fc260dda97\ndocs: document the release schedule we follow (#454)\n\n\n7e98e1609c91082f4eeb63b530c6468aefd18cfd\nbuild: use checkout@v2, not v1, as this allows manual re-running of tests (#451)\n\nhttps://github.com/actions/checkout/issues/23\n" } } ], @@ -32,8 +26,7 @@ "apiName": "tasks", "apiVersion": "v2beta2", "language": "java", - "generator": "gapic", - "config": "google/cloud/tasks/artman_cloudtasks_v2beta2.yaml" + "generator": "bazel" } }, { @@ -42,8 +35,7 @@ "apiName": "tasks", "apiVersion": "v2beta3", "language": "java", - "generator": "gapic", - "config": "google/cloud/tasks/artman_cloudtasks_v2beta3.yaml" + "generator": "bazel" } }, { @@ -52,8 +44,7 @@ "apiName": "tasks", "apiVersion": "v2", "language": "java", - "generator": "gapic", - "config": "google/cloud/tasks/artman_cloudtasks_v2.yaml" + "generator": "bazel" } } ] diff --git a/synth.py b/synth.py index d88bdeaf..6cf70fc6 100644 --- a/synth.py +++ b/synth.py @@ -18,7 +18,9 @@ import synthtool.gcp as gcp import synthtool.languages.java as java -gapic = gcp.GAPICGenerator() +AUTOSYNTH_MULTIPLE_COMMITS = True + +gapic = gcp.GAPICBazel() service = 'tasks' versions = ['v2beta2', 'v2beta3', 'v2'] @@ -50,32 +52,34 @@ library = gapic.java_library( service=service, version=version, - config_path=config_pattern.format(version=version), - artman_output_name='') + 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.fix_grpc_headers(library / f'grpc-google-cloud-{service}-{version}', package_name) + 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}/src/**/CloudTasksClient.java', + 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}/src/**/CloudTasksClient.java', + 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}/src/**/CloudTasksClient.java', + 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}/src', f'google-cloud-{service}/src') - s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'grpc-google-cloud-{service}-{version}/src') - s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'proto-google-cloud-{service}-{version}/src') + 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') diff --git a/versions.txt b/versions.txt index 6885d6e6..612789d6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.84.2:0.84.2 -proto-google-cloud-tasks-v2beta2:0.84.2:0.84.2 -proto-google-cloud-tasks-v2:1.28.2:1.28.2 -grpc-google-cloud-tasks-v2beta3:0.84.2:0.84.2 -grpc-google-cloud-tasks-v2beta2:0.84.2:0.84.2 -grpc-google-cloud-tasks-v2:1.28.2:1.28.2 -google-cloud-tasks:1.28.2:1.28.2 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.85.0:0.85.0 +proto-google-cloud-tasks-v2beta2:0.85.0:0.85.0 +proto-google-cloud-tasks-v2:1.29.0:1.29.0 +grpc-google-cloud-tasks-v2beta3:0.85.0:0.85.0 +grpc-google-cloud-tasks-v2beta2:0.85.0:0.85.0 +grpc-google-cloud-tasks-v2:1.29.0:1.29.0 +google-cloud-tasks:1.29.0:1.29.0 \ No newline at end of file