From 391c3bae8bf3ad758e8ee2551d0e8b1e6376a731 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 09:43:14 -0500 Subject: [PATCH 001/656] chore: Create renovate_config_check.yaml (#1920) (#1869) * chore: Create renovate_config_check.yaml Source-Link: https://github.com/googleapis/synthtool/commit/6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 6 ++--- .github/workflows/renovate_config_check.yaml | 25 ++++++++++++++++++++ README.md | 8 +++---- 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/renovate_config_check.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f56920557..dc05a7276 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,4 +1,4 @@ -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:81f75d962cd28b7ad10740a643b8069b8fa0357cb495b782eef8560bb7a8fd65 -# created: 2023-12-05T19:16:19.735195992Z + digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc +# created: 2024-01-22T14:14:20.913785597Z diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml new file mode 100644 index 000000000..87d8eb2be --- /dev/null +++ b/.github/workflows/renovate_config_check.yaml @@ -0,0 +1,25 @@ +name: Renovate Bot Config Validation + +on: + pull_request: + paths: + - 'renovate.json' + +jobs: + renovate_bot_config_validation: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Renovate and Config Validator + run: | + npm install -g npm@latest + npm install --global renovate + renovate-config-validator diff --git a/README.md b/README.md index e8765d4ad..7a51da7f5 100644 --- a/README.md +++ b/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.29.0') +implementation platform('com.google.cloud:libraries-bom:26.30.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.13' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.13" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.0" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.13 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From db36deff6a4187cb98ddd68259efd6034762060e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:08:48 +0100 Subject: [PATCH 002/656] deps: update dependency com.google.cloud:google-cloud-core to v2.30.0 (#1853) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.30.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bedd4b707..01ed43ae4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3fe333e49..231eaa0aa 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ba9075966..375515ebb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests From 7576bd6bccd9af257daa92c7e3ae7b7c06a149f6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:04 +0100 Subject: [PATCH 003/656] test(deps): update dependency com.google.truth:truth to v1.3.0 (#1867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency com.google.truth:truth to v1.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 4ffa585d6..93610e296 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 01ed43ae4..38a3ba60d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index d7dfc9687..94c8dd805 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 231eaa0aa..c30d0abc1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 375515ebb..be355792f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test From f4c6f5112e8285264a497b3a141c31f77fea6ee2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:39 +0100 Subject: [PATCH 004/656] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 (#1865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 93610e296..e4496ca98 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.21.0 + 3.22.0 pom import From fc475e55e9922035d7693a3e94dfe3637e86d805 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:57 +0100 Subject: [PATCH 005/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0 (#1863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a51da7f5..f35bd76d8 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.13 + 1.126.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 38a3ba60d..8db3841fc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.13 + 1.126.0 From 8fa635427927e1859332896b8373abccd5881949 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:11:11 +0100 Subject: [PATCH 006/656] deps: update dependency com.google.protobuf:protobuf-java-util to v3.25.2 (#1858) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8db3841fc..a3e5a8cfd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c30d0abc1..074458a26 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index be355792f..b112305d0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 From d673e55e69f60f5a6f6bae10e2f62d7fd0dfa89f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:11:25 +0100 Subject: [PATCH 007/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.32.0 (#1857) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a3e5a8cfd..e6e13bf88 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.30.1 + 2.32.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 074458a26..7a005a1ff 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.30.1 + 2.32.0 From 0f88c626a14b2753446c367ed8b1ef3b0a85f5fa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:32:24 +0100 Subject: [PATCH 008/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.30.0 (#1864) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.30.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f35bd76d8..75d1565f7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 94c8dd805..6ba2d91b2 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b112305d0..a2085f3c1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import From 8c5117d02511acd5469d863ea483f6e765e29292 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:33:50 +0100 Subject: [PATCH 009/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 (#1840) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e6e13bf88..0f157e442 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.34.2 + 2.36.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7a005a1ff..df44f1d09 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.34.2 + 2.36.0 com.google.cloud From 7a32932fa5238e2c27479eab20fa94215fb12497 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:34:12 +0100 Subject: [PATCH 010/656] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.5 (#1856) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 6ba2d91b2..b766b6326 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.3 + 3.2.5 **/*IT From adae8a4aadb08532076fd02710d0e41336ec096c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 17:36:27 +0100 Subject: [PATCH 011/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.32.1 (#1874) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0f157e442..c5e44bb0a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.32.0 + 2.32.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index df44f1d09..676f5d31a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.32.0 + 2.32.1 From 0d445f173574433aed2770d9cc949672221b839e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 18:18:15 +0100 Subject: [PATCH 012/656] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 (#1873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/sdk-platform-java) | `3.22.0` -> `3.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-shared-dependencies/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-shared-dependencies/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-shared-dependencies/3.22.0/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-shared-dependencies/3.22.0/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e4496ca98..cb7672249 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.22.0 + 3.23.0 pom import From 06db9a05a80b2d7f38aefff2d5e0b33e3fa1a2c9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 18:19:46 +0100 Subject: [PATCH 013/656] deps: update dependency com.google.cloud:google-cloud-core to v2.31.0 (#1872) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c5e44bb0a..dbf74e07c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 676f5d31a..02770276b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a2085f3c1..26215fd06 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests From daaf9e32eba29b34408977e365b1489fea662421 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:34:15 +0000 Subject: [PATCH 014/656] chore(main): release 1.126.1 (#1871) :robot: I have created a release *beep* *boop* --- ## [1.126.1](https://togithub.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://togithub.com/googleapis/java-pubsub/issues/1840)) ([8c5117d](https://togithub.com/googleapis/java-pubsub/commit/8c5117d02511acd5469d863ea483f6e765e29292)) * Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://togithub.com/googleapis/java-pubsub/issues/1853)) ([db36def](https://togithub.com/googleapis/java-pubsub/commit/db36deff6a4187cb98ddd68259efd6034762060e)) * Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://togithub.com/googleapis/java-pubsub/issues/1872)) ([06db9a0](https://togithub.com/googleapis/java-pubsub/commit/06db9a05a80b2d7f38aefff2d5e0b33e3fa1a2c9)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://togithub.com/googleapis/java-pubsub/issues/1865)) ([f4c6f51](https://togithub.com/googleapis/java-pubsub/commit/f4c6f5112e8285264a497b3a141c31f77fea6ee2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://togithub.com/googleapis/java-pubsub/issues/1873)) ([0d445f1](https://togithub.com/googleapis/java-pubsub/commit/0d445f173574433aed2770d9cc949672221b839e)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://togithub.com/googleapis/java-pubsub/issues/1857)) ([d673e55](https://togithub.com/googleapis/java-pubsub/commit/d673e55e69f60f5a6f6bae10e2f62d7fd0dfa89f)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://togithub.com/googleapis/java-pubsub/issues/1874)) ([adae8a4](https://togithub.com/googleapis/java-pubsub/commit/adae8a4aadb08532076fd02710d0e41336ec096c)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://togithub.com/googleapis/java-pubsub/issues/1858)) ([8fa6354](https://togithub.com/googleapis/java-pubsub/commit/8fa635427927e1859332896b8373abccd5881949)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 091a7109b..46203e22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.126.1](https://github.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://github.com/googleapis/java-pubsub/issues/1840)) ([8c5117d](https://github.com/googleapis/java-pubsub/commit/8c5117d02511acd5469d863ea483f6e765e29292)) +* Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://github.com/googleapis/java-pubsub/issues/1853)) ([db36def](https://github.com/googleapis/java-pubsub/commit/db36deff6a4187cb98ddd68259efd6034762060e)) +* Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://github.com/googleapis/java-pubsub/issues/1872)) ([06db9a0](https://github.com/googleapis/java-pubsub/commit/06db9a05a80b2d7f38aefff2d5e0b33e3fa1a2c9)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://github.com/googleapis/java-pubsub/issues/1865)) ([f4c6f51](https://github.com/googleapis/java-pubsub/commit/f4c6f5112e8285264a497b3a141c31f77fea6ee2)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://github.com/googleapis/java-pubsub/issues/1873)) ([0d445f1](https://github.com/googleapis/java-pubsub/commit/0d445f173574433aed2770d9cc949672221b839e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://github.com/googleapis/java-pubsub/issues/1857)) ([d673e55](https://github.com/googleapis/java-pubsub/commit/d673e55e69f60f5a6f6bae10e2f62d7fd0dfa89f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://github.com/googleapis/java-pubsub/issues/1874)) ([adae8a4](https://github.com/googleapis/java-pubsub/commit/adae8a4aadb08532076fd02710d0e41336ec096c)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://github.com/googleapis/java-pubsub/issues/1858)) ([8fa6354](https://github.com/googleapis/java-pubsub/commit/8fa635427927e1859332896b8373abccd5881949)) + ## [1.126.0](https://github.com/googleapis/java-pubsub/compare/v1.125.13...v1.126.0) (2024-01-13) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 04408abfe..6dad3340d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.1-SNAPSHOT + 1.126.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8c9a7687c..68fae81c7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index b8b3e3f1d..ce8e69246 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/pom.xml b/pom.xml index cb7672249..2fda24b44 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.1-SNAPSHOT + 1.126.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d43ce584b..423925252 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 02770276b..cf3457fb3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/versions.txt b/versions.txt index 67e7730ab..6e91b66b0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.0:1.126.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT +google-cloud-pubsub:1.126.1:1.126.1 +grpc-google-cloud-pubsub-v1:1.108.1:1.108.1 +proto-google-cloud-pubsub-v1:1.108.1:1.108.1 From c4c3d74c4e058ed6d06940206092a00abe1b7bae Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:48:16 +0000 Subject: [PATCH 015/656] chore(main): release 1.126.2-SNAPSHOT (#1876) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 6dad3340d..a020e128c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.1 + 1.126.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 68fae81c7..d588ee783 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index ce8e69246..722836773 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2fda24b44..719b2d735 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.1 + 1.126.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 423925252..2f649852f 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cf3457fb3..842cbf9ed 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6e91b66b0..64ecc9876 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.1:1.126.1 -grpc-google-cloud-pubsub-v1:1.108.1:1.108.1 -proto-google-cloud-pubsub-v1:1.108.1:1.108.1 +google-cloud-pubsub:1.126.1:1.126.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT From fe6034c968d1abe018bf86cb5ecdef01e60f627e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 22:01:41 +0100 Subject: [PATCH 016/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.1 (#1877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 75d1565f7..4f9b1de52 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.1" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index dbf74e07c..a57a7f99d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1 From 0aac3e4c9c5671ce8f3b98056cc3710cd5ca9d07 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 26 Jan 2024 17:05:23 +0000 Subject: [PATCH 017/656] fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 (#1875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Run latest owlbot locally * chore: Add owl-bot-staging * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/SchemaServiceClient.java | 124 +- .../pubsub/v1/SubscriptionAdminClient.java | 272 +- .../cloud/pubsub/v1/TopicAdminClient.java | 123 +- .../pubsub/v1/stub/PublisherStubSettings.java | 20 +- .../v1/stub/SchemaServiceStubSettings.java | 20 +- .../v1/stub/SubscriberStubSettings.java | 20 +- .../reflect-config.json | 54 + .../v1/TopicAdminClientHttpJsonTest.java | 8 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 + .../com/google/pubsub/v1/PublisherGrpc.java | 18 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 34 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 110 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 24 +- .../google/pubsub/v1/CloudStorageConfig.java | 502 ++-- .../v1/CloudStorageConfigOrBuilder.java | 107 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 30 +- .../v1/CreateSchemaRequestOrBuilder.java | 10 +- .../pubsub/v1/CreateSnapshotRequest.java | 46 +- .../v1/CreateSnapshotRequestOrBuilder.java | 22 +- .../google/pubsub/v1/DeadLetterPolicy.java | 110 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 32 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 170 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 44 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 2623 +++++++++++++++++ .../IngestionDataSourceSettingsOrBuilder.java | 68 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 74 +- .../v1/ListSnapshotsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListSnapshotsResponse.java | 189 +- .../v1/ListSnapshotsResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSubscriptionsRequest.java | 74 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListSubscriptionsResponse.java | 182 +- .../ListSubscriptionsResponseOrBuilder.java | 44 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 74 +- .../ListTopicSnapshotsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 96 +- .../ListTopicSnapshotsResponseOrBuilder.java | 30 +- .../v1/ListTopicSubscriptionsRequest.java | 74 +- ...istTopicSubscriptionsRequestOrBuilder.java | 22 +- .../v1/ListTopicSubscriptionsResponse.java | 135 +- ...stTopicSubscriptionsResponseOrBuilder.java | 42 +- .../google/pubsub/v1/ListTopicsRequest.java | 74 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 22 +- .../google/pubsub/v1/ListTopicsResponse.java | 159 +- .../v1/ListTopicsResponseOrBuilder.java | 39 +- .../pubsub/v1/MessageStoragePolicy.java | 319 +- .../v1/MessageStoragePolicyOrBuilder.java | 83 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 14 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 5 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 106 +- .../pubsub/v1/PublishResponseOrBuilder.java | 34 +- .../com/google/pubsub/v1/PubsubMessage.java | 215 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 75 +- .../com/google/pubsub/v1/PubsubProto.java | 796 ++--- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 186 +- .../pubsub/v1/PullResponseOrBuilder.java | 42 +- .../java/com/google/pubsub/v1/PushConfig.java | 574 ++-- .../google/pubsub/v1/PushConfigOrBuilder.java | 114 +- .../com/google/pubsub/v1/ReceivedMessage.java | 114 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 31 +- .../com/google/pubsub/v1/RetryPolicy.java | 204 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 47 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 147 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 42 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 140 +- .../pubsub/v1/SeekRequestOrBuilder.java | 44 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 183 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 59 +- .../pubsub/v1/StreamingPullRequest.java | 518 ++-- .../v1/StreamingPullRequestOrBuilder.java | 153 +- .../pubsub/v1/StreamingPullResponse.java | 1021 ++++--- .../v1/StreamingPullResponseOrBuilder.java | 80 +- .../com/google/pubsub/v1/Subscription.java | 1081 ++++--- .../pubsub/v1/SubscriptionOrBuilder.java | 281 +- .../main/java/com/google/pubsub/v1/Topic.java | 1088 +++++-- .../com/google/pubsub/v1/TopicOrBuilder.java | 199 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 855 +++--- .../main/proto/google/pubsub/v1/schema.proto | 4 +- 142 files changed, 10068 insertions(+), 4963 deletions(-) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index ddc98a2f0..02b4aef14 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -80,240 +80,240 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * - * + * * * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -449,7 +449,7 @@ public SchemaServiceStub getStub() { * will have a `name` made using the given `parent` and `schema_id`. * @param schemaId The ID to use for the schema, which will become the final component of the * schema's resource name. - *

See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + *

See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -490,7 +490,7 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem * will have a `name` made using the given `parent` and `schema_id`. * @param schemaId The ID to use for the schema, which will become the final component of the * schema's resource name. - *

See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + *

See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index e7617298c..7eca1a773 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -100,352 +100,352 @@ * close(). * *

MethodsMethods
MethodDescriptionMethod Variants
CreateSchema

CreateSchema

Creates a schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSchema(CreateSchemaRequest request) + *
  • createSchema(CreateSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSchema(ProjectName parent, Schema schema, String schemaId) - *
  • createSchema(String parent, Schema schema, String schemaId) + *
  • createSchema(ProjectName parent, Schema schema, String schemaId) + *

  • createSchema(String parent, Schema schema, String schemaId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSchemaCallable() + *
  • createSchemaCallable() *

*
GetSchema

GetSchema

Gets a schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSchema(GetSchemaRequest request) + *
  • getSchema(GetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSchema(SchemaName name) - *
  • getSchema(String name) + *
  • getSchema(SchemaName name) + *

  • getSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSchemaCallable() + *
  • getSchemaCallable() *

*
ListSchemas

ListSchemas

Lists schemas in a project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSchemas(ListSchemasRequest request) + *
  • listSchemas(ListSchemasRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSchemas(ProjectName parent) - *
  • listSchemas(String parent) + *
  • listSchemas(ProjectName parent) + *

  • listSchemas(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSchemasPagedCallable() - *
  • listSchemasCallable() + *
  • listSchemasPagedCallable() + *

  • listSchemasCallable() *

*
ListSchemaRevisions

ListSchemaRevisions

Lists all schema revisions for the named schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSchemaRevisions(ListSchemaRevisionsRequest request) + *
  • listSchemaRevisions(ListSchemaRevisionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSchemaRevisions(SchemaName name) - *
  • listSchemaRevisions(String name) + *
  • listSchemaRevisions(SchemaName name) + *

  • listSchemaRevisions(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSchemaRevisionsPagedCallable() - *
  • listSchemaRevisionsCallable() + *
  • listSchemaRevisionsPagedCallable() + *

  • listSchemaRevisionsCallable() *

*
CommitSchema

CommitSchema

Commits a new schema revision to an existing schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • commitSchema(CommitSchemaRequest request) + *
  • commitSchema(CommitSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • commitSchema(SchemaName name, Schema schema) - *
  • commitSchema(String name, Schema schema) + *
  • commitSchema(SchemaName name, Schema schema) + *

  • commitSchema(String name, Schema schema) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • commitSchemaCallable() + *
  • commitSchemaCallable() *

*
RollbackSchema

RollbackSchema

Creates a new schema revision that is a copy of the provided revision_id.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rollbackSchema(RollbackSchemaRequest request) + *
  • rollbackSchema(RollbackSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • rollbackSchema(SchemaName name, String revisionId) - *
  • rollbackSchema(String name, String revisionId) + *
  • rollbackSchema(SchemaName name, String revisionId) + *

  • rollbackSchema(String name, String revisionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rollbackSchemaCallable() + *
  • rollbackSchemaCallable() *

*
DeleteSchemaRevision

DeleteSchemaRevision

Deletes a specific schema revision.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSchemaRevision(DeleteSchemaRevisionRequest request) + *
  • deleteSchemaRevision(DeleteSchemaRevisionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSchemaRevision(SchemaName name, String revisionId) - *
  • deleteSchemaRevision(String name, String revisionId) + *
  • deleteSchemaRevision(SchemaName name, String revisionId) + *

  • deleteSchemaRevision(String name, String revisionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSchemaRevisionCallable() + *
  • deleteSchemaRevisionCallable() *

*
DeleteSchema

DeleteSchema

Deletes a schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSchema(DeleteSchemaRequest request) + *
  • deleteSchema(DeleteSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSchema(SchemaName name) - *
  • deleteSchema(String name) + *
  • deleteSchema(SchemaName name) + *

  • deleteSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSchemaCallable() + *
  • deleteSchemaCallable() *

*
ValidateSchema

ValidateSchema

Validates a schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateSchema(ValidateSchemaRequest request) + *
  • validateSchema(ValidateSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • validateSchema(ProjectName parent, Schema schema) - *
  • validateSchema(String parent, Schema schema) + *
  • validateSchema(ProjectName parent, Schema schema) + *

  • validateSchema(String parent, Schema schema) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateSchemaCallable() + *
  • validateSchemaCallable() *

*
ValidateMessage

ValidateMessage

Validates a message against a schema.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateMessage(ValidateMessageRequest request) + *
  • validateMessage(ValidateMessageRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateMessageCallable() + *
  • validateMessageCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
- * + * * * * * * * - * + * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -596,12 +596,12 @@ public SubscriberStub getStub() { * @param topic Required. The name of the topic from which this subscription is receiving * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits - * for the subscriber to acknowledge receipt before resending the message. In the interval - * after the message is delivered and before it is acknowledged, it is considered to be - * _outstanding_. During that time period, the message will not be redelivered (on a + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. The approximate amount of time (on a best-effort basis) + * Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In + * the interval after the message is delivered and before it is acknowledged, it is considered + * to be _outstanding_. During that time period, the message will not be redelivered (on a * best-effort basis). *

For pull subscriptions, this value is used as the initial value for the ack deadline. To * override this value for a given message, call `ModifyAckDeadline` with the corresponding @@ -666,12 +666,12 @@ public final Subscription createSubscription( * @param topic Required. The name of the topic from which this subscription is receiving * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits - * for the subscriber to acknowledge receipt before resending the message. In the interval - * after the message is delivered and before it is acknowledged, it is considered to be - * _outstanding_. During that time period, the message will not be redelivered (on a + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. The approximate amount of time (on a best-effort basis) + * Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In + * the interval after the message is delivered and before it is acknowledged, it is considered + * to be _outstanding_. During that time period, the message will not be redelivered (on a * best-effort basis). *

For pull subscriptions, this value is used as the initial value for the ack deadline. To * override this value for a given message, call `ModifyAckDeadline` with the corresponding @@ -736,12 +736,12 @@ public final Subscription createSubscription( * @param topic Required. The name of the topic from which this subscription is receiving * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits - * for the subscriber to acknowledge receipt before resending the message. In the interval - * after the message is delivered and before it is acknowledged, it is considered to be - * _outstanding_. During that time period, the message will not be redelivered (on a + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. The approximate amount of time (on a best-effort basis) + * Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In + * the interval after the message is delivered and before it is acknowledged, it is considered + * to be _outstanding_. During that time period, the message will not be redelivered (on a * best-effort basis). *

For pull subscriptions, this value is used as the initial value for the ack deadline. To * override this value for a given message, call `ModifyAckDeadline` with the corresponding @@ -806,12 +806,12 @@ public final Subscription createSubscription( * @param topic Required. The name of the topic from which this subscription is receiving * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits - * for the subscriber to acknowledge receipt before resending the message. In the interval - * after the message is delivered and before it is acknowledged, it is considered to be - * _outstanding_. During that time period, the message will not be redelivered (on a + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. The approximate amount of time (on a best-effort basis) + * Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In + * the interval after the message is delivered and before it is acknowledged, it is considered + * to be _outstanding_. During that time period, the message will not be redelivered (on a * best-effort basis). *

For pull subscriptions, this value is used as the initial value for the ack deadline. To * override this value for a given message, call `ModifyAckDeadline` with the corresponding @@ -1296,8 +1296,8 @@ public final UnaryCallable getSubscription // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

Sample code: * @@ -1330,8 +1330,8 @@ public final Subscription updateSubscription(Subscription subscription, FieldMas // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

Sample code: * @@ -1360,8 +1360,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

Sample code: * @@ -1742,8 +1742,8 @@ public final UnaryCallable deleteSubscriptionC * expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might * immediately make the message available for delivery to another subscriber client. This * typically results in an increase in the rate of message redeliveries (that is, duplicates). - * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify is - * 600 seconds (10 minutes). + * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in + * a single request is 600 seconds (10 minutes). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( @@ -1788,8 +1788,8 @@ public final void modifyAckDeadline( * expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might * immediately make the message available for delivery to another subscriber client. This * typically results in an increase in the rate of message redeliveries (that is, duplicates). - * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify is - * 600 seconds (10 minutes). + * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in + * a single request is 600 seconds (10 minutes). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( @@ -3380,9 +3380,9 @@ public final UnaryCallable createSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow + * you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of * messages in an existing subscription to the state captured by a snapshot. * *

Sample code: @@ -3413,9 +3413,9 @@ public final Snapshot updateSnapshot(Snapshot snapshot, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow + * you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of * messages in an existing subscription to the state captured by a snapshot. * *

Sample code: @@ -3445,9 +3445,9 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow + * you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of * messages in an existing subscription to the state captured by a snapshot. * *

Sample code: diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 4e2652585..a80ed29ec 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -81,221 +81,221 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * *

MethodsMethods
MethodDescriptionMethod Variants
CreateSubscription

CreateSubscription

Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. *

If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSubscription(Subscription request) + *
  • createSubscription(Subscription request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSubscription(SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
  • createSubscription(SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
  • createSubscription(String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
  • createSubscription(String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
  • createSubscription(SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

  • createSubscription(SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

  • createSubscription(String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

  • createSubscription(String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSubscriptionCallable() + *
  • createSubscriptionCallable() *

*
GetSubscription

GetSubscription

Gets the configuration details of a subscription.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSubscription(GetSubscriptionRequest request) + *
  • getSubscription(GetSubscriptionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSubscription(SubscriptionName subscription) - *
  • getSubscription(String subscription) + *
  • getSubscription(SubscriptionName subscription) + *

  • getSubscription(String subscription) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSubscriptionCallable() + *
  • getSubscriptionCallable() *

*
UpdateSubscription

Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.

UpdateSubscription

Updates an existing subscription by updating the fields specified in the update mask. Note that certain properties of a subscription, such as its topic, are not modifiable.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSubscription(UpdateSubscriptionRequest request) + *
  • updateSubscription(UpdateSubscriptionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSubscription(Subscription subscription, FieldMask updateMask) + *
  • updateSubscription(Subscription subscription, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSubscriptionCallable() + *
  • updateSubscriptionCallable() *

*
ListSubscriptions

ListSubscriptions

Lists matching subscriptions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSubscriptions(ListSubscriptionsRequest request) + *
  • listSubscriptions(ListSubscriptionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSubscriptions(ProjectName project) - *
  • listSubscriptions(String project) + *
  • listSubscriptions(ProjectName project) + *

  • listSubscriptions(String project) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSubscriptionsPagedCallable() - *
  • listSubscriptionsCallable() + *
  • listSubscriptionsPagedCallable() + *

  • listSubscriptionsCallable() *

*
DeleteSubscription

DeleteSubscription

Deletes an existing subscription. All messages retained in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription or its topic unless the same topic is specified.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSubscription(DeleteSubscriptionRequest request) + *
  • deleteSubscription(DeleteSubscriptionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSubscription(SubscriptionName subscription) - *
  • deleteSubscription(String subscription) + *
  • deleteSubscription(SubscriptionName subscription) + *

  • deleteSubscription(String subscription) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSubscriptionCallable() + *
  • deleteSubscriptionCallable() *

*
ModifyAckDeadline

ModifyAckDeadline

Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • modifyAckDeadline(ModifyAckDeadlineRequest request) + *
  • modifyAckDeadline(ModifyAckDeadlineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • modifyAckDeadline(SubscriptionName subscription, List<String> ackIds, int ackDeadlineSeconds) - *
  • modifyAckDeadline(String subscription, List<String> ackIds, int ackDeadlineSeconds) + *
  • modifyAckDeadline(SubscriptionName subscription, List<String> ackIds, int ackDeadlineSeconds) + *

  • modifyAckDeadline(String subscription, List<String> ackIds, int ackDeadlineSeconds) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • modifyAckDeadlineCallable() + *
  • modifyAckDeadlineCallable() *

*
Acknowledge

Acknowledge

Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. *

Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • acknowledge(AcknowledgeRequest request) + *
  • acknowledge(AcknowledgeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • acknowledge(SubscriptionName subscription, List<String> ackIds) - *
  • acknowledge(String subscription, List<String> ackIds) + *
  • acknowledge(SubscriptionName subscription, List<String> ackIds) + *

  • acknowledge(String subscription, List<String> ackIds) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • acknowledgeCallable() + *
  • acknowledgeCallable() *

*
Pull

Pull

Pulls messages from the server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • pull(PullRequest request) + *
  • pull(PullRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • pull(SubscriptionName subscription, int maxMessages) - *
  • pull(String subscription, int maxMessages) - *
  • pull(SubscriptionName subscription, boolean returnImmediately, int maxMessages) - *
  • pull(String subscription, boolean returnImmediately, int maxMessages) + *
  • pull(SubscriptionName subscription, int maxMessages) + *

  • pull(String subscription, int maxMessages) + *

  • pull(SubscriptionName subscription, boolean returnImmediately, int maxMessages) + *

  • pull(String subscription, boolean returnImmediately, int maxMessages) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • pullCallable() + *
  • pullCallable() *

*
StreamingPull

StreamingPull

Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgements and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to reassign server-side resources, in which case, the client should re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel.

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingPullCallable() + *
  • streamingPullCallable() *

*
ModifyPushConfig

ModifyPushConfig

Modifies the `PushConfig` for a specified subscription. *

This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • modifyPushConfig(ModifyPushConfigRequest request) + *
  • modifyPushConfig(ModifyPushConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) - *
  • modifyPushConfig(String subscription, PushConfig pushConfig) + *
  • modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) + *

  • modifyPushConfig(String subscription, PushConfig pushConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • modifyPushConfigCallable() + *
  • modifyPushConfigCallable() *

*
GetSnapshot

GetSnapshot

Gets the configuration details of a snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSnapshot(GetSnapshotRequest request) + *
  • getSnapshot(GetSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSnapshot(SnapshotName snapshot) - *
  • getSnapshot(String snapshot) + *
  • getSnapshot(SnapshotName snapshot) + *

  • getSnapshot(String snapshot) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSnapshotCallable() + *
  • getSnapshotCallable() *

*
ListSnapshots

ListSnapshots

Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSnapshots(ListSnapshotsRequest request) + *
  • listSnapshots(ListSnapshotsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSnapshots(ProjectName project) - *
  • listSnapshots(String project) + *
  • listSnapshots(ProjectName project) + *

  • listSnapshots(String project) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSnapshotsPagedCallable() - *
  • listSnapshotsCallable() + *
  • listSnapshotsPagedCallable() + *

  • listSnapshotsCallable() *

*
CreateSnapshot

CreateSnapshot

Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSnapshot(CreateSnapshotRequest request) + *
  • createSnapshot(CreateSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSnapshot(SnapshotName name, SubscriptionName subscription) - *
  • createSnapshot(SnapshotName name, String subscription) - *
  • createSnapshot(String name, SubscriptionName subscription) - *
  • createSnapshot(String name, String subscription) + *
  • createSnapshot(SnapshotName name, SubscriptionName subscription) + *

  • createSnapshot(SnapshotName name, String subscription) + *

  • createSnapshot(String name, SubscriptionName subscription) + *

  • createSnapshot(String name, String subscription) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSnapshotCallable() + *
  • createSnapshotCallable() *

*
UpdateSnapshot

Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

UpdateSnapshot

Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSnapshot(UpdateSnapshotRequest request) + *
  • updateSnapshot(UpdateSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSnapshot(Snapshot snapshot, FieldMask updateMask) + *
  • updateSnapshot(Snapshot snapshot, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSnapshotCallable() + *
  • updateSnapshotCallable() *

*
DeleteSnapshot

DeleteSnapshot

Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSnapshot(DeleteSnapshotRequest request) + *
  • deleteSnapshot(DeleteSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSnapshot(SnapshotName snapshot) - *
  • deleteSnapshot(String snapshot) + *
  • deleteSnapshot(SnapshotName snapshot) + *

  • deleteSnapshot(String snapshot) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSnapshotCallable() + *
  • deleteSnapshotCallable() *

*
Seek

Seek

Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. Note that both the subscription and the snapshot must be on the same topic.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • seek(SeekRequest request) + *
  • seek(SeekRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • seekCallable() + *
  • seekCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
- * + * * * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -515,6 +515,7 @@ public final Topic createTopic(ProjectTopicName name) { * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) + * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -550,6 +551,7 @@ public final Topic createTopic(Topic request) { * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) + * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. @@ -563,7 +565,8 @@ public final UnaryCallable createTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

Sample code: * @@ -595,7 +598,8 @@ public final Topic updateTopic(Topic topic, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

Sample code: * @@ -624,7 +628,8 @@ public final Topic updateTopic(UpdateTopicRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

Sample code: * diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index f3c495688..262a09205 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -480,6 +480,15 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -760,7 +769,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -773,7 +781,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -941,6 +948,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 8b036328d..bb5e127d3 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -340,6 +340,15 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -591,7 +600,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -604,7 +612,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -770,6 +777,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index c517f17d6..93122a831 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -385,6 +385,15 @@ public SubscriberStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -721,7 +730,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -734,7 +742,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -954,6 +961,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SubscriberStubSettings build() throws IOException { return new SubscriberStubSettings(this); diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 8fd73b027..441c326d2 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1691,6 +1691,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2456,6 +2501,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.Topic$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.UpdateSnapshotRequest", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index c18152b5d..2dc4d6e09 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -45,6 +45,7 @@ import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsResponse; @@ -115,6 +116,7 @@ public void createTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -165,6 +167,7 @@ public void createTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -215,6 +218,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -227,6 +231,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -265,6 +270,7 @@ public void updateTopicExceptionTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -373,6 +379,7 @@ public void getTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -423,6 +430,7 @@ public void getTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 1693f7e40..44a9c11c5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -45,6 +45,7 @@ import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -129,6 +130,7 @@ public void createTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -173,6 +175,7 @@ public void createTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -217,6 +220,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -342,6 +346,7 @@ public void getTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -386,6 +391,7 @@ public void getTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 020bf6f9d..18d2202b1 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -479,8 +479,8 @@ default void createTopic( * * *

-     * Updates an existing topic. Note that certain properties of a
-     * topic are not modifiable.
+     * Updates an existing topic by updating the fields specified in the update
+     * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ default void updateTopic( @@ -656,8 +656,8 @@ public void createTopic( * * *
-     * Updates an existing topic. Note that certain properties of a
-     * topic are not modifiable.
+     * Updates an existing topic by updating the fields specified in the update
+     * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ public void updateTopic( @@ -828,8 +828,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request * * *
-     * Updates an existing topic. Note that certain properties of a
-     * topic are not modifiable.
+     * Updates an existing topic by updating the fields specified in the update
+     * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { @@ -976,8 +976,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * Updates an existing topic. Note that certain properties of a
-     * topic are not modifiable.
+     * Updates an existing topic by updating the fields specified in the update
+     * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 3b11ea3dc..ab612d2c5 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index c90e438e8..3bf65b4e3 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -778,8 +778,9 @@ default void getSubscription( * * *
-     * Updates an existing subscription. Note that certain properties of a
-     * subscription, such as its topic, are not modifiable.
+     * Updates an existing subscription by updating the fields specified in the
+     * update mask. Note that certain properties of a subscription, such as its
+     * topic, are not modifiable.
      * 
*/ default void updateSubscription( @@ -978,7 +979,8 @@ default void createSnapshot( * * *
-     * Updates an existing snapshot. Snapshots are used in
+     * Updates an existing snapshot by updating the fields specified in the update
+     * mask. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
      * which allow you to manage message acknowledgments in bulk. That is, you can
      * set the acknowledgment state of messages in an existing subscription to the
@@ -1115,8 +1117,9 @@ public void getSubscription(
      *
      *
      * 
-     * Updates an existing subscription. Note that certain properties of a
-     * subscription, such as its topic, are not modifiable.
+     * Updates an existing subscription by updating the fields specified in the
+     * update mask. Note that certain properties of a subscription, such as its
+     * topic, are not modifiable.
      * 
*/ public void updateSubscription( @@ -1334,7 +1337,8 @@ public void createSnapshot( * * *
-     * Updates an existing snapshot. Snapshots are used in
+     * Updates an existing snapshot by updating the fields specified in the update
+     * mask. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
      * which allow you to manage message acknowledgments in bulk. That is, you can
      * set the acknowledgment state of messages in an existing subscription to the
@@ -1455,8 +1459,9 @@ public com.google.pubsub.v1.Subscription getSubscription(
      *
      *
      * 
-     * Updates an existing subscription. Note that certain properties of a
-     * subscription, such as its topic, are not modifiable.
+     * Updates an existing subscription by updating the fields specified in the
+     * update mask. Note that certain properties of a subscription, such as its
+     * topic, are not modifiable.
      * 
*/ public com.google.pubsub.v1.Subscription updateSubscription( @@ -1624,7 +1629,8 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * * *
-     * Updates an existing snapshot. Snapshots are used in
+     * Updates an existing snapshot by updating the fields specified in the update
+     * mask. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
      * which allow you to manage message acknowledgments in bulk. That is, you can
      * set the acknowledgment state of messages in an existing subscription to the
@@ -1736,8 +1742,9 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      *
      *
      * 
-     * Updates an existing subscription. Note that certain properties of a
-     * subscription, such as its topic, are not modifiable.
+     * Updates an existing subscription by updating the fields specified in the
+     * update mask. Note that certain properties of a subscription, such as its
+     * topic, are not modifiable.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1909,7 +1916,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
-     * Updates an existing snapshot. Snapshots are used in
+     * Updates an existing snapshot by updating the fields specified in the update
+     * mask. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
      * which allow you to manage message acknowledgments in bulk. That is, you can
      * set the acknowledgment state of messages in an existing subscription to the
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
index ad61b3fa8..f118acddd 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
index b2e049435..ef4ff0f2c 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
index 2683f75df..8bc70c28b 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -128,6 +128,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      * SCHEMA_MISMATCH = 4;
      */
     SCHEMA_MISMATCH(4),
+    /**
+     *
+     *
+     * 
+     * Cannot write to the destination because enforce_in_transit is set to true
+     * and the destination locations are not in the allowed regions.
+     * 
+ * + * IN_TRANSIT_LOCATION_RESTRICTION = 5; + */ + IN_TRANSIT_LOCATION_RESTRICTION(5), UNRECOGNIZED(-1), ; @@ -186,6 +197,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_MISMATCH = 4; */ public static final int SCHEMA_MISMATCH_VALUE = 4; + /** + * + * + *
+     * Cannot write to the destination because enforce_in_transit is set to true
+     * and the destination locations are not in the allowed regions.
+     * 
+ * + * IN_TRANSIT_LOCATION_RESTRICTION = 5; + */ + public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -221,6 +243,8 @@ public static State forNumber(int value) { return NOT_FOUND; case 4: return SCHEMA_MISMATCH; + case 5: + return IN_TRANSIT_LOCATION_RESTRICTION; default: return null; } @@ -282,11 +306,11 @@ private State(int value) { * * *
-   * The name of the table to which to write data, of the form
+   * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -306,11 +330,11 @@ public java.lang.String getTable() { * * *
-   * The name of the table to which to write data, of the form
+   * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -353,14 +377,14 @@ public boolean getUseTopicSchema() { * * *
-   * When true, write the subscription name, message_id, publish_time,
+   * Optional. When true, write the subscription name, message_id, publish_time,
    * attributes, and ordering_key to additional columns in the table. The
    * subscription name, message_id, and publish_time fields are put in their own
    * columns while all other message properties (other than data) are written to
    * a JSON object in the attributes column.
    * 
* - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -375,14 +399,14 @@ public boolean getWriteMetadata() { * * *
-   * When true and use_topic_schema is true, any fields that are a part of the
-   * topic schema that are not part of the BigQuery table schema are dropped
-   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
-   * any messages with extra fields are not written and remain in the
+   * Optional. When true and use_topic_schema is true, any fields that are a
+   * part of the topic schema that are not part of the BigQuery table schema are
+   * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
+   * sync and any messages with extra fields are not written and remain in the
    * subscription's backlog.
    * 
* - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ @@ -905,11 +929,11 @@ public Builder mergeFrom( * * *
-     * The name of the table to which to write data, of the form
+     * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -928,11 +952,11 @@ public java.lang.String getTable() { * * *
-     * The name of the table to which to write data, of the form
+     * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -951,11 +975,11 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
-     * The name of the table to which to write data, of the form
+     * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The table to set. * @return This builder for chaining. @@ -973,11 +997,11 @@ public Builder setTable(java.lang.String value) { * * *
-     * The name of the table to which to write data, of the form
+     * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -991,11 +1015,11 @@ public Builder clearTable() { * * *
-     * The name of the table to which to write data, of the form
+     * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for table to set. * @return This builder for chaining. @@ -1075,14 +1099,14 @@ public Builder clearUseTopicSchema() { * * *
-     * When true, write the subscription name, message_id, publish_time,
+     * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
      * subscription name, message_id, and publish_time fields are put in their own
      * columns while all other message properties (other than data) are written to
      * a JSON object in the attributes column.
      * 
* - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1094,14 +1118,14 @@ public boolean getWriteMetadata() { * * *
-     * When true, write the subscription name, message_id, publish_time,
+     * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
      * subscription name, message_id, and publish_time fields are put in their own
      * columns while all other message properties (other than data) are written to
      * a JSON object in the attributes column.
      * 
* - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1117,14 +1141,14 @@ public Builder setWriteMetadata(boolean value) { * * *
-     * When true, write the subscription name, message_id, publish_time,
+     * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
      * subscription name, message_id, and publish_time fields are put in their own
      * columns while all other message properties (other than data) are written to
      * a JSON object in the attributes column.
      * 
* - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1140,14 +1164,14 @@ public Builder clearWriteMetadata() { * * *
-     * When true and use_topic_schema is true, any fields that are a part of the
-     * topic schema that are not part of the BigQuery table schema are dropped
-     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
-     * any messages with extra fields are not written and remain in the
+     * Optional. When true and use_topic_schema is true, any fields that are a
+     * part of the topic schema that are not part of the BigQuery table schema are
+     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
+     * sync and any messages with extra fields are not written and remain in the
      * subscription's backlog.
      * 
* - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ @@ -1159,14 +1183,14 @@ public boolean getDropUnknownFields() { * * *
-     * When true and use_topic_schema is true, any fields that are a part of the
-     * topic schema that are not part of the BigQuery table schema are dropped
-     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
-     * any messages with extra fields are not written and remain in the
+     * Optional. When true and use_topic_schema is true, any fields that are a
+     * part of the topic schema that are not part of the BigQuery table schema are
+     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
+     * sync and any messages with extra fields are not written and remain in the
      * subscription's backlog.
      * 
* - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dropUnknownFields to set. * @return This builder for chaining. @@ -1182,14 +1206,14 @@ public Builder setDropUnknownFields(boolean value) { * * *
-     * When true and use_topic_schema is true, any fields that are a part of the
-     * topic schema that are not part of the BigQuery table schema are dropped
-     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
-     * any messages with extra fields are not written and remain in the
+     * Optional. When true and use_topic_schema is true, any fields that are a
+     * part of the topic schema that are not part of the BigQuery table schema are
+     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
+     * sync and any messages with extra fields are not written and remain in the
      * subscription's backlog.
      * 
* - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index bc805214f..2742cc001 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface BigQueryConfigOrBuilder * * *
-   * The name of the table to which to write data, of the form
+   * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -40,11 +40,11 @@ public interface BigQueryConfigOrBuilder * * *
-   * The name of the table to which to write data, of the form
+   * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -69,14 +69,14 @@ public interface BigQueryConfigOrBuilder * * *
-   * When true, write the subscription name, message_id, publish_time,
+   * Optional. When true, write the subscription name, message_id, publish_time,
    * attributes, and ordering_key to additional columns in the table. The
    * subscription name, message_id, and publish_time fields are put in their own
    * columns while all other message properties (other than data) are written to
    * a JSON object in the attributes column.
    * 
* - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -86,14 +86,14 @@ public interface BigQueryConfigOrBuilder * * *
-   * When true and use_topic_schema is true, any fields that are a part of the
-   * topic schema that are not part of the BigQuery table schema are dropped
-   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
-   * any messages with extra fields are not written and remain in the
+   * Optional. When true and use_topic_schema is true, any fields that are a
+   * part of the topic schema that are not part of the BigQuery table schema are
+   * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
+   * sync and any messages with extra fields are not written and remain in the
    * subscription's backlog.
    * 
* - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index a4532a62f..b44f9b427 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,6 +116,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ NOT_FOUND(3), + /** + * + * + *
+     * Cannot write to the destination because enforce_in_transit is set to true
+     * and the destination locations are not in the allowed regions.
+     * 
+ * + * IN_TRANSIT_LOCATION_RESTRICTION = 4; + */ + IN_TRANSIT_LOCATION_RESTRICTION(4), UNRECOGNIZED(-1), ; @@ -160,6 +171,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** + * + * + *
+     * Cannot write to the destination because enforce_in_transit is set to true
+     * and the destination locations are not in the allowed regions.
+     * 
+ * + * IN_TRANSIT_LOCATION_RESTRICTION = 4; + */ + public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -193,6 +215,8 @@ public static State forNumber(int value) { return PERMISSION_DENIED; case 3: return NOT_FOUND; + case 4: + return IN_TRANSIT_LOCATION_RESTRICTION; default: return null; } @@ -681,15 +705,15 @@ public interface AvroConfigOrBuilder * * *
-     * When true, write the subscription name, message_id, publish_time,
-     * attributes, and ordering_key as additional fields in the output. The
-     * subscription name, message_id, and publish_time fields are put in their
-     * own fields while all other message properties other than data (for
-     * example, an ordering_key, if present) are added as entries in the
-     * attributes map.
+     * Optional. When true, write the subscription name, message_id,
+     * publish_time, attributes, and ordering_key as additional fields in the
+     * output. The subscription name, message_id, and publish_time fields are
+     * put in their own fields while all other message properties other than
+     * data (for example, an ordering_key, if present) are added as entries in
+     * the attributes map.
      * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -744,15 +768,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * When true, write the subscription name, message_id, publish_time,
-     * attributes, and ordering_key as additional fields in the output. The
-     * subscription name, message_id, and publish_time fields are put in their
-     * own fields while all other message properties other than data (for
-     * example, an ordering_key, if present) are added as entries in the
-     * attributes map.
+     * Optional. When true, write the subscription name, message_id,
+     * publish_time, attributes, and ordering_key as additional fields in the
+     * output. The subscription name, message_id, and publish_time fields are
+     * put in their own fields while all other message properties other than
+     * data (for example, an ordering_key, if present) are added as entries in
+     * the attributes map.
      * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1111,15 +1135,15 @@ public Builder mergeFrom( * * *
-       * When true, write the subscription name, message_id, publish_time,
-       * attributes, and ordering_key as additional fields in the output. The
-       * subscription name, message_id, and publish_time fields are put in their
-       * own fields while all other message properties other than data (for
-       * example, an ordering_key, if present) are added as entries in the
-       * attributes map.
+       * Optional. When true, write the subscription name, message_id,
+       * publish_time, attributes, and ordering_key as additional fields in the
+       * output. The subscription name, message_id, and publish_time fields are
+       * put in their own fields while all other message properties other than
+       * data (for example, an ordering_key, if present) are added as entries in
+       * the attributes map.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1131,15 +1155,15 @@ public boolean getWriteMetadata() { * * *
-       * When true, write the subscription name, message_id, publish_time,
-       * attributes, and ordering_key as additional fields in the output. The
-       * subscription name, message_id, and publish_time fields are put in their
-       * own fields while all other message properties other than data (for
-       * example, an ordering_key, if present) are added as entries in the
-       * attributes map.
+       * Optional. When true, write the subscription name, message_id,
+       * publish_time, attributes, and ordering_key as additional fields in the
+       * output. The subscription name, message_id, and publish_time fields are
+       * put in their own fields while all other message properties other than
+       * data (for example, an ordering_key, if present) are added as entries in
+       * the attributes map.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1155,15 +1179,15 @@ public Builder setWriteMetadata(boolean value) { * * *
-       * When true, write the subscription name, message_id, publish_time,
-       * attributes, and ordering_key as additional fields in the output. The
-       * subscription name, message_id, and publish_time fields are put in their
-       * own fields while all other message properties other than data (for
-       * example, an ordering_key, if present) are added as entries in the
-       * attributes map.
+       * Optional. When true, write the subscription name, message_id,
+       * publish_time, attributes, and ordering_key as additional fields in the
+       * output. The subscription name, message_id, and publish_time fields are
+       * put in their own fields while all other message properties other than
+       * data (for example, an ordering_key, if present) are added as entries in
+       * the attributes map.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1352,11 +1376,11 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-   * User-provided prefix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Optional. User-provided prefix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -1376,11 +1400,11 @@ public java.lang.String getFilenamePrefix() { * * *
-   * User-provided prefix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Optional. User-provided prefix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -1405,12 +1429,12 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { * * *
-   * User-provided suffix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-   * not end in "/".
+   * Optional. User-provided suffix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Must not end in "/".
    * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -1430,12 +1454,12 @@ public java.lang.String getFilenameSuffix() { * * *
-   * User-provided suffix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-   * not end in "/".
+   * Optional. User-provided suffix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Must not end in "/".
    * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -1457,10 +1481,13 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -1472,10 +1499,13 @@ public boolean hasTextConfig() { * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -1490,10 +1520,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { @@ -1508,10 +1541,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -1523,10 +1559,13 @@ public boolean hasAvroConfig() { * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -1541,10 +1580,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { @@ -1560,12 +1602,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -1577,12 +1620,13 @@ public boolean hasMaxDuration() { * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -1594,12 +1638,13 @@ public com.google.protobuf.Duration getMaxDuration() { * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { @@ -1612,12 +1657,12 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
-   * The maximum bytes that can be written to a Cloud Storage file before a new
-   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
-   * in cases where messages are larger than the limit.
+   * Optional. The maximum bytes that can be written to a Cloud Storage file
+   * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
+   * be exceeded in cases where messages are larger than the limit.
    * 
* - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ @@ -2358,11 +2403,11 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
-     * User-provided prefix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Optional. User-provided prefix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -2381,11 +2426,11 @@ public java.lang.String getFilenamePrefix() { * * *
-     * User-provided prefix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Optional. User-provided prefix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -2404,11 +2449,11 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { * * *
-     * User-provided prefix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Optional. User-provided prefix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filenamePrefix to set. * @return This builder for chaining. @@ -2426,11 +2471,11 @@ public Builder setFilenamePrefix(java.lang.String value) { * * *
-     * User-provided prefix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Optional. User-provided prefix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2444,11 +2489,11 @@ public Builder clearFilenamePrefix() { * * *
-     * User-provided prefix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Optional. User-provided prefix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filenamePrefix to set. * @return This builder for chaining. @@ -2469,12 +2514,12 @@ public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { * * *
-     * User-provided suffix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-     * not end in "/".
+     * Optional. User-provided suffix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Must not end in "/".
      * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -2493,12 +2538,12 @@ public java.lang.String getFilenameSuffix() { * * *
-     * User-provided suffix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-     * not end in "/".
+     * Optional. User-provided suffix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Must not end in "/".
      * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -2517,12 +2562,12 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { * * *
-     * User-provided suffix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-     * not end in "/".
+     * Optional. User-provided suffix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Must not end in "/".
      * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filenameSuffix to set. * @return This builder for chaining. @@ -2540,12 +2585,12 @@ public Builder setFilenameSuffix(java.lang.String value) { * * *
-     * User-provided suffix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-     * not end in "/".
+     * Optional. User-provided suffix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Must not end in "/".
      * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2559,12 +2604,12 @@ public Builder clearFilenameSuffix() { * * *
-     * User-provided suffix for Cloud Storage filename. See the [object naming
-     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-     * not end in "/".
+     * Optional. User-provided suffix for Cloud Storage filename. See the [object
+     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+     * Must not end in "/".
      * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filenameSuffix to set. * @return This builder for chaining. @@ -2589,10 +2634,13 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -2604,10 +2652,13 @@ public boolean hasTextConfig() { * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -2629,10 +2680,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { @@ -2651,10 +2705,13 @@ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig( com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder builderForValue) { @@ -2671,10 +2728,13 @@ public Builder setTextConfig( * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { @@ -2704,10 +2764,13 @@ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfi * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTextConfig() { if (textConfigBuilder_ == null) { @@ -2729,10 +2792,13 @@ public Builder clearTextConfig() { * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { return getTextConfigFieldBuilder().getBuilder(); @@ -2741,10 +2807,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigB * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { @@ -2761,10 +2830,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
-     * If set, message data will be written to Cloud Storage in text format.
+     * Optional. If set, message data will be written to Cloud Storage in text
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.TextConfig, @@ -2799,10 +2871,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -2814,10 +2889,13 @@ public boolean hasAvroConfig() { * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -2839,10 +2917,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { @@ -2861,10 +2942,13 @@ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig( com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder builderForValue) { @@ -2881,10 +2965,13 @@ public Builder setAvroConfig( * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { @@ -2914,10 +3001,13 @@ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfi * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAvroConfig() { if (avroConfigBuilder_ == null) { @@ -2939,10 +3029,13 @@ public Builder clearAvroConfig() { * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { return getAvroConfigFieldBuilder().getBuilder(); @@ -2951,10 +3044,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigB * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { @@ -2971,10 +3067,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
-     * If set, message data will be written to Cloud Storage in Avro format.
+     * Optional. If set, message data will be written to Cloud Storage in Avro
+     * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.AvroConfig, @@ -3010,12 +3109,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -3026,12 +3126,13 @@ public boolean hasMaxDuration() { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -3048,12 +3149,13 @@ public com.google.protobuf.Duration getMaxDuration() { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { @@ -3072,12 +3174,13 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { if (maxDurationBuilder_ == null) { @@ -3093,12 +3196,13 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { @@ -3120,12 +3224,13 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaxDuration() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3141,12 +3246,13 @@ public Builder clearMaxDuration() { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { bitField0_ |= 0x00000020; @@ -3157,12 +3263,13 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { if (maxDurationBuilder_ != null) { @@ -3177,12 +3284,13 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
-     * The maximum duration that can elapse before a new Cloud Storage file is
-     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-     * the subscription's acknowledgement deadline.
+     * Optional. The maximum duration that can elapse before a new Cloud Storage
+     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+     * exceed the subscription's acknowledgement deadline.
      * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -3206,12 +3314,12 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
-     * The maximum bytes that can be written to a Cloud Storage file before a new
-     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
-     * in cases where messages are larger than the limit.
+     * Optional. The maximum bytes that can be written to a Cloud Storage file
+     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
+     * be exceeded in cases where messages are larger than the limit.
      * 
* - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ @@ -3223,12 +3331,12 @@ public long getMaxBytes() { * * *
-     * The maximum bytes that can be written to a Cloud Storage file before a new
-     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
-     * in cases where messages are larger than the limit.
+     * Optional. The maximum bytes that can be written to a Cloud Storage file
+     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
+     * be exceeded in cases where messages are larger than the limit.
      * 
* - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxBytes to set. * @return This builder for chaining. @@ -3244,12 +3352,12 @@ public Builder setMaxBytes(long value) { * * *
-     * The maximum bytes that can be written to a Cloud Storage file before a new
-     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
-     * in cases where messages are larger than the limit.
+     * Optional. The maximum bytes that can be written to a Cloud Storage file
+     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
+     * be exceeded in cases where messages are larger than the limit.
      * 
* - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 5122f804a..780c0ea61 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,11 +58,11 @@ public interface CloudStorageConfigOrBuilder * * *
-   * User-provided prefix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Optional. User-provided prefix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -71,11 +71,11 @@ public interface CloudStorageConfigOrBuilder * * *
-   * User-provided prefix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Optional. User-provided prefix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -85,12 +85,12 @@ public interface CloudStorageConfigOrBuilder * * *
-   * User-provided suffix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-   * not end in "/".
+   * Optional. User-provided suffix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Must not end in "/".
    * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -99,12 +99,12 @@ public interface CloudStorageConfigOrBuilder * * *
-   * User-provided suffix for Cloud Storage filename. See the [object naming
-   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
-   * not end in "/".
+   * Optional. User-provided suffix for Cloud Storage filename. See the [object
+   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
+   * Must not end in "/".
    * 
* - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -114,10 +114,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -126,10 +129,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -138,10 +144,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in text format.
+   * Optional. If set, message data will be written to Cloud Storage in text
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder(); @@ -149,10 +158,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -161,10 +173,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -173,10 +188,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * If set, message data will be written to Cloud Storage in Avro format.
+   * Optional. If set, message data will be written to Cloud Storage in Avro
+   * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder(); @@ -184,12 +202,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -198,12 +217,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -212,12 +232,13 @@ public interface CloudStorageConfigOrBuilder * * *
-   * The maximum duration that can elapse before a new Cloud Storage file is
-   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
-   * the subscription's acknowledgement deadline.
+   * Optional. The maximum duration that can elapse before a new Cloud Storage
+   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
+   * exceed the subscription's acknowledgement deadline.
    * 
* - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); @@ -225,12 +246,12 @@ public interface CloudStorageConfigOrBuilder * * *
-   * The maximum bytes that can be written to a Cloud Storage file before a new
-   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
-   * in cases where messages are larger than the limit.
+   * Optional. The maximum bytes that can be written to a Cloud Storage file
+   * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
+   * be exceeded in cases where messages are larger than the limit.
    * 
* - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index ba816deeb..2c1c5b2dd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 7ac207df8..3bdf1c9bf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 82fe63cea..c53c7f0ab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -189,8 +189,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
* * string schema_id = 3; @@ -216,8 +216,8 @@ public java.lang.String getSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
* * string schema_id = 3; @@ -976,8 +976,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
* * string schema_id = 3; @@ -1002,8 +1002,8 @@ public java.lang.String getSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
* * string schema_id = 3; @@ -1028,8 +1028,8 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -1053,8 +1053,8 @@ public Builder setSchemaId(java.lang.String value) { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -1074,8 +1074,8 @@ public Builder clearSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index c4cc82962..4d7883850 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,8 +108,8 @@ public interface CreateSchemaRequestOrBuilder * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -124,8 +124,8 @@ public interface CreateSchemaRequestOrBuilder * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 3918f5ca6..5cd0670a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -240,11 +240,11 @@ public int getLabelsCount() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -263,11 +263,11 @@ public java.util.Map getLabels() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -277,11 +277,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -298,11 +298,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1063,11 +1063,11 @@ public int getLabelsCount() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1086,11 +1086,11 @@ public java.util.Map getLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1100,11 +1100,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1121,11 +1121,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1148,11 +1148,11 @@ public Builder clearLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1171,11 +1171,11 @@ public java.util.Map getMutableLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1192,11 +1192,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ee4a6d68f..ae5776a89 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,22 +111,22 @@ public interface CreateSnapshotRequestOrBuilder * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -136,22 +136,22 @@ public interface CreateSnapshotRequestOrBuilder * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -162,11 +162,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 08f316b30..04e61da32 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,18 +74,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the topic to which dead letter messages should be published.
-   * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-   * account associated with the enclosing subscription's parent project (i.e.,
-   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-   * permission to Publish() to this topic.
+   * Optional. The name of the topic to which dead letter messages should be
+   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+   * service account associated with the enclosing subscription's parent project
+   * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+   * have permission to Publish() to this topic.
    *
    * The operation will fail if the topic does not exist.
    * Users should ensure that there is a subscription attached to this topic
    * since messages published to a topic with no subscriptions are lost.
    * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -105,18 +105,18 @@ public java.lang.String getDeadLetterTopic() { * * *
-   * The name of the topic to which dead letter messages should be published.
-   * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-   * account associated with the enclosing subscription's parent project (i.e.,
-   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-   * permission to Publish() to this topic.
+   * Optional. The name of the topic to which dead letter messages should be
+   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+   * service account associated with the enclosing subscription's parent project
+   * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+   * have permission to Publish() to this topic.
    *
    * The operation will fail if the topic does not exist.
    * Users should ensure that there is a subscription attached to this topic
    * since messages published to a topic with no subscriptions are lost.
    * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -139,8 +139,8 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * *
-   * The maximum number of delivery attempts for any message. The value must be
-   * between 5 and 100.
+   * Optional. The maximum number of delivery attempts for any message. The
+   * value must be between 5 and 100.
    *
    * The number of delivery attempts is defined as 1 + (the sum of number of
    * NACKs and number of times the acknowledgement deadline has been exceeded
@@ -154,7 +154,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
    * If this parameter is 0, a default value of 5 is used.
    * 
* - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ @@ -533,18 +533,18 @@ public Builder mergeFrom( * * *
-     * The name of the topic to which dead letter messages should be published.
-     * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-     * account associated with the enclosing subscription's parent project (i.e.,
-     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-     * permission to Publish() to this topic.
+     * Optional. The name of the topic to which dead letter messages should be
+     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+     * service account associated with the enclosing subscription's parent project
+     * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+     * have permission to Publish() to this topic.
      *
      * The operation will fail if the topic does not exist.
      * Users should ensure that there is a subscription attached to this topic
      * since messages published to a topic with no subscriptions are lost.
      * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -563,18 +563,18 @@ public java.lang.String getDeadLetterTopic() { * * *
-     * The name of the topic to which dead letter messages should be published.
-     * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-     * account associated with the enclosing subscription's parent project (i.e.,
-     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-     * permission to Publish() to this topic.
+     * Optional. The name of the topic to which dead letter messages should be
+     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+     * service account associated with the enclosing subscription's parent project
+     * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+     * have permission to Publish() to this topic.
      *
      * The operation will fail if the topic does not exist.
      * Users should ensure that there is a subscription attached to this topic
      * since messages published to a topic with no subscriptions are lost.
      * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -593,18 +593,18 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * *
-     * The name of the topic to which dead letter messages should be published.
-     * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-     * account associated with the enclosing subscription's parent project (i.e.,
-     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-     * permission to Publish() to this topic.
+     * Optional. The name of the topic to which dead letter messages should be
+     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+     * service account associated with the enclosing subscription's parent project
+     * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+     * have permission to Publish() to this topic.
      *
      * The operation will fail if the topic does not exist.
      * Users should ensure that there is a subscription attached to this topic
      * since messages published to a topic with no subscriptions are lost.
      * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The deadLetterTopic to set. * @return This builder for chaining. @@ -622,18 +622,18 @@ public Builder setDeadLetterTopic(java.lang.String value) { * * *
-     * The name of the topic to which dead letter messages should be published.
-     * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-     * account associated with the enclosing subscription's parent project (i.e.,
-     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-     * permission to Publish() to this topic.
+     * Optional. The name of the topic to which dead letter messages should be
+     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+     * service account associated with the enclosing subscription's parent project
+     * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+     * have permission to Publish() to this topic.
      *
      * The operation will fail if the topic does not exist.
      * Users should ensure that there is a subscription attached to this topic
      * since messages published to a topic with no subscriptions are lost.
      * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -647,18 +647,18 @@ public Builder clearDeadLetterTopic() { * * *
-     * The name of the topic to which dead letter messages should be published.
-     * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-     * account associated with the enclosing subscription's parent project (i.e.,
-     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-     * permission to Publish() to this topic.
+     * Optional. The name of the topic to which dead letter messages should be
+     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+     * service account associated with the enclosing subscription's parent project
+     * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+     * have permission to Publish() to this topic.
      *
      * The operation will fail if the topic does not exist.
      * Users should ensure that there is a subscription attached to this topic
      * since messages published to a topic with no subscriptions are lost.
      * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. @@ -679,8 +679,8 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of delivery attempts for any message. The value must be
-     * between 5 and 100.
+     * Optional. The maximum number of delivery attempts for any message. The
+     * value must be between 5 and 100.
      *
      * The number of delivery attempts is defined as 1 + (the sum of number of
      * NACKs and number of times the acknowledgement deadline has been exceeded
@@ -694,7 +694,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) {
      * If this parameter is 0, a default value of 5 is used.
      * 
* - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ @@ -706,8 +706,8 @@ public int getMaxDeliveryAttempts() { * * *
-     * The maximum number of delivery attempts for any message. The value must be
-     * between 5 and 100.
+     * Optional. The maximum number of delivery attempts for any message. The
+     * value must be between 5 and 100.
      *
      * The number of delivery attempts is defined as 1 + (the sum of number of
      * NACKs and number of times the acknowledgement deadline has been exceeded
@@ -721,7 +721,7 @@ public int getMaxDeliveryAttempts() {
      * If this parameter is 0, a default value of 5 is used.
      * 
* - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. @@ -737,8 +737,8 @@ public Builder setMaxDeliveryAttempts(int value) { * * *
-     * The maximum number of delivery attempts for any message. The value must be
-     * between 5 and 100.
+     * Optional. The maximum number of delivery attempts for any message. The
+     * value must be between 5 and 100.
      *
      * The number of delivery attempts is defined as 1 + (the sum of number of
      * NACKs and number of times the acknowledgement deadline has been exceeded
@@ -752,7 +752,7 @@ public Builder setMaxDeliveryAttempts(int value) {
      * If this parameter is 0, a default value of 5 is used.
      * 
* - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 57c34d389..8782315f6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,18 +27,18 @@ public interface DeadLetterPolicyOrBuilder * * *
-   * The name of the topic to which dead letter messages should be published.
-   * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-   * account associated with the enclosing subscription's parent project (i.e.,
-   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-   * permission to Publish() to this topic.
+   * Optional. The name of the topic to which dead letter messages should be
+   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+   * service account associated with the enclosing subscription's parent project
+   * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+   * have permission to Publish() to this topic.
    *
    * The operation will fail if the topic does not exist.
    * Users should ensure that there is a subscription attached to this topic
    * since messages published to a topic with no subscriptions are lost.
    * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -47,18 +47,18 @@ public interface DeadLetterPolicyOrBuilder * * *
-   * The name of the topic to which dead letter messages should be published.
-   * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
-   * account associated with the enclosing subscription's parent project (i.e.,
-   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
-   * permission to Publish() to this topic.
+   * Optional. The name of the topic to which dead letter messages should be
+   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
+   * service account associated with the enclosing subscription's parent project
+   * (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
+   * have permission to Publish() to this topic.
    *
    * The operation will fail if the topic does not exist.
    * Users should ensure that there is a subscription attached to this topic
    * since messages published to a topic with no subscriptions are lost.
    * 
* - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -68,8 +68,8 @@ public interface DeadLetterPolicyOrBuilder * * *
-   * The maximum number of delivery attempts for any message. The value must be
-   * between 5 and 100.
+   * Optional. The maximum number of delivery attempts for any message. The
+   * value must be between 5 and 100.
    *
    * The number of delivery attempts is defined as 1 + (the sum of number of
    * NACKs and number of times the acknowledgement deadline has been exceeded
@@ -83,7 +83,7 @@ public interface DeadLetterPolicyOrBuilder
    * If this parameter is 0, a default value of 5 is used.
    * 
* - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 05b705298..f2b94a760 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 9a119b4b6..a40fb98aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d057aaf47..3f0288302 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 1286bce9f..5b6bb574f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 3d494f98f..a8429c3de 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index c69c25ca8..49328a977 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index d91bb8783..28aecaadd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 53ffc2512..793cb2a16 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index a4055d287..df449fac8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 8360c7745..00b6fa902 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 910c1f9e2..b563d3d38 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 6b348ec14..50b968b41 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 0eae1bac2..a0c910e2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 4d8a60b3a..e667c16ef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 6f07b9ea4..883df5b84 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 89229dd47..a64bf1fec 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,15 +67,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -87,15 +87,15 @@ public boolean hasTtl() { * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -107,15 +107,15 @@ public com.google.protobuf.Duration getTtl() { * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { @@ -479,15 +479,15 @@ public Builder mergeFrom( * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -498,15 +498,15 @@ public boolean hasTtl() { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -521,15 +521,15 @@ public com.google.protobuf.Duration getTtl() { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { @@ -548,15 +548,15 @@ public Builder setTtl(com.google.protobuf.Duration value) { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { @@ -572,15 +572,15 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { @@ -602,15 +602,15 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00000001); @@ -626,15 +626,15 @@ public Builder clearTtl() { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getTtlBuilder() { bitField0_ |= 0x00000001; @@ -645,15 +645,15 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (ttlBuilder_ != null) { @@ -666,15 +666,15 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * * *
-     * Specifies the "time-to-live" duration for an associated resource. The
-     * resource expires if it is not active for a period of `ttl`. The definition
-     * of "activity" depends on the type of the associated resource. The minimum
-     * and maximum allowed values for `ttl` depend on the type of the associated
-     * resource, as well. If `ttl` is not set, the associated resource never
-     * expires.
+     * Optional. Specifies the "time-to-live" duration for an associated resource.
+     * The resource expires if it is not active for a period of `ttl`. The
+     * definition of "activity" depends on the type of the associated resource.
+     * The minimum and maximum allowed values for `ttl` depend on the type of the
+     * associated resource, as well. If `ttl` is not set, the associated resource
+     * never expires.
      * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 1b35de3b7..c46d53a5f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,15 +27,15 @@ public interface ExpirationPolicyOrBuilder * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -44,15 +44,15 @@ public interface ExpirationPolicyOrBuilder * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -61,15 +61,15 @@ public interface ExpirationPolicyOrBuilder * * *
-   * Specifies the "time-to-live" duration for an associated resource. The
-   * resource expires if it is not active for a period of `ttl`. The definition
-   * of "activity" depends on the type of the associated resource. The minimum
-   * and maximum allowed values for `ttl` depend on the type of the associated
-   * resource, as well. If `ttl` is not set, the associated resource never
-   * expires.
+   * Optional. Specifies the "time-to-live" duration for an associated resource.
+   * The resource expires if it is not active for a period of `ttl`. The
+   * definition of "activity" depends on the type of the associated resource.
+   * The minimum and maximum allowed values for `ttl` depend on the type of the
+   * associated resource, as well. If `ttl` is not set, the associated resource
+   * never expires.
    * 
* - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 61bf3ff17..9d6a6bd87 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 2ec773994..81fa8291f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 1953ee97c..54051d611 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 9eecf39ab..2c195ca68 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 66577cd6c..f2bfee161 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index bc2288db3..a61e7e84f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 59b81305a..2b801c10a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 72ce889da..3e38266a3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java new file mode 100644 index 000000000..04c354d8b --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -0,0 +1,2623 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
+ * Settings for an ingestion data source on a topic.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} + */ +public final class IngestionDataSourceSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) + IngestionDataSourceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestionDataSourceSettings.newBuilder() to construct. + private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestionDataSourceSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestionDataSourceSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + public interface AwsKinesisOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Kinesis
+     * ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Kinesis
+     * ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState(); + + /** + * + * + *
+     * Required. The Kinesis stream ARN to ingest data from.
+     * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + java.lang.String getStreamArn(); + /** + * + * + *
+     * Required. The Kinesis stream ARN to ingest data from.
+     * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + com.google.protobuf.ByteString getStreamArnBytes(); + + /** + * + * + *
+     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+     * Fan-Out mode. The consumer must be already created and ready to be used.
+     * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + java.lang.String getConsumerArn(); + /** + * + * + *
+     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+     * Fan-Out mode. The consumer must be already created and ready to be used.
+     * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + com.google.protobuf.ByteString getConsumerArnBytes(); + + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+     * required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + java.lang.String getAwsRoleArn(); + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+     * required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + com.google.protobuf.ByteString getAwsRoleArnBytes(); + + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+     * the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+     * the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
+   * Ingestion settings for Amazon Kinesis Data Streams.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} + */ + public static final class AwsKinesis extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + AwsKinesisOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsKinesis.newBuilder() to construct. + private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsKinesis() { + state_ = 0; + streamArn_ = ""; + consumerArn_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsKinesis(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + } + + /** + * + * + *
+     * Possible states for managed ingestion from Amazon Kinesis Data Streams.
+     * 
+ * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+       * Permission denied encountered while consuming data from Kinesis.
+       * This can happen if:
+       *   - The provided `aws_role_arn` does not exist or does not have the
+       *     appropriate permissions attached.
+       *   - The provided `aws_role_arn` is not set up properly for Identity
+       *     Federation using `gcp_service_account`.
+       *   - The Pub/Sub SA is not granted the
+       *     `iam.serviceAccounts.getOpenIdToken` permission on
+       *     `gcp_service_account`.
+       * 
+ * + * KINESIS_PERMISSION_DENIED = 2; + */ + KINESIS_PERMISSION_DENIED(2), + /** + * + * + *
+       * Permission denied encountered while publishing to the topic. This can
+       * happen due to Pub/Sub SA has not been granted the [appropriate publish
+       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
+       * The Kinesis stream does not exist.
+       * 
+ * + * STREAM_NOT_FOUND = 4; + */ + STREAM_NOT_FOUND(4), + /** + * + * + *
+       * The Kinesis consumer does not exist.
+       * 
+ * + * CONSUMER_NOT_FOUND = 5; + */ + CONSUMER_NOT_FOUND(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+       * Permission denied encountered while consuming data from Kinesis.
+       * This can happen if:
+       *   - The provided `aws_role_arn` does not exist or does not have the
+       *     appropriate permissions attached.
+       *   - The provided `aws_role_arn` is not set up properly for Identity
+       *     Federation using `gcp_service_account`.
+       *   - The Pub/Sub SA is not granted the
+       *     `iam.serviceAccounts.getOpenIdToken` permission on
+       *     `gcp_service_account`.
+       * 
+ * + * KINESIS_PERMISSION_DENIED = 2; + */ + public static final int KINESIS_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
+       * Permission denied encountered while publishing to the topic. This can
+       * happen due to Pub/Sub SA has not been granted the [appropriate publish
+       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
+       * The Kinesis stream does not exist.
+       * 
+ * + * STREAM_NOT_FOUND = 4; + */ + public static final int STREAM_NOT_FOUND_VALUE = 4; + /** + * + * + *
+       * The Kinesis consumer does not exist.
+       * 
+ * + * CONSUMER_NOT_FOUND = 5; + */ + public static final int CONSUMER_NOT_FOUND_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return KINESIS_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return STREAM_NOT_FOUND; + case 5: + return CONSUMER_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Kinesis
+     * ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Kinesis
+     * ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; + } + + public static final int STREAM_ARN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object streamArn_ = ""; + /** + * + * + *
+     * Required. The Kinesis stream ARN to ingest data from.
+     * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + @java.lang.Override + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + streamArn_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Kinesis stream ARN to ingest data from.
+     * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + streamArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_ARN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerArn_ = ""; + /** + * + * + *
+     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+     * Fan-Out mode. The consumer must be already created and ready to be used.
+     * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + @java.lang.Override + public java.lang.String getConsumerArn() { + java.lang.Object ref = consumerArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerArn_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+     * Fan-Out mode. The consumer must be already created and ready to be used.
+     * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerArnBytes() { + java.lang.Object ref = consumerArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AWS_ROLE_ARN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+     * required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + @java.lang.Override + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } + } + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+     * required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+     * the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+     * the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streamArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumerArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumerArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) obj; + + if (state_ != other.state_) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getConsumerArn().equals(other.getConsumerArn())) return false; + if (!getAwsRoleArn().equals(other.getAwsRoleArn())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STREAM_ARN_FIELD_NUMBER; + hash = (53 * hash) + getStreamArn().hashCode(); + hash = (37 * hash) + CONSUMER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getConsumerArn().hashCode(); + hash = (37 * hash) + AWS_ROLE_ARN_FIELD_NUMBER; + hash = (53 * hash) + getAwsRoleArn().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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; + } + /** + * + * + *
+     * Ingestion settings for Amazon Kinesis Data Streams.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + streamArn_ = ""; + consumerArn_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.streamArn_ = streamArn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consumerArn_ = consumerArn_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.awsRoleArn_ = awsRoleArn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStreamArn().isEmpty()) { + streamArn_ = other.streamArn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConsumerArn().isEmpty()) { + consumerArn_ = other.consumerArn_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAwsRoleArn().isEmpty()) { + awsRoleArn_ = other.awsRoleArn_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + streamArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + consumerArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + awsRoleArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Kinesis
+       * ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Kinesis
+       * ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Kinesis
+       * ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Kinesis
+       * ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Kinesis
+       * ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object streamArn_ = ""; + /** + * + * + *
+       * Required. The Kinesis stream ARN to ingest data from.
+       * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + streamArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Kinesis stream ARN to ingest data from.
+       * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + streamArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Kinesis stream ARN to ingest data from.
+       * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The streamArn to set. + * @return This builder for chaining. + */ + public Builder setStreamArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + streamArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Kinesis stream ARN to ingest data from.
+       * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearStreamArn() { + streamArn_ = getDefaultInstance().getStreamArn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Kinesis stream ARN to ingest data from.
+       * 
+ * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for streamArn to set. + * @return This builder for chaining. + */ + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streamArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object consumerArn_ = ""; + /** + * + * + *
+       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+       * Fan-Out mode. The consumer must be already created and ready to be used.
+       * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + public java.lang.String getConsumerArn() { + java.lang.Object ref = consumerArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+       * Fan-Out mode. The consumer must be already created and ready to be used.
+       * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + public com.google.protobuf.ByteString getConsumerArnBytes() { + java.lang.Object ref = consumerArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+       * Fan-Out mode. The consumer must be already created and ready to be used.
+       * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The consumerArn to set. + * @return This builder for chaining. + */ + public Builder setConsumerArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerArn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+       * Fan-Out mode. The consumer must be already created and ready to be used.
+       * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConsumerArn() { + consumerArn_ = getDefaultInstance().getConsumerArn(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
+       * Fan-Out mode. The consumer must be already created and ready to be used.
+       * 
+ * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for consumerArn to set. + * @return This builder for chaining. + */ + public Builder setConsumerArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerArn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+       * required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+       * required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+       * required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+       * required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAwsRoleArn() { + awsRoleArn_ = getDefaultInstance().getAwsRoleArn(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
+       * required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+       * the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+       * the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+       * the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+       * the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
+       * the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + 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.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsKinesis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_KINESIS(1), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return AWS_KINESIS; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeMessage(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings other = + (com.google.pubsub.v1.IngestionDataSourceSettings) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getAwsKinesis().equals(other.getAwsKinesis())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + AWS_KINESIS_FIELD_NUMBER; + hash = (53 * hash) + getAwsKinesis().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings 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.pubsub.v1.IngestionDataSourceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings 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.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings 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.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings 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.pubsub.v1.IngestionDataSourceSettings 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; + } + /** + * + * + *
+   * Settings for an ingestion data source on a topic.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings) + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsKinesisBuilder_ != null) { + awsKinesisBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings build() { + com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings result = + new com.google.pubsub.v1.IngestionDataSourceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { + result.source_ = awsKinesisBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionDataSourceSettings) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) + return this; + switch (other.getSourceCase()) { + case AWS_KINESIS: + { + mergeAwsKinesis(other.getAwsKinesis()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + awsKinesisBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; + } + + @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.pubsub.v1.IngestionDataSourceSettings) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings) + private static final com.google.pubsub.v1.IngestionDataSourceSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionDataSourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java new file mode 100644 index 000000000..a343777ad --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface IngestionDataSourceSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + boolean hasAwsKinesis(); + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); + + com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index cba091850..2831126cf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 13e6188f6..dbe66052f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index da0e793f1..924db9436 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 49517becb..062f6c84b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 11cb59d07..557437614 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 9c69b0a4b..d8728e999 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 969592443..44683e3f5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index ca5c661c1..bbdfbc82d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index d2b19ce97..79ec013a9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Maximum number of snapshots to return.
+   * Optional. Maximum number of snapshots to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
-   * The value returned by the last `ListSnapshotsResponse`; indicates that this
-   * is a continuation of a prior `ListSnapshots` call, and that the system
-   * should return the next page of data.
+   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListSnapshots` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
-   * The value returned by the last `ListSnapshotsResponse`; indicates that this
-   * is a continuation of a prior `ListSnapshots` call, and that the system
-   * should return the next page of data.
+   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListSnapshots` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of snapshots to return.
+     * Optional. Maximum number of snapshots to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
-     * Maximum number of snapshots to return.
+     * Optional. Maximum number of snapshots to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of snapshots to return.
+     * Optional. Maximum number of snapshots to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
-     * The value returned by the last `ListSnapshotsResponse`; indicates that this
-     * is a continuation of a prior `ListSnapshots` call, and that the system
-     * should return the next page of data.
+     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListSnapshots` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
-     * The value returned by the last `ListSnapshotsResponse`; indicates that this
-     * is a continuation of a prior `ListSnapshots` call, and that the system
-     * should return the next page of data.
+     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListSnapshots` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The value returned by the last `ListSnapshotsResponse`; indicates that this
-     * is a continuation of a prior `ListSnapshots` call, and that the system
-     * should return the next page of data.
+     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListSnapshots` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The value returned by the last `ListSnapshotsResponse`; indicates that this
-     * is a continuation of a prior `ListSnapshots` call, and that the system
-     * should return the next page of data.
+     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListSnapshots` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
-     * The value returned by the last `ListSnapshotsResponse`; indicates that this
-     * is a continuation of a prior `ListSnapshots` call, and that the system
-     * should return the next page of data.
+     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListSnapshots` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 36487bebd..05f0505ad 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListSnapshotsRequestOrBuilder * * *
-   * Maximum number of snapshots to return.
+   * Optional. Maximum number of snapshots to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
-   * The value returned by the last `ListSnapshotsResponse`; indicates that this
-   * is a continuation of a prior `ListSnapshots` call, and that the system
-   * should return the next page of data.
+   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListSnapshots` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
-   * The value returned by the last `ListSnapshotsResponse`; indicates that this
-   * is a continuation of a prior `ListSnapshots` call, and that the system
-   * should return the next page of data.
+   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListSnapshots` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index cc42bfb6c..1c9846664 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSnapshotsList() { @@ -84,10 +86,12 @@ public java.util.List getSnapshotsList() { * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -98,10 +102,12 @@ public java.util.List getSnapshotsList() { * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSnapshotsCount() { @@ -111,10 +117,12 @@ public int getSnapshotsCount() { * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Snapshot getSnapshots(int index) { @@ -124,10 +132,12 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { @@ -142,11 +152,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
-   * If not empty, indicates that there may be more snapshot that match the
-   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -166,11 +177,12 @@ public java.lang.String getNextPageToken() { * * *
-   * If not empty, indicates that there may be more snapshot that match the
-   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -618,10 +630,12 @@ private void ensureSnapshotsIsMutable() { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsList() { if (snapshotsBuilder_ == null) { @@ -634,10 +648,12 @@ public java.util.List getSnapshotsList() { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSnapshotsCount() { if (snapshotsBuilder_ == null) { @@ -650,10 +666,12 @@ public int getSnapshotsCount() { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -666,10 +684,12 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -688,10 +708,12 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -707,10 +729,12 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -729,10 +753,12 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -751,10 +777,12 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -770,10 +798,12 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -789,10 +819,12 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSnapshots( java.lang.Iterable values) { @@ -809,10 +841,12 @@ public Builder addAllSnapshots( * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSnapshots() { if (snapshotsBuilder_ == null) { @@ -828,10 +862,12 @@ public Builder clearSnapshots() { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -847,10 +883,12 @@ public Builder removeSnapshots(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); @@ -859,10 +897,12 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { if (snapshotsBuilder_ == null) { @@ -875,10 +915,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsOrBuilderList() { @@ -892,10 +934,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { return getSnapshotsFieldBuilder() @@ -905,10 +949,12 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder() @@ -918,10 +964,12 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { * * *
-     * The resulting snapshots.
+     * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); @@ -949,11 +997,12 @@ public java.util.List getSnapshotsBuilder * * *
-     * If not empty, indicates that there may be more snapshot that match the
-     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * Optional. If not empty, indicates that there may be more snapshot that
+     * match the request; this value should be passed in a new
+     * `ListSnapshotsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -972,11 +1021,12 @@ public java.lang.String getNextPageToken() { * * *
-     * If not empty, indicates that there may be more snapshot that match the
-     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * Optional. If not empty, indicates that there may be more snapshot that
+     * match the request; this value should be passed in a new
+     * `ListSnapshotsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -995,11 +1045,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * If not empty, indicates that there may be more snapshot that match the
-     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * Optional. If not empty, indicates that there may be more snapshot that
+     * match the request; this value should be passed in a new
+     * `ListSnapshotsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1017,11 +1068,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * If not empty, indicates that there may be more snapshot that match the
-     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * Optional. If not empty, indicates that there may be more snapshot that
+     * match the request; this value should be passed in a new
+     * `ListSnapshotsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1035,11 +1087,12 @@ public Builder clearNextPageToken() { * * *
-     * If not empty, indicates that there may be more snapshot that match the
-     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * Optional. If not empty, indicates that there may be more snapshot that
+     * match the request; this value should be passed in a new
+     * `ListSnapshotsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 4559682d5..0c3fc0c72 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,50 +27,60 @@ public interface ListSnapshotsResponseOrBuilder * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSnapshotsList(); /** * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSnapshotsCount(); /** * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSnapshotsOrBuilderList(); /** * * *
-   * The resulting snapshots.
+   * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); @@ -78,11 +88,12 @@ public interface ListSnapshotsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more snapshot that match the
-   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -91,11 +102,12 @@ public interface ListSnapshotsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more snapshot that match the
-   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 63bbc9cd4..9097f6578 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Maximum number of subscriptions to return.
+   * Optional. Maximum number of subscriptions to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
-   * The value returned by the last `ListSubscriptionsResponse`; indicates that
-   * this is a continuation of a prior `ListSubscriptions` call, and that the
-   * system should return the next page of data.
+   * Optional. The value returned by the last `ListSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListSubscriptions` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
-   * The value returned by the last `ListSubscriptionsResponse`; indicates that
-   * this is a continuation of a prior `ListSubscriptions` call, and that the
-   * system should return the next page of data.
+   * Optional. The value returned by the last `ListSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListSubscriptions` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of subscriptions to return.
+     * Optional. Maximum number of subscriptions to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
-     * Maximum number of subscriptions to return.
+     * Optional. Maximum number of subscriptions to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of subscriptions to return.
+     * Optional. Maximum number of subscriptions to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
-     * The value returned by the last `ListSubscriptionsResponse`; indicates that
-     * this is a continuation of a prior `ListSubscriptions` call, and that the
-     * system should return the next page of data.
+     * Optional. The value returned by the last `ListSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListSubscriptions` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
-     * The value returned by the last `ListSubscriptionsResponse`; indicates that
-     * this is a continuation of a prior `ListSubscriptions` call, and that the
-     * system should return the next page of data.
+     * Optional. The value returned by the last `ListSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListSubscriptions` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The value returned by the last `ListSubscriptionsResponse`; indicates that
-     * this is a continuation of a prior `ListSubscriptions` call, and that the
-     * system should return the next page of data.
+     * Optional. The value returned by the last `ListSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListSubscriptions` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The value returned by the last `ListSubscriptionsResponse`; indicates that
-     * this is a continuation of a prior `ListSubscriptions` call, and that the
-     * system should return the next page of data.
+     * Optional. The value returned by the last `ListSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListSubscriptions` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
-     * The value returned by the last `ListSubscriptionsResponse`; indicates that
-     * this is a continuation of a prior `ListSubscriptions` call, and that the
-     * system should return the next page of data.
+     * Optional. The value returned by the last `ListSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListSubscriptions` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index db2839f67..d557e4be4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListSubscriptionsRequestOrBuilder * * *
-   * Maximum number of subscriptions to return.
+   * Optional. Maximum number of subscriptions to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
-   * The value returned by the last `ListSubscriptionsResponse`; indicates that
-   * this is a continuation of a prior `ListSubscriptions` call, and that the
-   * system should return the next page of data.
+   * Optional. The value returned by the last `ListSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListSubscriptions` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
-   * The value returned by the last `ListSubscriptionsResponse`; indicates that
-   * this is a continuation of a prior `ListSubscriptions` call, and that the
-   * system should return the next page of data.
+   * Optional. The value returned by the last `ListSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListSubscriptions` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 629620e65..98d425317 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSubscriptionsList() { @@ -84,10 +86,12 @@ public java.util.List getSubscriptionsList() * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -98,10 +102,12 @@ public java.util.List getSubscriptionsList() * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSubscriptionsCount() { @@ -111,10 +117,12 @@ public int getSubscriptionsCount() { * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Subscription getSubscriptions(int index) { @@ -124,10 +132,12 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { @@ -142,12 +152,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -167,12 +177,12 @@ public java.lang.String getNextPageToken() { * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -621,10 +631,12 @@ private void ensureSubscriptionsIsMutable() { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsList() { if (subscriptionsBuilder_ == null) { @@ -637,10 +649,12 @@ public java.util.List getSubscriptionsList() * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSubscriptionsCount() { if (subscriptionsBuilder_ == null) { @@ -653,10 +667,12 @@ public int getSubscriptionsCount() { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -669,10 +685,12 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -691,10 +709,12 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -711,10 +731,12 @@ public Builder setSubscriptions( * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -733,10 +755,12 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -755,10 +779,12 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionsBuilder_ == null) { @@ -774,10 +800,12 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -794,10 +822,12 @@ public Builder addSubscriptions( * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSubscriptions( java.lang.Iterable values) { @@ -814,10 +844,12 @@ public Builder addAllSubscriptions( * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubscriptions() { if (subscriptionsBuilder_ == null) { @@ -833,10 +865,12 @@ public Builder clearSubscriptions() { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -852,10 +886,12 @@ public Builder removeSubscriptions(int index) { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); @@ -864,10 +900,12 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int ind * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { if (subscriptionsBuilder_ == null) { @@ -880,10 +918,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsOrBuilderList() { @@ -897,10 +937,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder() @@ -910,10 +952,12 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder() @@ -923,10 +967,12 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int ind * * *
-     * The subscriptions that match the request.
+     * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsBuilderList() { return getSubscriptionsFieldBuilder().getBuilderList(); @@ -957,12 +1003,12 @@ public java.util.List getSubscription * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -981,12 +1027,12 @@ public java.lang.String getNextPageToken() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -1005,12 +1051,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1028,12 +1074,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1047,12 +1093,12 @@ public Builder clearNextPageToken() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 439c431a5..74d60d6a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,40 +27,48 @@ public interface ListSubscriptionsResponseOrBuilder * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSubscriptionsList(); /** * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSubscriptionsCount(); /** * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSubscriptionsOrBuilderList(); @@ -68,10 +76,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
-   * The subscriptions that match the request.
+   * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); @@ -79,12 +89,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -93,12 +103,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 103e28b75..b3418a718 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-   * Maximum number of snapshot names to return.
+   * Optional. Maximum number of snapshot names to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
-   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSnapshots` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
-   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSnapshots` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of snapshot names to return.
+     * Optional. Maximum number of snapshot names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
-     * Maximum number of snapshot names to return.
+     * Optional. Maximum number of snapshot names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of snapshot names to return.
+     * Optional. Maximum number of snapshot names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
-     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSnapshots` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
-     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSnapshots` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSnapshots` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSnapshots` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
-     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSnapshots` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+     * and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index d965d0d29..505e00fe2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
-   * Maximum number of snapshot names to return.
+   * Optional. Maximum number of snapshot names to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSnapshots` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSnapshots` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
+   * and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 9d0eb36e1..2b6561aa6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,10 +72,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -86,10 +86,10 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -100,10 +100,10 @@ public int getSnapshotsCount() { * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -115,10 +115,10 @@ public java.lang.String getSnapshots(int index) { * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * *
-   * If not empty, indicates that there may be more snapshots that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more snapshots that
+   * match the request; this value should be passed in a new
    * `ListTopicSnapshotsRequest` to get more snapshots.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -160,12 +160,12 @@ public java.lang.String getNextPageToken() { * * *
-   * If not empty, indicates that there may be more snapshots that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more snapshots that
+   * match the request; this value should be passed in a new
    * `ListTopicSnapshotsRequest` to get more snapshots.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -575,10 +575,10 @@ private void ensureSnapshotsIsMutable() { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -590,10 +590,10 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -604,10 +604,10 @@ public int getSnapshotsCount() { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -619,10 +619,10 @@ public java.lang.String getSnapshots(int index) { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -634,10 +634,10 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The snapshots to set. @@ -657,10 +657,10 @@ public Builder setSnapshots(int index, java.lang.String value) { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The snapshots to add. * @return This builder for chaining. @@ -679,10 +679,10 @@ public Builder addSnapshots(java.lang.String value) { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The snapshots to add. * @return This builder for chaining. @@ -698,10 +698,10 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -716,10 +716,10 @@ public Builder clearSnapshots() { * * *
-     * The names of the snapshots that match the request.
+     * Optional. The names of the snapshots that match the request.
      * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the snapshots to add. * @return This builder for chaining. @@ -741,12 +741,12 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { * * *
-     * If not empty, indicates that there may be more snapshots that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more snapshots that
+     * match the request; this value should be passed in a new
      * `ListTopicSnapshotsRequest` to get more snapshots.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -765,12 +765,12 @@ public java.lang.String getNextPageToken() { * * *
-     * If not empty, indicates that there may be more snapshots that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more snapshots that
+     * match the request; this value should be passed in a new
      * `ListTopicSnapshotsRequest` to get more snapshots.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -789,12 +789,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * If not empty, indicates that there may be more snapshots that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more snapshots that
+     * match the request; this value should be passed in a new
      * `ListTopicSnapshotsRequest` to get more snapshots.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -812,12 +812,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * If not empty, indicates that there may be more snapshots that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more snapshots that
+     * match the request; this value should be passed in a new
      * `ListTopicSnapshotsRequest` to get more snapshots.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -831,12 +831,12 @@ public Builder clearNextPageToken() { * * *
-     * If not empty, indicates that there may be more snapshots that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more snapshots that
+     * match the request; this value should be passed in a new
      * `ListTopicSnapshotsRequest` to get more snapshots.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index b24d10865..abbe62fa5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -39,10 +39,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -51,10 +51,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -64,10 +64,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * The names of the snapshots that match the request.
+   * Optional. The names of the snapshots that match the request.
    * 
* - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -78,12 +78,12 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more snapshots that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more snapshots that
+   * match the request; this value should be passed in a new
    * `ListTopicSnapshotsRequest` to get more snapshots.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -92,12 +92,12 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more snapshots that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more snapshots that
+   * match the request; this value should be passed in a new
    * `ListTopicSnapshotsRequest` to get more snapshots.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 737bd00b7..01ba987d2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-   * Maximum number of subscription names to return.
+   * Optional. Maximum number of subscription names to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
-   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+   * call, and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
-   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+   * call, and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,10 +707,10 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of subscription names to return.
+     * Optional. Maximum number of subscription names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -722,10 +722,10 @@ public int getPageSize() { * * *
-     * Maximum number of subscription names to return.
+     * Optional. Maximum number of subscription names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -741,10 +741,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of subscription names to return.
+     * Optional. Maximum number of subscription names to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -760,12 +760,12 @@ public Builder clearPageSize() { * * *
-     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+     * call, and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -784,12 +784,12 @@ public java.lang.String getPageToken() { * * *
-     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+     * call, and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+     * call, and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -831,12 +831,12 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+     * call, and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -850,12 +850,12 @@ public Builder clearPageToken() { * * *
-     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-     * that the system should return the next page of data.
+     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+     * call, and that the system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index d6bc07531..bf8a6cd5a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
-   * Maximum number of subscription names to return.
+   * Optional. Maximum number of subscription names to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+   * call, and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
-   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
-   * that the system should return the next page of data.
+   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
+   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
+   * call, and that the system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index f270eed8d..e139fec30 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -87,10 +90,13 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -101,10 +107,13 @@ public int getSubscriptionsCount() { * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -116,10 +125,13 @@ public java.lang.String getSubscriptions(int index) { * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -136,12 +148,12 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListTopicSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -161,12 +173,12 @@ public java.lang.String getNextPageToken() { * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListTopicSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -576,10 +588,13 @@ private void ensureSubscriptionsIsMutable() { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -591,10 +606,13 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -605,10 +623,13 @@ public int getSubscriptionsCount() { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -620,10 +641,13 @@ public java.lang.String getSubscriptions(int index) { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -635,10 +659,13 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The subscriptions to set. @@ -658,10 +685,13 @@ public Builder setSubscriptions(int index, java.lang.String value) { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The subscriptions to add. * @return This builder for chaining. @@ -680,10 +710,13 @@ public Builder addSubscriptions(java.lang.String value) { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param values The subscriptions to add. * @return This builder for chaining. @@ -699,10 +732,13 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -717,10 +753,13 @@ public Builder clearSubscriptions() { * * *
-     * The names of subscriptions attached to the topic specified in the request.
+     * Optional. The names of subscriptions attached to the topic specified in the
+     * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. @@ -742,12 +781,12 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListTopicSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -766,12 +805,12 @@ public java.lang.String getNextPageToken() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListTopicSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -790,12 +829,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListTopicSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -813,12 +852,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListTopicSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -832,12 +871,12 @@ public Builder clearNextPageToken() { * * *
-     * If not empty, indicates that there may be more subscriptions that match
-     * the request; this value should be passed in a new
+     * Optional. If not empty, indicates that there may be more subscriptions that
+     * match the request; this value should be passed in a new
      * `ListTopicSubscriptionsRequest` to get more subscriptions.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index d8c6f021e..942228db7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -39,10 +42,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -51,10 +57,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -64,10 +73,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * The names of subscriptions attached to the topic specified in the request.
+   * Optional. The names of subscriptions attached to the topic specified in the
+   * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -78,12 +90,12 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListTopicSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -92,12 +104,12 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more subscriptions that match
-   * the request; this value should be passed in a new
+   * Optional. If not empty, indicates that there may be more subscriptions that
+   * match the request; this value should be passed in a new
    * `ListTopicSubscriptionsRequest` to get more subscriptions.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5c2e9d64b..0bb992da2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Maximum number of topics to return.
+   * Optional. Maximum number of topics to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
-   * The value returned by the last `ListTopicsResponse`; indicates that this is
-   * a continuation of a prior `ListTopics` call, and that the system should
-   * return the next page of data.
+   * Optional. The value returned by the last `ListTopicsResponse`; indicates
+   * that this is a continuation of a prior `ListTopics` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
-   * The value returned by the last `ListTopicsResponse`; indicates that this is
-   * a continuation of a prior `ListTopics` call, and that the system should
-   * return the next page of data.
+   * Optional. The value returned by the last `ListTopicsResponse`; indicates
+   * that this is a continuation of a prior `ListTopics` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -705,10 +705,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of topics to return.
+     * Optional. Maximum number of topics to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,10 +720,10 @@ public int getPageSize() { * * *
-     * Maximum number of topics to return.
+     * Optional. Maximum number of topics to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,10 +739,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of topics to return.
+     * Optional. Maximum number of topics to return.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -758,12 +758,12 @@ public Builder clearPageSize() { * * *
-     * The value returned by the last `ListTopicsResponse`; indicates that this is
-     * a continuation of a prior `ListTopics` call, and that the system should
-     * return the next page of data.
+     * Optional. The value returned by the last `ListTopicsResponse`; indicates
+     * that this is a continuation of a prior `ListTopics` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -782,12 +782,12 @@ public java.lang.String getPageToken() { * * *
-     * The value returned by the last `ListTopicsResponse`; indicates that this is
-     * a continuation of a prior `ListTopics` call, and that the system should
-     * return the next page of data.
+     * Optional. The value returned by the last `ListTopicsResponse`; indicates
+     * that this is a continuation of a prior `ListTopics` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -806,12 +806,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The value returned by the last `ListTopicsResponse`; indicates that this is
-     * a continuation of a prior `ListTopics` call, and that the system should
-     * return the next page of data.
+     * Optional. The value returned by the last `ListTopicsResponse`; indicates
+     * that this is a continuation of a prior `ListTopics` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -829,12 +829,12 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The value returned by the last `ListTopicsResponse`; indicates that this is
-     * a continuation of a prior `ListTopics` call, and that the system should
-     * return the next page of data.
+     * Optional. The value returned by the last `ListTopicsResponse`; indicates
+     * that this is a continuation of a prior `ListTopics` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -848,12 +848,12 @@ public Builder clearPageToken() { * * *
-     * The value returned by the last `ListTopicsResponse`; indicates that this is
-     * a continuation of a prior `ListTopics` call, and that the system should
-     * return the next page of data.
+     * Optional. The value returned by the last `ListTopicsResponse`; indicates
+     * that this is a continuation of a prior `ListTopics` call, and that the
+     * system should return the next page of data.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 3e0d2ffb0..8abf06b96 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicsRequestOrBuilder * * *
-   * Maximum number of topics to return.
+   * Optional. Maximum number of topics to return.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicsResponse`; indicates that this is
-   * a continuation of a prior `ListTopics` call, and that the system should
-   * return the next page of data.
+   * Optional. The value returned by the last `ListTopicsResponse`; indicates
+   * that this is a continuation of a prior `ListTopics` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicsRequestOrBuilder * * *
-   * The value returned by the last `ListTopicsResponse`; indicates that this is
-   * a continuation of a prior `ListTopics` call, and that the system should
-   * return the next page of data.
+   * Optional. The value returned by the last `ListTopicsResponse`; indicates
+   * that this is a continuation of a prior `ListTopics` call, and that the
+   * system should return the next page of data.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index b3f73a27d..d4541e1a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsList() { @@ -84,10 +85,11 @@ public java.util.List getTopicsList() { * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsOrBuilderList() { @@ -97,10 +99,11 @@ public java.util.List getTopicsOr * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getTopicsCount() { @@ -110,10 +113,11 @@ public int getTopicsCount() { * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Topic getTopics(int index) { @@ -123,10 +127,11 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { @@ -141,11 +146,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { * * *
-   * If not empty, indicates that there may be more topics that match the
-   * request; this value should be passed in a new `ListTopicsRequest`.
+   * Optional. If not empty, indicates that there may be more topics that match
+   * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -165,11 +170,11 @@ public java.lang.String getNextPageToken() { * * *
-   * If not empty, indicates that there may be more topics that match the
-   * request; this value should be passed in a new `ListTopicsRequest`.
+   * Optional. If not empty, indicates that there may be more topics that match
+   * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -615,10 +620,11 @@ private void ensureTopicsIsMutable() { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { @@ -631,10 +637,11 @@ public java.util.List getTopicsList() { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getTopicsCount() { if (topicsBuilder_ == null) { @@ -647,10 +654,11 @@ public int getTopicsCount() { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic getTopics(int index) { if (topicsBuilder_ == null) { @@ -663,10 +671,11 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -685,10 +694,11 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -704,10 +714,11 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -726,10 +737,11 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -748,10 +760,11 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -767,10 +780,11 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -786,10 +800,11 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllTopics(java.lang.Iterable values) { if (topicsBuilder_ == null) { @@ -805,10 +820,11 @@ public Builder addAllTopics(java.lang.Iterable - * The resulting topics. + * Optional. The resulting topics. * * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTopics() { if (topicsBuilder_ == null) { @@ -824,10 +840,11 @@ public Builder clearTopics() { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { @@ -843,10 +860,11 @@ public Builder removeTopics(int index) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); @@ -855,10 +873,11 @@ public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { if (topicsBuilder_ == null) { @@ -871,10 +890,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { @@ -887,10 +907,11 @@ public java.util.List getTopicsOr * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); @@ -899,10 +920,11 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { return getTopicsFieldBuilder() @@ -912,10 +934,11 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { * * *
-     * The resulting topics.
+     * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); @@ -943,11 +966,11 @@ public java.util.List getTopicsBuilderList() * * *
-     * If not empty, indicates that there may be more topics that match the
-     * request; this value should be passed in a new `ListTopicsRequest`.
+     * Optional. If not empty, indicates that there may be more topics that match
+     * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -966,11 +989,11 @@ public java.lang.String getNextPageToken() { * * *
-     * If not empty, indicates that there may be more topics that match the
-     * request; this value should be passed in a new `ListTopicsRequest`.
+     * Optional. If not empty, indicates that there may be more topics that match
+     * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -989,11 +1012,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * If not empty, indicates that there may be more topics that match the
-     * request; this value should be passed in a new `ListTopicsRequest`.
+     * Optional. If not empty, indicates that there may be more topics that match
+     * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1011,11 +1034,11 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * If not empty, indicates that there may be more topics that match the
-     * request; this value should be passed in a new `ListTopicsRequest`.
+     * Optional. If not empty, indicates that there may be more topics that match
+     * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1029,11 +1052,11 @@ public Builder clearNextPageToken() { * * *
-     * If not empty, indicates that there may be more topics that match the
-     * request; this value should be passed in a new `ListTopicsRequest`.
+     * Optional. If not empty, indicates that there may be more topics that match
+     * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fd03ece34..42d7bcb44 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,50 +27,55 @@ public interface ListTopicsResponseOrBuilder * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTopicsList(); /** * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Topic getTopics(int index); /** * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getTopicsCount(); /** * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTopicsOrBuilderList(); /** * * *
-   * The resulting topics.
+   * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); @@ -78,11 +83,11 @@ public interface ListTopicsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more topics that match the
-   * request; this value should be passed in a new `ListTopicsRequest`.
+   * Optional. If not empty, indicates that there may be more topics that match
+   * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -91,11 +96,11 @@ public interface ListTopicsResponseOrBuilder * * *
-   * If not empty, indicates that there may be more topics that match the
-   * request; this value should be passed in a new `ListTopicsRequest`.
+   * Optional. If not empty, indicates that there may be more topics that match
+   * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 06c6e9aba..eb2f9ffbf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,15 +71,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -90,15 +92,17 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -109,15 +113,17 @@ public int getAllowedPersistenceRegionsCount() { * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -129,15 +135,17 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. @@ -146,6 +154,28 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde return allowedPersistenceRegions_.getByteString(index); } + public static final int ENFORCE_IN_TRANSIT_FIELD_NUMBER = 2; + private boolean enforceInTransit_ = false; + /** + * + * + *
+   * Optional. If true, `allowed_persistence_regions` is also used to enforce
+   * in-transit guarantees for messages. That is, Pub/Sub will fail
+   * Publish operations on this topic and subscribe operations
+   * on any subscription attached to this topic in any region that is
+   * not in `allowed_persistence_regions`.
+   * 
+ * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + @java.lang.Override + public boolean getEnforceInTransit() { + return enforceInTransit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -164,6 +194,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 1, allowedPersistenceRegions_.getRaw(i)); } + if (enforceInTransit_ != false) { + output.writeBool(2, enforceInTransit_); + } getUnknownFields().writeTo(output); } @@ -181,6 +214,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAllowedPersistenceRegionsList().size(); } + if (enforceInTransit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enforceInTransit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -199,6 +235,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) return false; + if (getEnforceInTransit() != other.getEnforceInTransit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,6 +251,8 @@ public int hashCode() { hash = (37 * hash) + ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER; hash = (53 * hash) + getAllowedPersistenceRegionsList().hashCode(); } + hash = (37 * hash) + ENFORCE_IN_TRANSIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnforceInTransit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -354,6 +393,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enforceInTransit_ = false; return this; } @@ -394,6 +434,9 @@ private void buildPartial0(com.google.pubsub.v1.MessageStoragePolicy result) { allowedPersistenceRegions_.makeImmutable(); result.allowedPersistenceRegions_ = allowedPersistenceRegions_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enforceInTransit_ = enforceInTransit_; + } } @java.lang.Override @@ -451,6 +494,9 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { } onChanged(); } + if (other.getEnforceInTransit() != false) { + setEnforceInTransit(other.getEnforceInTransit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -484,6 +530,12 @@ public Builder mergeFrom( allowedPersistenceRegions_.add(s); break; } // case 10 + case 16: + { + enforceInTransit_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -517,15 +569,17 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -537,15 +591,17 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -556,15 +612,17 @@ public int getAllowedPersistenceRegionsCount() { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -576,15 +634,17 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. @@ -596,15 +656,17 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The allowedPersistenceRegions to set. @@ -624,15 +686,17 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. @@ -651,15 +715,17 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The allowedPersistenceRegions to add. * @return This builder for chaining. @@ -675,15 +741,17 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable - * A list of IDs of Google Cloud regions where messages that are published - * to the topic may be persisted in storage. Messages published by publishers - * running in non-allowed Google Cloud regions (or running outside of Google - * Cloud altogether) are routed for storage in one of the allowed regions. - * An empty list means that no regions are allowed, and is not a valid - * configuration. + * Optional. A list of IDs of Google Cloud regions where messages that are + * published to the topic may be persisted in storage. Messages published by + * publishers running in non-allowed Google Cloud regions (or running outside + * of Google Cloud altogether) are routed for storage in one of the allowed + * regions. An empty list means that no regions are allowed, and is not a + * valid configuration. * * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -698,15 +766,17 @@ public Builder clearAllowedPersistenceRegions() { * * *
-     * A list of IDs of Google Cloud regions where messages that are published
-     * to the topic may be persisted in storage. Messages published by publishers
-     * running in non-allowed Google Cloud regions (or running outside of Google
-     * Cloud altogether) are routed for storage in one of the allowed regions.
-     * An empty list means that no regions are allowed, and is not a valid
-     * configuration.
+     * Optional. A list of IDs of Google Cloud regions where messages that are
+     * published to the topic may be persisted in storage. Messages published by
+     * publishers running in non-allowed Google Cloud regions (or running outside
+     * of Google Cloud altogether) are routed for storage in one of the allowed
+     * regions. An empty list means that no regions are allowed, and is not a
+     * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. @@ -723,6 +793,71 @@ public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString return this; } + private boolean enforceInTransit_; + /** + * + * + *
+     * Optional. If true, `allowed_persistence_regions` is also used to enforce
+     * in-transit guarantees for messages. That is, Pub/Sub will fail
+     * Publish operations on this topic and subscribe operations
+     * on any subscription attached to this topic in any region that is
+     * not in `allowed_persistence_regions`.
+     * 
+ * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + @java.lang.Override + public boolean getEnforceInTransit() { + return enforceInTransit_; + } + /** + * + * + *
+     * Optional. If true, `allowed_persistence_regions` is also used to enforce
+     * in-transit guarantees for messages. That is, Pub/Sub will fail
+     * Publish operations on this topic and subscribe operations
+     * on any subscription attached to this topic in any region that is
+     * not in `allowed_persistence_regions`.
+     * 
+ * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enforceInTransit to set. + * @return This builder for chaining. + */ + public Builder setEnforceInTransit(boolean value) { + + enforceInTransit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, `allowed_persistence_regions` is also used to enforce
+     * in-transit guarantees for messages. That is, Pub/Sub will fail
+     * Publish operations on this topic and subscribe operations
+     * on any subscription attached to this topic in any region that is
+     * not in `allowed_persistence_regions`.
+     * 
+ * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnforceInTransit() { + bitField0_ = (bitField0_ & ~0x00000002); + enforceInTransit_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 5f075aca0..bc798cf5b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,15 +27,17 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -44,15 +46,17 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -61,15 +65,17 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -79,18 +85,37 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of Google Cloud regions where messages that are published
-   * to the topic may be persisted in storage. Messages published by publishers
-   * running in non-allowed Google Cloud regions (or running outside of Google
-   * Cloud altogether) are routed for storage in one of the allowed regions.
-   * An empty list means that no regions are allowed, and is not a valid
-   * configuration.
+   * Optional. A list of IDs of Google Cloud regions where messages that are
+   * published to the topic may be persisted in storage. Messages published by
+   * publishers running in non-allowed Google Cloud regions (or running outside
+   * of Google Cloud altogether) are routed for storage in one of the allowed
+   * regions. An empty list means that no regions are allowed, and is not a
+   * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index); + + /** + * + * + *
+   * Optional. If true, `allowed_persistence_regions` is also used to enforce
+   * in-transit guarantees for messages. That is, Pub/Sub will fail
+   * Publish operations on this topic and subscribe operations
+   * on any subscription attached to this topic in any region that is
+   * not in `allowed_persistence_regions`.
+   * 
+ * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + boolean getEnforceInTransit(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 8348ebf3c..0e876c7b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,7 +197,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. - * The maximum deadline you can specify is 600 seconds (10 minutes). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -917,7 +918,8 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. - * The maximum deadline you can specify is 600 seconds (10 minutes). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -939,7 +941,8 @@ public int getAckDeadlineSeconds() { * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. - * The maximum deadline you can specify is 600 seconds (10 minutes). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -965,7 +968,8 @@ public Builder setAckDeadlineSeconds(int value) { * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. - * The maximum deadline you can specify is 600 seconds (10 minutes). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 8c0843c7d..ebc7adb12 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,7 +116,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * delivery to another subscriber client. This typically results in an * increase in the rate of message redeliveries (that is, duplicates). * The minimum deadline you can specify is 0 seconds. - * The maximum deadline you can specify is 600 seconds (10 minutes). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index a1b5050ee..149b4c6b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 96d5ca4c1..070e63226 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 2268fc162..69e13fab3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index a0b5cde08..c4309802a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 0a0905e94..dcc525d03 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,12 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -87,12 +87,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -103,12 +103,12 @@ public int getMessageIdsCount() { * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -120,12 +120,12 @@ public java.lang.String getMessageIds(int index) { * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. @@ -499,12 +499,12 @@ private void ensureMessageIdsIsMutable() { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -516,12 +516,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -532,12 +532,12 @@ public int getMessageIdsCount() { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -549,12 +549,12 @@ public java.lang.String getMessageIds(int index) { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. @@ -566,12 +566,12 @@ public com.google.protobuf.ByteString getMessageIdsBytes(int index) { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The messageIds to set. @@ -591,12 +591,12 @@ public Builder setMessageIds(int index, java.lang.String value) { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The messageIds to add. * @return This builder for chaining. @@ -615,12 +615,12 @@ public Builder addMessageIds(java.lang.String value) { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The messageIds to add. * @return This builder for chaining. @@ -636,12 +636,12 @@ public Builder addAllMessageIds(java.lang.Iterable values) { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,12 +656,12 @@ public Builder clearMessageIds() { * * *
-     * The server-assigned ID of each published message, in the same order as
-     * the messages in the request. IDs are guaranteed to be unique within
-     * the topic.
+     * Optional. The server-assigned ID of each published message, in the same
+     * order as the messages in the request. IDs are guaranteed to be unique
+     * within the topic.
      * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the messageIds to add. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 7d6f78725..a657c199d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,12 +27,12 @@ public interface PublishResponseOrBuilder * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -41,12 +41,12 @@ public interface PublishResponseOrBuilder * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -55,12 +55,12 @@ public interface PublishResponseOrBuilder * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -70,12 +70,12 @@ public interface PublishResponseOrBuilder * * *
-   * The server-assigned ID of each published message, in the same order as
-   * the messages in the request. IDs are guaranteed to be unique within
-   * the topic.
+   * Optional. The server-assigned ID of each published message, in the same
+   * order as the messages in the request. IDs are guaranteed to be unique
+   * within the topic.
    * 
* - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index cab47a3c0..8f310f54c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,11 +88,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * The message data field. If this field is empty, the message must contain
-   * at least one attribute.
+   * Optional. The message data field. If this field is empty, the message must
+   * contain at least one attribute.
    * 
* - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -131,12 +131,13 @@ public int getAttributesCount() { * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -155,12 +156,13 @@ public java.util.Map getAttributes() { * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -170,12 +172,13 @@ public java.util.Map getAttributesMap() { * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -192,12 +195,13 @@ public java.util.Map getAttributesMap() { * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -328,17 +332,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
-   * If non-empty, identifies related messages for which publish order should be
-   * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-   * messages published with the same non-empty `ordering_key` value will be
-   * delivered to subscribers in the order in which they are received by the
-   * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-   * must specify the same `ordering_key` value.
-   * For more information, see [ordering
+   * Optional. If non-empty, identifies related messages for which publish order
+   * should be respected. If a `Subscription` has `enable_message_ordering` set
+   * to `true`, messages published with the same non-empty `ordering_key` value
+   * will be delivered to subscribers in the order in which they are received by
+   * the Pub/Sub system. All `PubsubMessage`s published in a given
+   * `PublishRequest` must specify the same `ordering_key` value. For more
+   * information, see [ordering
    * messages](https://cloud.google.com/pubsub/docs/ordering).
    * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -358,17 +362,17 @@ public java.lang.String getOrderingKey() { * * *
-   * If non-empty, identifies related messages for which publish order should be
-   * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-   * messages published with the same non-empty `ordering_key` value will be
-   * delivered to subscribers in the order in which they are received by the
-   * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-   * must specify the same `ordering_key` value.
-   * For more information, see [ordering
+   * Optional. If non-empty, identifies related messages for which publish order
+   * should be respected. If a `Subscription` has `enable_message_ordering` set
+   * to `true`, messages published with the same non-empty `ordering_key` value
+   * will be delivered to subscribers in the order in which they are received by
+   * the Pub/Sub system. All `PubsubMessage`s published in a given
+   * `PublishRequest` must specify the same `ordering_key` value. For more
+   * information, see [ordering
    * messages](https://cloud.google.com/pubsub/docs/ordering).
    * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ @@ -869,11 +873,11 @@ public Builder mergeFrom( * * *
-     * The message data field. If this field is empty, the message must contain
-     * at least one attribute.
+     * Optional. The message data field. If this field is empty, the message must
+     * contain at least one attribute.
      * 
* - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -885,11 +889,11 @@ public com.google.protobuf.ByteString getData() { * * *
-     * The message data field. If this field is empty, the message must contain
-     * at least one attribute.
+     * Optional. The message data field. If this field is empty, the message must
+     * contain at least one attribute.
      * 
* - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The data to set. * @return This builder for chaining. @@ -907,11 +911,11 @@ public Builder setData(com.google.protobuf.ByteString value) { * * *
-     * The message data field. If this field is empty, the message must contain
-     * at least one attribute.
+     * Optional. The message data field. If this field is empty, the message must
+     * contain at least one attribute.
      * 
* - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -954,12 +958,13 @@ public int getAttributesCount() { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -978,12 +983,13 @@ public java.util.Map getAttributes() { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -993,12 +999,13 @@ public java.util.Map getAttributesMap() { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -1015,12 +1022,13 @@ public java.util.Map getAttributesMap() { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -1043,12 +1051,13 @@ public Builder clearAttributes() { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAttributes(java.lang.String key) { if (key == null) { @@ -1067,12 +1076,13 @@ public java.util.Map getMutableAttributes() * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1089,12 +1099,13 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
-     * Attributes for this message. If this field is empty, the message must
-     * contain non-empty data. This can be used to filter messages on the
+     * Optional. Attributes for this message. If this field is empty, the message
+     * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); @@ -1429,17 +1440,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
-     * If non-empty, identifies related messages for which publish order should be
-     * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-     * messages published with the same non-empty `ordering_key` value will be
-     * delivered to subscribers in the order in which they are received by the
-     * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-     * must specify the same `ordering_key` value.
-     * For more information, see [ordering
+     * Optional. If non-empty, identifies related messages for which publish order
+     * should be respected. If a `Subscription` has `enable_message_ordering` set
+     * to `true`, messages published with the same non-empty `ordering_key` value
+     * will be delivered to subscribers in the order in which they are received by
+     * the Pub/Sub system. All `PubsubMessage`s published in a given
+     * `PublishRequest` must specify the same `ordering_key` value. For more
+     * information, see [ordering
      * messages](https://cloud.google.com/pubsub/docs/ordering).
      * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -1458,17 +1469,17 @@ public java.lang.String getOrderingKey() { * * *
-     * If non-empty, identifies related messages for which publish order should be
-     * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-     * messages published with the same non-empty `ordering_key` value will be
-     * delivered to subscribers in the order in which they are received by the
-     * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-     * must specify the same `ordering_key` value.
-     * For more information, see [ordering
+     * Optional. If non-empty, identifies related messages for which publish order
+     * should be respected. If a `Subscription` has `enable_message_ordering` set
+     * to `true`, messages published with the same non-empty `ordering_key` value
+     * will be delivered to subscribers in the order in which they are received by
+     * the Pub/Sub system. All `PubsubMessage`s published in a given
+     * `PublishRequest` must specify the same `ordering_key` value. For more
+     * information, see [ordering
      * messages](https://cloud.google.com/pubsub/docs/ordering).
      * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ @@ -1487,17 +1498,17 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { * * *
-     * If non-empty, identifies related messages for which publish order should be
-     * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-     * messages published with the same non-empty `ordering_key` value will be
-     * delivered to subscribers in the order in which they are received by the
-     * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-     * must specify the same `ordering_key` value.
-     * For more information, see [ordering
+     * Optional. If non-empty, identifies related messages for which publish order
+     * should be respected. If a `Subscription` has `enable_message_ordering` set
+     * to `true`, messages published with the same non-empty `ordering_key` value
+     * will be delivered to subscribers in the order in which they are received by
+     * the Pub/Sub system. All `PubsubMessage`s published in a given
+     * `PublishRequest` must specify the same `ordering_key` value. For more
+     * information, see [ordering
      * messages](https://cloud.google.com/pubsub/docs/ordering).
      * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderingKey to set. * @return This builder for chaining. @@ -1515,17 +1526,17 @@ public Builder setOrderingKey(java.lang.String value) { * * *
-     * If non-empty, identifies related messages for which publish order should be
-     * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-     * messages published with the same non-empty `ordering_key` value will be
-     * delivered to subscribers in the order in which they are received by the
-     * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-     * must specify the same `ordering_key` value.
-     * For more information, see [ordering
+     * Optional. If non-empty, identifies related messages for which publish order
+     * should be respected. If a `Subscription` has `enable_message_ordering` set
+     * to `true`, messages published with the same non-empty `ordering_key` value
+     * will be delivered to subscribers in the order in which they are received by
+     * the Pub/Sub system. All `PubsubMessage`s published in a given
+     * `PublishRequest` must specify the same `ordering_key` value. For more
+     * information, see [ordering
      * messages](https://cloud.google.com/pubsub/docs/ordering).
      * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1539,17 +1550,17 @@ public Builder clearOrderingKey() { * * *
-     * If non-empty, identifies related messages for which publish order should be
-     * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-     * messages published with the same non-empty `ordering_key` value will be
-     * delivered to subscribers in the order in which they are received by the
-     * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-     * must specify the same `ordering_key` value.
-     * For more information, see [ordering
+     * Optional. If non-empty, identifies related messages for which publish order
+     * should be respected. If a `Subscription` has `enable_message_ordering` set
+     * to `true`, messages published with the same non-empty `ordering_key` value
+     * will be delivered to subscribers in the order in which they are received by
+     * the Pub/Sub system. All `PubsubMessage`s published in a given
+     * `PublishRequest` must specify the same `ordering_key` value. For more
+     * information, see [ordering
      * messages](https://cloud.google.com/pubsub/docs/ordering).
      * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderingKey to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 9e73913c8..2736aca97 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface PubsubMessageOrBuilder * * *
-   * The message data field. If this field is empty, the message must contain
-   * at least one attribute.
+   * Optional. The message data field. If this field is empty, the message must
+   * contain at least one attribute.
    * 
* - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -41,24 +41,26 @@ public interface PubsubMessageOrBuilder * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsAttributes(java.lang.String key); /** Use {@link #getAttributesMap()} instead. */ @@ -68,24 +70,26 @@ public interface PubsubMessageOrBuilder * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getAttributesMap(); /** * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getAttributesOrDefault( @@ -96,12 +100,13 @@ java.lang.String getAttributesOrDefault( * * *
-   * Attributes for this message. If this field is empty, the message must
-   * contain non-empty data. This can be used to filter messages on the
+   * Optional. Attributes for this message. If this field is empty, the message
+   * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getAttributesOrThrow(java.lang.String key); @@ -181,17 +186,17 @@ java.lang.String getAttributesOrDefault( * * *
-   * If non-empty, identifies related messages for which publish order should be
-   * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-   * messages published with the same non-empty `ordering_key` value will be
-   * delivered to subscribers in the order in which they are received by the
-   * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-   * must specify the same `ordering_key` value.
-   * For more information, see [ordering
+   * Optional. If non-empty, identifies related messages for which publish order
+   * should be respected. If a `Subscription` has `enable_message_ordering` set
+   * to `true`, messages published with the same non-empty `ordering_key` value
+   * will be delivered to subscribers in the order in which they are received by
+   * the Pub/Sub system. All `PubsubMessage`s published in a given
+   * `PublishRequest` must specify the same `ordering_key` value. For more
+   * information, see [ordering
    * messages](https://cloud.google.com/pubsub/docs/ordering).
    * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -200,17 +205,17 @@ java.lang.String getAttributesOrDefault( * * *
-   * If non-empty, identifies related messages for which publish order should be
-   * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
-   * messages published with the same non-empty `ordering_key` value will be
-   * delivered to subscribers in the order in which they are received by the
-   * Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
-   * must specify the same `ordering_key` value.
-   * For more information, see [ordering
+   * Optional. If non-empty, identifies related messages for which publish order
+   * should be respected. If a `Subscription` has `enable_message_ordering` set
+   * to `true`, messages published with the same non-empty `ordering_key` value
+   * will be delivered to subscribers in the order in which they are received by
+   * the Pub/Sub system. All `PubsubMessage`s published in a given
+   * `PublishRequest` must specify the same `ordering_key` value. For more
+   * information, see [ordering
    * messages](https://cloud.google.com/pubsub/docs/ordering).
    * 
* - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index b680117a0..971dec18f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_SchemaSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -284,330 +292,366 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/protobuf/empty.proto\032 google/protob" + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"\252\001\n\016SchemaSetti" + + "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" + + "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" + + "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" - + "gleapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.g" - + "oogle.pubsub.v1.Encoding\022\031\n\021first_revisi" - + "on_id\030\003 \001(\t\022\030\n\020last_revision_id\030\004 \001(\t\"\304\003" - + "\n\005Topic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\006labels\030\002 " - + "\003(\0132#.google.pubsub.v1.Topic.LabelsEntry" - + "\022F\n\026message_storage_policy\030\003 \001(\0132&.googl" - + "e.pubsub.v1.MessageStoragePolicy\022\024\n\014kms_" - + "key_name\030\005 \001(\t\0229\n\017schema_settings\030\006 \001(\0132" - + " .google.pubsub.v1.SchemaSettings\022\025\n\rsat" - + "isfies_pzs\030\007 \001(\010\022=\n\032message_retention_du" - + "ration\030\010 \001(\0132\031.google.protobuf.Duration\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topic" - + "\022!projects/{project}/topics/{topic}\022\017_de" - + "leted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030\001" - + " \001(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub" - + ".v1.PubsubMessage.AttributesEntry\022\022\n\nmes" - + "sage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\024\n\014ordering_key\030" - + "\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005t" - + "opic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\"y\n\022UpdateTopicRequest\022,\n\005topic\030" - + "\001 \001(\0132\027.google.pubsub.v1.TopicB\004\342A\001\002\0225\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\004\342A\001\002\"~\n\016PublishRequest\0223\n\005topic\030\001" + + "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" + + "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" + + "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" + + "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" + + "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" + + "bsub.v1.IngestionDataSourceSettings.AwsK" + + "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" + + " \001(\0162>.google.pubsub.v1.IngestionDataSou" + + "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" + + "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" + + "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" + + "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" + + "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + + "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" + + "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" + + "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" + + "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" + + "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" + + "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" + + "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" + + "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" + + "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" + + "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" + + "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" + + "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" + + "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" + + " \001(\0132-.google.pubsub.v1.IngestionDataSou" + + "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" + + "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" + + "is.com/Topic\022!projects/{project}/topics/" + + "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" + + "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" + + "(\0132/.google.pubsub.v1.PubsubMessage.Attr" + + "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" + + "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" + + "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" + + "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" + + "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" + + "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" + + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + + "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" + + "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" + + "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\027\n\tpage_siz" + + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + + "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." + + "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" + + "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" + + "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" + + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" + + "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" + + "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" + + "pis.com/Subscription\022\035\n\017next_page_token\030" + + "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" + + "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" + + "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" + + "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" + + "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" + + "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" + + "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" + + "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\0227\n\010messages\030\002 \003(\0132\037.google.pubsub.v1." - + "PubsubMessageB\004\342A\001\002\"&\n\017PublishResponse\022\023" - + "\n\013message_ids\030\001 \003(\t\"\201\001\n\021ListTopicsReques" - + "t\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListT" - + "opicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google.p" - + "ubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t\"" - + "{\n\035ListTopicSubscriptionsRequest\0223\n\005topi" - + "c\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"y\n\036ListTopicSubscriptionsResponse\022>" - + "\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"w\n\031ListTopicSnapshotsRequest\0223\n\005" - + "topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis." - + "com/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse\022\021" - + "\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001" - + "(\t\"I\n\022DeleteTopicRequest\0223\n\005topic\030\001 \001(\tB" - + "$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"^\n" - + "\031DetachSubscriptionRequest\022A\n\014subscripti" - + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\"\034\n\032DetachSubscriptionRespo" - + "nse\"\255\010\n\014Subscription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002" - + "\0223\n\005topic\030\002 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\0221\n\013push_config\030\004 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfig\0229\n\017bigquery_con" - + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" - + "fig\022B\n\024cloud_storage_config\030\026 \001(\0132$.goog" - + "le.pubsub.v1.CloudStorageConfig\022\034\n\024ack_d" - + "eadline_seconds\030\005 \001(\005\022\035\n\025retain_acked_me" - + "ssages\030\007 \001(\010\022=\n\032message_retention_durati" - + "on\030\010 \001(\0132\031.google.protobuf.Duration\022:\n\006l" - + "abels\030\t \003(\0132*.google.pubsub.v1.Subscript" - + "ion.LabelsEntry\022\037\n\027enable_message_orderi" - + "ng\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\0132\".go" - + "ogle.pubsub.v1.ExpirationPolicy\022\016\n\006filte" - + "r\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\0132\".go" - + "ogle.pubsub.v1.DeadLetterPolicy\0223\n\014retry" - + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" - + "licy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_exactly" - + "_once_delivery\030\020 \001(\010\022I\n topic_message_re" - + "tention_duration\030\021 \001(\0132\031.google.protobuf" - + ".DurationB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google." - + "pubsub.v1.Subscription.StateB\004\342A\001\003\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.g" - + "oogleapis.com/Subscription\022/projects/{pr" - + "oject}/subscriptions/{subscription}\"u\n\013R" - + "etryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.go" - + "ogle.protobuf.Duration\0222\n\017maximum_backof" - + "f\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020De" - + "adLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001(" - + "\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Expi" - + "rationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.proto" - + "buf.Duration\"\362\003\n\nPushConfig\022\025\n\rpush_endp" - + "oint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google." - + "pubsub.v1.PushConfig.AttributesEntry\022<\n\n" - + "oidc_token\030\003 \001(\0132&.google.pubsub.v1.Push" - + "Config.OidcTokenH\000\022D\n\016pubsub_wrapper\030\004 \001" - + "(\0132*.google.pubsub.v1.PushConfig.PubsubW" - + "rapperH\001\022<\n\nno_wrapper\030\005 \001(\0132&.google.pu" - + "bsub.v1.PushConfig.NoWrapperH\001\032<\n\tOidcTo" - + "ken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010au" - + "dience\030\002 \001(\t\032\017\n\rPubsubWrapper\032#\n\tNoWrapp" - + "er\022\026\n\016write_metadata\030\001 \001(\010\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_methodB\t\n\007wrapper\"\270\002\n\016Bi" - + "gQueryConfig\022\r\n\005table\030\001 \001(\t\022\036\n\020use_topic" - + "_schema\030\002 \001(\010B\004\342A\001\001\022\026\n\016write_metadata\030\003 " - + "\001(\010\022\033\n\023drop_unknown_fields\030\004 \001(\010\022;\n\005stat" - + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" - + "g.StateB\004\342A\001\003\022\036\n\020use_table_schema\030\006 \001(\010B" - + "\004\342A\001\001\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_" - + "FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"\210\004\n\022CloudSt" - + "orageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001\002\022\027\n\017fil" - + "ename_prefix\030\002 \001(\t\022\027\n\017filename_suffix\030\003 " - + "\001(\t\022F\n\013text_config\030\004 \001(\0132/.google.pubsub" - + ".v1.CloudStorageConfig.TextConfigH\000\022F\n\013a" - + "vro_config\030\005 \001(\0132/.google.pubsub.v1.Clou" - + "dStorageConfig.AvroConfigH\000\022/\n\014max_durat" - + "ion\030\006 \001(\0132\031.google.protobuf.Duration\022\021\n\t" - + "max_bytes\030\007 \001(\003\022?\n\005state\030\t \001(\0162*.google." - + "pubsub.v1.CloudStorageConfig.StateB\004\342A\001\003" - + "\032\014\n\nTextConfig\032$\n\nAvroConfig\022\026\n\016write_me" - + "tadata\030\001 \001(\010\"P\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022" - + "\r\n\tNOT_FOUND\020\003B\017\n\routput_format\"m\n\017Recei" - + "vedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 " - + "\001(\0132\037.google.pubsub.v1.PubsubMessage\022\030\n\020" - + "delivery_attempt\030\003 \001(\005\"[\n\026GetSubscriptio" - + "nRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\"\216\001\n\031" - + "UpdateSubscriptionRequest\022:\n\014subscriptio" - + "n\030\001 \001(\0132\036.google.pubsub.v1.SubscriptionB" - + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\004\342A\001\002\"\210\001\n\030ListSubscriptio" - + "nsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" - + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\"^\n\031DeleteSu" - + "bscriptionRequest\022A\n\014subscription\030\001 \001(\tB" - + "+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\"\225\001\n\027ModifyPushConfigRequest\022A\n\014subs" - + "cription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\0227\n\013push_config\030\002 \001(\013" - + "2\034.google.pubsub.v1.PushConfigB\004\342A\001\002\"\220\001\n" - + "\013PullRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\"\n\022return_immediately\030\002 \001(\010B\006\030\001\342A\001\001\022\032\n\014m" - + "ax_messages\030\003 \001(\005B\004\342A\001\002\"L\n\014PullResponse\022" - + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" - + "ub.v1.ReceivedMessage\"\230\001\n\030ModifyAckDeadl" - + "ineRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022\025\n" - + "\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024ack_deadline_sec" - + "onds\030\003 \001(\005B\004\342A\001\002\"n\n\022AcknowledgeRequest\022A" - + "\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\022\025\n\007ack_ids\030\002 \003" - + "(\tB\004\342A\001\002\"\253\002\n\024StreamingPullRequest\022A\n\014sub" + + "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." + + "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" + + " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" + + "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" + + "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" + + "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" + + "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" + + "ge_retention_duration\030\010 \001(\0132\031.google.pro" + + "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntry" + + "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" + + "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" + + "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" + + "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" + + " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" + + "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" + + "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " + + "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" + + "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" + + "_duration\030\021 \001(\0132\031.google.protobuf.Durati" + + "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." + + "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" + + "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" + + "is.com/Subscription\022/projects/{project}/" + + "subscriptions/{subscription}\"\201\001\n\013RetryPo" + + "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" + + "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + + "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" + + "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" + + " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" + + "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" + + "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." + + "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" + + "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" + + "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" + + "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" + + "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" + + "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" + + "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" + + "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" + + "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" + + "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" + + "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" + + "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" + + "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" + + "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" + + "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" + + "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" + + "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" + + "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" + + "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConf" + + "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" + + "(\0132/.google.pubsub.v1.CloudStorageConfig" + + ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" + + "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" + + "gle.pubsub.v1.CloudStorageConfig.StateB\004" + + "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" + + "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" + + "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" + + "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" + + "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" + + "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" + + "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" + + "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n" - + "\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modify" - + "_deadline_ack_ids\030\004 \003(\t\022)\n\033stream_ack_de" - + "adline_seconds\030\005 \001(\005B\004\342A\001\002\022\021\n\tclient_id\030" - + "\006 \001(\t\022 \n\030max_outstanding_messages\030\007 \001(\003\022" - + "\035\n\025max_outstanding_bytes\030\010 \001(\003\"\335\005\n\025Strea" - + "mingPullResponse\022<\n\021received_messages\030\001 " - + "\003(\0132!.google.pubsub.v1.ReceivedMessage\022a" - + "\n\030acknowledge_confirmation\030\005 \001(\0132?.googl" - + "e.pubsub.v1.StreamingPullResponse.Acknow" - + "ledgeConfirmation\022o\n modify_ack_deadline" - + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" - + "treamingPullResponse.ModifyAckDeadlineCo" - + "nfirmation\022_\n\027subscription_properties\030\004 " - + "\001(\0132>.google.pubsub.v1.StreamingPullResp" - + "onse.SubscriptionProperties\032\200\001\n\027Acknowle" - + "dgeConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017inva" - + "lid_ack_ids\030\002 \003(\t\022\031\n\021unordered_ack_ids\030\003" - + " \003(\t\022 \n\030temporary_failed_ack_ids\030\004 \003(\t\032k" - + "\n\035ModifyAckDeadlineConfirmation\022\017\n\007ack_i" - + "ds\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022 \n\030tem" - + "porary_failed_ack_ids\030\003 \003(\t\032a\n\026Subscript" - + "ionProperties\022%\n\035exactly_once_delivery_e" - + "nabled\030\001 \001(\010\022 \n\030message_ordering_enabled" - + "\030\002 \001(\010\"\205\002\n\025CreateSnapshotRequest\0225\n\004name" + + "pis.com/Subscription\"\216\001\n\031UpdateSubscript" + + "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" + + "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" + + "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022\027\n\tpage_size\030\002" + + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" + + "ListSubscriptionsResponse\022;\n\rsubscriptio" + + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + + "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" + + "\031DeleteSubscriptionRequest\022A\n\014subscripti" + + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\"\225\001\n\027ModifyPushConfigReques" + + "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\0227\n\013push_con" + + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" + + "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " + + "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" + + "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" + + "Response\022B\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" + + "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" + + "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" + + "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" + + "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" + + "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\025\n\007a" + + "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" + + "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" + + "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" + + "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" + + "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" + + "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" + + "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" + + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" + + "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" + + "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" + + "llResponse.AcknowledgeConfirmationB\004\342A\001\001" + + "\022u\n modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" + + "e\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" + + "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" + + "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" + + "Properties\022+\n\035exactly_once_delivery_enab" + + "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" + + "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" + + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" + + "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" + + "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" + + "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" + + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" + + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" + + "sub.googleapis.com/Topic\0225\n\013expire_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" + + "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" + + "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" + + "b.googleapis.com/Snapshot\022\'projects/{pro" + + "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" + + "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" + + "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" + + "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" + + "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" + + "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\022A\n\014subscription\030\002 \001(\tB+\342A\001\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022C\n\006la" - + "bels\030\003 \003(\01323.google.pubsub.v1.CreateSnap" - + "shotRequest.LabelsEntry\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\001\n\025Updat" - + "eSnapshotRequest\0222\n\010snapshot\030\001 \001(\0132\032.goo" - + "gle.pubsub.v1.SnapshotB\004\342A\001\002\0225\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" - + "A\001\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030" - + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" - + "/\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub" - + ".v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pu" - + "bsub.googleapis.com/Snapshot\022\'projects/{" - + "project}/snapshots/{snapshot}\"O\n\022GetSnap" - + "shotRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\204\001\n\024ListS" - + "napshotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" - + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" - + "\017next_page_token\030\002 \001(\t\"R\n\025DeleteSnapshot" - + "Request\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pubs" - + "ub.googleapis.com/Snapshot\"\277\001\n\013SeekReque" - + "st\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsu" - + "b.googleapis.com/Subscription\022*\n\004time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampH\000\0227\n\010sna" - + "pshot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/" - + "SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n" - + "\tPublisher\022q\n\013CreateTopic\022\027.google.pubsu" - + "b.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004" - + "name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/" - + "*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1" - + ".UpdateTopicRequest\032\027.google.pubsub.v1.T" - + "opic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{t" - + "opic.name=projects/*/topics/*}:\001*\022\223\001\n\007Pu" - + "blish\022 .google.pubsub.v1.PublishRequest\032" - + "!.google.pubsub.v1.PublishResponse\"C\332A\016t" - + "opic,messages\202\323\344\223\002,\"\'/v1/{topic=projects" - + "/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.go" - + "ogle.pubsub.v1.GetTopicRequest\032\027.google." - + "pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{to" - + "pic=projects/*/topics/*}\022\212\001\n\nListTopics\022" - + "#.google.pubsub.v1.ListTopicsRequest\032$.g" - + "oogle.pubsub.v1.ListTopicsResponse\"1\332A\007p" - + "roject\202\323\344\223\002!\022\037/v1/{project=projects/*}/t" - + "opics\022\272\001\n\026ListTopicSubscriptions\022/.googl" - + "e.pubsub.v1.ListTopicSubscriptionsReques" - + "t\0320.google.pubsub.v1.ListTopicSubscripti" - + "onsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=" - + "projects/*/topics/*}/subscriptions\022\252\001\n\022L" - + "istTopicSnapshots\022+.google.pubsub.v1.Lis" - + "tTopicSnapshotsRequest\032,.google.pubsub.v" - + "1.ListTopicSnapshotsResponse\"9\332A\005topic\202\323" - + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" - + "apshots\022|\n\013DeleteTopic\022$.google.pubsub.v" - + "1.DeleteTopicRequest\032\026.google.protobuf.E" - + "mpty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=project" - + "s/*/topics/*}\022\255\001\n\022DetachSubscription\022+.g" - + "oogle.pubsub.v1.DetachSubscriptionReques" - + "t\032,.google.pubsub.v1.DetachSubscriptionR" - + "esponse\"<\202\323\344\223\0026\"4/v1/{subscription=proje" - + "cts/*/subscriptions/*}:detach\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264" - + "\001\n\022CreateSubscription\022\036.google.pubsub.v1" - + ".Subscription\032\036.google.pubsub.v1.Subscri" - + "ption\"^\332A+name,topic,push_config,ack_dea" - + "dline_seconds\202\323\344\223\002*\032%/v1/{name=projects/" - + "*/subscriptions/*}:\001*\022\241\001\n\017GetSubscriptio" - + "n\022(.google.pubsub.v1.GetSubscriptionRequ" - + "est\032\036.google.pubsub.v1.Subscription\"D\332A\014" - + "subscription\202\323\344\223\002/\022-/v1/{subscription=pr" - + "ojects/*/subscriptions/*}\022\273\001\n\022UpdateSubs" - + "cription\022+.google.pubsub.v1.UpdateSubscr" - + "iptionRequest\032\036.google.pubsub.v1.Subscri" - + "ption\"X\332A\030subscription,update_mask\202\323\344\223\0027" - + "22/v1/{subscription.name=projects/*/subs" - + "criptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*." - + "google.pubsub.v1.ListSubscriptionsReques" - + "t\032+.google.pubsub.v1.ListSubscriptionsRe" - + "sponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=p" - + "rojects/*}/subscriptions\022\237\001\n\022DeleteSubsc" - + "ription\022+.google.pubsub.v1.DeleteSubscri" - + "ptionRequest\032\026.google.protobuf.Empty\"D\332A" - + "\014subscription\202\323\344\223\002/*-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\022\317\001\n\021ModifyAck" - + "Deadline\022*.google.pubsub.v1.ModifyAckDea" - + "dlineRequest\032\026.google.protobuf.Empty\"v\332A" - + ")subscription,ack_ids,ack_deadline_secon" - + "ds\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" - + "ubscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.Acknowle" - + "dgeRequest\032\026.google.protobuf.Empty\"[\332A\024s" - + "ubscription,ack_ids\202\323\344\223\002>\"9/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:acknowl" - + "edge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pull" - + "Request\032\036.google.pubsub.v1.PullResponse\"" - + "\210\001\332A,subscription,return_immediately,max" - + "_messages\332A\031subscription,max_messages\202\323\344" - + "\223\0027\"2/v1/{subscription=projects/*/subscr" - + "iptions/*}:pull:\001*\022f\n\rStreamingPull\022&.go" - + "ogle.pubsub.v1.StreamingPullRequest\032\'.go" - + "ogle.pubsub.v1.StreamingPullResponse\"\000(\001" - + "0\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub." - + "v1.ModifyPushConfigRequest\032\026.google.prot" - + "obuf.Empty\"d\332A\030subscription,push_config\202" - + "\323\344\223\002C\">/v1/{subscription=projects/*/subs" - + "criptions/*}:modifyPushConfig:\001*\022\211\001\n\013Get" - + "Snapshot\022$.google.pubsub.v1.GetSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"8\332A\010s" - + "napshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\226\001\n\rListSnapshots\022&.google." - + "pubsub.v1.ListSnapshotsRequest\032\'.google." - + "pubsub.v1.ListSnapshotsResponse\"4\332A\007proj" - + "ect\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" - + "shots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub" - + ".v1.CreateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002" - + "&\032!/v1/{name=projects/*/snapshots/*}:\001*\022" - + "\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Up" - + "dateSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*" - + "/v1/{snapshot.name=projects/*/snapshots/" - + "*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub" - + ".v1.DeleteSnapshotRequest\032\026.google.proto" - + "buf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snaps" - + "hot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.g" - + "oogle.pubsub.v1.SeekRequest\032\036.google.pub" - + "sub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscr" - + "iption=projects/*/subscriptions/*}:seek:" - + "\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/pubsubB\252\001\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z2cl" - + "oud.google.com/go/pubsub/apiv1/pubsubpb;" - + "pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026G" - + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P" - + "ubSub::V1b\006proto3" + + "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" + + "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" + + "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" + + "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" + + "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" + + "c\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002" + + "#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" + + "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" + + "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" + + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + + "oogle.pubsub.v1.PublishRequest\032!.google." + + "pubsub.v1.PublishResponse\"C\332A\016topic,mess" + + "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" + + "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." + + "pubsub.v1.ListTopicsRequest\032$.google.pub" + + "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" + + "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub." + + "v1.ListTopicSubscriptionsRequest\0320.googl" + + "e.pubsub.v1.ListTopicSubscriptionsRespon" + + "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" + + "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" + + "napshots\022+.google.pubsub.v1.ListTopicSna" + + "pshotsRequest\032,.google.pubsub.v1.ListTop" + + "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" + + "/{topic=projects/*/topics/*}/snapshots\022|" + + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" + + "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" + + "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" + + "sub.v1.DetachSubscriptionRequest\032,.googl" + + "e.pubsub.v1.DetachSubscriptionResponse\"<" + + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + + "scriptions/*}:detach\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" + + "Subscription\022\036.google.pubsub.v1.Subscrip" + + "tion\032\036.google.pubsub.v1.Subscription\"^\332A" + + "+name,topic,push_config,ack_deadline_sec" + + "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" + + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + + "gle.pubsub.v1.Subscription\"D\332A\014subscript" + + "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" + + "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" + + "+.google.pubsub.v1.UpdateSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"X\332A" + + "\030subscription,update_mask\202\323\344\223\002722/v1/{su" + + "bscription.name=projects/*/subscriptions" + + "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" + + "bsub.v1.ListSubscriptionsRequest\032+.googl" + + "e.pubsub.v1.ListSubscriptionsResponse\"8\332" + + "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" + + "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" + + ".google.pubsub.v1.DeleteSubscriptionRequ" + + "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" + + "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" + + "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" + + "*.google.pubsub.v1.ModifyAckDeadlineRequ" + + "est\032\026.google.protobuf.Empty\"v\332A)subscrip" + + "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" + + "?/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" + + "dge\022$.google.pubsub.v1.AcknowledgeReques" + + "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" + + "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" + + "ects/*/subscriptions/*}:acknowledge:\001*\022\320" + + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" + + ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" + + "ub.v1.StreamingPullRequest\032\'.google.pubs" + + "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" + + "difyPushConfig\022).google.pubsub.v1.Modify" + + "PushConfigRequest\032\026.google.protobuf.Empt" + + "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022" + + "$.google.pubsub.v1.GetSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323" + + "\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots" + + "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" + + ".ListSnapshotsRequest\032\'.google.pubsub.v1" + + ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" + + "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" + + "eSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" + + "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" + + "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" + + "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" + + "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" + + "eSnapshotRequest\032\026.google.protobuf.Empty" + + "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" + + "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" + + "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" + + "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" + + "bsub.googleapis.com\322AUhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + + "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" + + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -629,7 +673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, new java.lang.String[] { - "AllowedPersistenceRegions", + "AllowedPersistenceRegions", "EnforceInTransit", }); internal_static_google_pubsub_v1_SchemaSettings_descriptor = getDescriptor().getMessageTypes().get(1); @@ -639,7 +683,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, + new java.lang.String[] { + "AwsKinesis", "Source", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor, + new java.lang.String[] { + "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -651,6 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaSettings", "SatisfiesPzs", "MessageRetentionDuration", + "State", + "IngestionDataSourceSettings", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -661,7 +725,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -677,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -685,7 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -693,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -701,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -709,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -717,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -725,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -733,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -741,7 +805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -749,7 +813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -757,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -765,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -773,13 +837,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -812,7 +876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -820,7 +884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -828,7 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -836,7 +900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -880,7 +944,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -893,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseTableSchema", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -923,7 +987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -931,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -939,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -947,7 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -955,7 +1019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -963,7 +1027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -971,7 +1035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -979,7 +1043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -987,7 +1051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -995,7 +1059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1003,7 +1067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1011,7 +1075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1026,7 +1090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1061,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1077,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1085,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1101,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1109,7 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1117,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1125,7 +1189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1133,7 +1197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1141,7 +1205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 30c5431b8..7375cea5d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 9f9ccf387..4f2b226c5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 65b827fd0..2b6824183 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,14 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { @@ -87,14 +89,16 @@ public java.util.List getReceivedMessagesL * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -105,14 +109,16 @@ public java.util.List getReceivedMessagesL * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { @@ -122,14 +128,16 @@ public int getReceivedMessagesCount() { * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { @@ -139,14 +147,16 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { @@ -559,14 +569,16 @@ private void ensureReceivedMessagesIsMutable() { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -579,14 +591,16 @@ public java.util.List getReceivedMessagesL * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -599,14 +613,16 @@ public int getReceivedMessagesCount() { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -619,14 +635,16 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -645,14 +663,16 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -669,14 +689,16 @@ public Builder setReceivedMessages( * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -695,14 +717,16 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -721,14 +745,16 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -745,14 +771,16 @@ public Builder addReceivedMessages( * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -769,14 +797,16 @@ public Builder addReceivedMessages( * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { @@ -793,14 +823,16 @@ public Builder addAllReceivedMessages( * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -816,14 +848,16 @@ public Builder clearReceivedMessages() { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -839,14 +873,16 @@ public Builder removeReceivedMessages(int index) { * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); @@ -855,14 +891,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { @@ -875,14 +913,16 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesOrBuilderList() { @@ -896,14 +936,16 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { return getReceivedMessagesFieldBuilder() @@ -913,14 +955,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder() @@ -930,14 +974,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
-     * Received Pub/Sub messages. The list will be empty if there are no more
-     * messages available in the backlog, or if no messages could be returned
+     * Optional. Received Pub/Sub messages. The list will be empty if there are no
+     * more messages available in the backlog, or if no messages could be returned
      * before the request timeout. For JSON, the response can be entirely
      * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesBuilderList() { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 16d1f7e5a..39112729e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,56 +27,64 @@ public interface PullResponseOrBuilder * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesList(); /** * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReceivedMessagesCount(); /** * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesOrBuilderList(); @@ -84,14 +92,16 @@ public interface PullResponseOrBuilder * * *
-   * Received Pub/Sub messages. The list will be empty if there are no more
-   * messages available in the backlog, or if no messages could be returned
+   * Optional. Received Pub/Sub messages. The list will be empty if there are no
+   * more messages available in the backlog, or if no messages could be returned
    * before the request timeout. For JSON, the response can be entirely
    * empty. The Pub/Sub system may return fewer than the `maxMessages` requested
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 7124ca38f..074068dc4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,14 +80,14 @@ public interface OidcTokenOrBuilder * * *
-     * [Service account
+     * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
      * used for generating the OIDC token. For more information
      * on setting up authentication, see
      * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
      * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -96,14 +96,14 @@ public interface OidcTokenOrBuilder * * *
-     * [Service account
+     * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
      * used for generating the OIDC token. For more information
      * on setting up authentication, see
      * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
      * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -113,15 +113,16 @@ public interface OidcTokenOrBuilder * * *
-     * Audience to be used when generating OIDC token. The audience claim
-     * identifies the recipients that the JWT is intended for. The audience
-     * value is a single case-sensitive string. Having multiple values (array)
-     * for the audience field is not supported. More info about the OIDC JWT
-     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-     * Note: if not specified, the Push endpoint URL will be used.
+     * Optional. Audience to be used when generating OIDC token. The audience
+     * claim identifies the recipients that the JWT is intended for. The
+     * audience value is a single case-sensitive string. Having multiple values
+     * (array) for the audience field is not supported. More info about the OIDC
+     * JWT token audience here:
+     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+     * the Push endpoint URL will be used.
      * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -130,15 +131,16 @@ public interface OidcTokenOrBuilder * * *
-     * Audience to be used when generating OIDC token. The audience claim
-     * identifies the recipients that the JWT is intended for. The audience
-     * value is a single case-sensitive string. Having multiple values (array)
-     * for the audience field is not supported. More info about the OIDC JWT
-     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-     * Note: if not specified, the Push endpoint URL will be used.
+     * Optional. Audience to be used when generating OIDC token. The audience
+     * claim identifies the recipients that the JWT is intended for. The
+     * audience value is a single case-sensitive string. Having multiple values
+     * (array) for the audience field is not supported. More info about the OIDC
+     * JWT token audience here:
+     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+     * the Push endpoint URL will be used.
      * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -199,14 +201,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * [Service account
+     * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
      * used for generating the OIDC token. For more information
      * on setting up authentication, see
      * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
      * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -226,14 +228,14 @@ public java.lang.String getServiceAccountEmail() { * * *
-     * [Service account
+     * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
      * used for generating the OIDC token. For more information
      * on setting up authentication, see
      * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
      * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -258,15 +260,16 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
-     * Audience to be used when generating OIDC token. The audience claim
-     * identifies the recipients that the JWT is intended for. The audience
-     * value is a single case-sensitive string. Having multiple values (array)
-     * for the audience field is not supported. More info about the OIDC JWT
-     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-     * Note: if not specified, the Push endpoint URL will be used.
+     * Optional. Audience to be used when generating OIDC token. The audience
+     * claim identifies the recipients that the JWT is intended for. The
+     * audience value is a single case-sensitive string. Having multiple values
+     * (array) for the audience field is not supported. More info about the OIDC
+     * JWT token audience here:
+     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+     * the Push endpoint URL will be used.
      * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -286,15 +289,16 @@ public java.lang.String getAudience() { * * *
-     * Audience to be used when generating OIDC token. The audience claim
-     * identifies the recipients that the JWT is intended for. The audience
-     * value is a single case-sensitive string. Having multiple values (array)
-     * for the audience field is not supported. More info about the OIDC JWT
-     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-     * Note: if not specified, the Push endpoint URL will be used.
+     * Optional. Audience to be used when generating OIDC token. The audience
+     * claim identifies the recipients that the JWT is intended for. The
+     * audience value is a single case-sensitive string. Having multiple values
+     * (array) for the audience field is not supported. More info about the OIDC
+     * JWT token audience here:
+     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+     * the Push endpoint URL will be used.
      * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -687,14 +691,14 @@ public Builder mergeFrom( * * *
-       * [Service account
+       * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
        * used for generating the OIDC token. For more information
        * on setting up authentication, see
        * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
        * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -713,14 +717,14 @@ public java.lang.String getServiceAccountEmail() { * * *
-       * [Service account
+       * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
        * used for generating the OIDC token. For more information
        * on setting up authentication, see
        * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
        * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -739,14 +743,14 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
-       * [Service account
+       * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
        * used for generating the OIDC token. For more information
        * on setting up authentication, see
        * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
        * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccountEmail to set. * @return This builder for chaining. @@ -764,14 +768,14 @@ public Builder setServiceAccountEmail(java.lang.String value) { * * *
-       * [Service account
+       * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
        * used for generating the OIDC token. For more information
        * on setting up authentication, see
        * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
        * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -785,14 +789,14 @@ public Builder clearServiceAccountEmail() { * * *
-       * [Service account
+       * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
        * used for generating the OIDC token. For more information
        * on setting up authentication, see
        * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
        * 
* - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. @@ -813,15 +817,16 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) * * *
-       * Audience to be used when generating OIDC token. The audience claim
-       * identifies the recipients that the JWT is intended for. The audience
-       * value is a single case-sensitive string. Having multiple values (array)
-       * for the audience field is not supported. More info about the OIDC JWT
-       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-       * Note: if not specified, the Push endpoint URL will be used.
+       * Optional. Audience to be used when generating OIDC token. The audience
+       * claim identifies the recipients that the JWT is intended for. The
+       * audience value is a single case-sensitive string. Having multiple values
+       * (array) for the audience field is not supported. More info about the OIDC
+       * JWT token audience here:
+       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+       * the Push endpoint URL will be used.
        * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -840,15 +845,16 @@ public java.lang.String getAudience() { * * *
-       * Audience to be used when generating OIDC token. The audience claim
-       * identifies the recipients that the JWT is intended for. The audience
-       * value is a single case-sensitive string. Having multiple values (array)
-       * for the audience field is not supported. More info about the OIDC JWT
-       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-       * Note: if not specified, the Push endpoint URL will be used.
+       * Optional. Audience to be used when generating OIDC token. The audience
+       * claim identifies the recipients that the JWT is intended for. The
+       * audience value is a single case-sensitive string. Having multiple values
+       * (array) for the audience field is not supported. More info about the OIDC
+       * JWT token audience here:
+       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+       * the Push endpoint URL will be used.
        * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -867,15 +873,16 @@ public com.google.protobuf.ByteString getAudienceBytes() { * * *
-       * Audience to be used when generating OIDC token. The audience claim
-       * identifies the recipients that the JWT is intended for. The audience
-       * value is a single case-sensitive string. Having multiple values (array)
-       * for the audience field is not supported. More info about the OIDC JWT
-       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-       * Note: if not specified, the Push endpoint URL will be used.
+       * Optional. Audience to be used when generating OIDC token. The audience
+       * claim identifies the recipients that the JWT is intended for. The
+       * audience value is a single case-sensitive string. Having multiple values
+       * (array) for the audience field is not supported. More info about the OIDC
+       * JWT token audience here:
+       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+       * the Push endpoint URL will be used.
        * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The audience to set. * @return This builder for chaining. @@ -893,15 +900,16 @@ public Builder setAudience(java.lang.String value) { * * *
-       * Audience to be used when generating OIDC token. The audience claim
-       * identifies the recipients that the JWT is intended for. The audience
-       * value is a single case-sensitive string. Having multiple values (array)
-       * for the audience field is not supported. More info about the OIDC JWT
-       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-       * Note: if not specified, the Push endpoint URL will be used.
+       * Optional. Audience to be used when generating OIDC token. The audience
+       * claim identifies the recipients that the JWT is intended for. The
+       * audience value is a single case-sensitive string. Having multiple values
+       * (array) for the audience field is not supported. More info about the OIDC
+       * JWT token audience here:
+       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+       * the Push endpoint URL will be used.
        * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -915,15 +923,16 @@ public Builder clearAudience() { * * *
-       * Audience to be used when generating OIDC token. The audience claim
-       * identifies the recipients that the JWT is intended for. The audience
-       * value is a single case-sensitive string. Having multiple values (array)
-       * for the audience field is not supported. More info about the OIDC JWT
-       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
-       * Note: if not specified, the Push endpoint URL will be used.
+       * Optional. Audience to be used when generating OIDC token. The audience
+       * claim identifies the recipients that the JWT is intended for. The
+       * audience value is a single case-sensitive string. Having multiple values
+       * (array) for the audience field is not supported. More info about the OIDC
+       * JWT token audience here:
+       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
+       * the Push endpoint URL will be used.
        * 
* - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for audience to set. * @return This builder for chaining. @@ -1438,12 +1447,12 @@ public interface NoWrapperOrBuilder * * *
-     * When true, writes the Pub/Sub message metadata to
+     * Optional. When true, writes the Pub/Sub message metadata to
      * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
      * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
      * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1497,12 +1506,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * When true, writes the Pub/Sub message metadata to
+     * Optional. When true, writes the Pub/Sub message metadata to
      * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
      * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
      * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1859,12 +1868,12 @@ public Builder mergeFrom( * * *
-       * When true, writes the Pub/Sub message metadata to
+       * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
        * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1876,12 +1885,12 @@ public boolean getWriteMetadata() { * * *
-       * When true, writes the Pub/Sub message metadata to
+       * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
        * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1897,12 +1906,12 @@ public Builder setWriteMetadata(boolean value) { * * *
-       * When true, writes the Pub/Sub message metadata to
+       * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
        * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
        * 
* - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2080,11 +2089,11 @@ public WrapperCase getWrapperCase() { * * *
-   * A URL locating the endpoint to which messages should be pushed.
+   * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -2104,11 +2113,11 @@ public java.lang.String getPushEndpoint() { * * *
-   * A URL locating the endpoint to which messages should be pushed.
+   * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -2155,8 +2164,8 @@ public int getAttributesCount() { * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -2178,7 +2187,8 @@ public int getAttributesCount() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -2197,8 +2207,8 @@ public java.util.Map getAttributes() { * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -2220,7 +2230,8 @@ public java.util.Map getAttributes() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -2230,8 +2241,8 @@ public java.util.Map getAttributesMap() { * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -2253,7 +2264,8 @@ public java.util.Map getAttributesMap() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -2270,8 +2282,8 @@ public java.util.Map getAttributesMap() { * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -2293,7 +2305,8 @@ public java.util.Map getAttributesMap() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -2312,11 +2325,14 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -2328,11 +2344,14 @@ public boolean hasOidcToken() { * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -2347,11 +2366,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { @@ -2366,12 +2388,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -2383,12 +2407,14 @@ public boolean hasPubsubWrapper() { * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -2403,12 +2429,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { @@ -2423,10 +2451,12 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -2438,10 +2468,12 @@ public boolean hasNoWrapper() { * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -2456,10 +2488,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { @@ -3033,11 +3067,11 @@ public Builder clearWrapper() { * * *
-     * A URL locating the endpoint to which messages should be pushed.
+     * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -3056,11 +3090,11 @@ public java.lang.String getPushEndpoint() { * * *
-     * A URL locating the endpoint to which messages should be pushed.
+     * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -3079,11 +3113,11 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { * * *
-     * A URL locating the endpoint to which messages should be pushed.
+     * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pushEndpoint to set. * @return This builder for chaining. @@ -3101,11 +3135,11 @@ public Builder setPushEndpoint(java.lang.String value) { * * *
-     * A URL locating the endpoint to which messages should be pushed.
+     * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3119,11 +3153,11 @@ public Builder clearPushEndpoint() { * * *
-     * A URL locating the endpoint to which messages should be pushed.
+     * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. @@ -3171,8 +3205,8 @@ public int getAttributesCount() { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3194,7 +3228,8 @@ public int getAttributesCount() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -3213,8 +3248,8 @@ public java.util.Map getAttributes() { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3236,7 +3271,8 @@ public java.util.Map getAttributes() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -3246,8 +3282,8 @@ public java.util.Map getAttributesMap() { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3269,7 +3305,8 @@ public java.util.Map getAttributesMap() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -3286,8 +3323,8 @@ public java.util.Map getAttributesMap() { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3309,7 +3346,8 @@ public java.util.Map getAttributesMap() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -3332,8 +3370,8 @@ public Builder clearAttributes() { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3355,7 +3393,8 @@ public Builder clearAttributes() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAttributes(java.lang.String key) { if (key == null) { @@ -3374,8 +3413,8 @@ public java.util.Map getMutableAttributes() * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3397,7 +3436,8 @@ public java.util.Map getMutableAttributes()
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3414,8 +3454,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
-     * Endpoint configuration attributes that can be used to control different
-     * aspects of the message delivery.
+     * Optional. Endpoint configuration attributes that can be used to control
+     * different aspects of the message delivery.
      *
      * The only currently supported attribute is `x-goog-version`, which you can
      * use to change the format of the pushed message. This attribute
@@ -3437,7 +3477,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); @@ -3454,11 +3495,14 @@ public Builder putAllAttributes(java.util.Map - * If specified, Pub/Sub will generate and attach an OIDC JWT token as an - * `Authorization` header in the HTTP request for every pushed message. + * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT + * token as an `Authorization` header in the HTTP request for every pushed + * message. * * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -3470,11 +3514,14 @@ public boolean hasOidcToken() { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -3496,11 +3543,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { @@ -3519,11 +3569,14 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) { if (oidcTokenBuilder_ == null) { @@ -3539,11 +3592,14 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { @@ -3573,11 +3629,14 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOidcToken() { if (oidcTokenBuilder_ == null) { @@ -3599,11 +3658,14 @@ public Builder clearOidcToken() { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { return getOidcTokenFieldBuilder().getBuilder(); @@ -3612,11 +3674,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { @@ -3633,11 +3698,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
-     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-     * `Authorization` header in the HTTP request for every pushed message.
+     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+     * token as an `Authorization` header in the HTTP request for every pushed
+     * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.OidcToken, @@ -3672,12 +3740,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -3689,12 +3759,14 @@ public boolean hasPubsubWrapper() { * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -3716,12 +3788,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { @@ -3740,12 +3814,14 @@ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper va * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper( com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder builderForValue) { @@ -3762,12 +3838,14 @@ public Builder setPubsubWrapper( * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { @@ -3796,12 +3874,14 @@ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPubsubWrapper() { if (pubsubWrapperBuilder_ == null) { @@ -3823,12 +3903,14 @@ public Builder clearPubsubWrapper() { * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { return getPubsubWrapperFieldBuilder().getBuilder(); @@ -3837,12 +3919,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBui * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { @@ -3859,12 +3943,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
-     * When set, the payload to the push endpoint is in the form of the JSON
-     * representation of a PubsubMessage
+     * Optional. When set, the payload to the push endpoint is in the form of
+     * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.PubsubWrapper, @@ -3899,10 +3985,12 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -3914,10 +4002,12 @@ public boolean hasNoWrapper() { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -3939,10 +4029,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { @@ -3961,10 +4053,12 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder builderForValue) { if (noWrapperBuilder_ == null) { @@ -3980,10 +4074,12 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder bu * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { @@ -4012,10 +4108,12 @@ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNoWrapper() { if (noWrapperBuilder_ == null) { @@ -4037,10 +4135,12 @@ public Builder clearNoWrapper() { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { return getNoWrapperFieldBuilder().getBuilder(); @@ -4049,10 +4149,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { @@ -4069,10 +4171,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( * * *
-     * When set, the payload to the push endpoint is not wrapped.
+     * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.NoWrapper, diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index dade5167a..b39c32241 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface PushConfigOrBuilder * * *
-   * A URL locating the endpoint to which messages should be pushed.
+   * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -40,11 +40,11 @@ public interface PushConfigOrBuilder * * *
-   * A URL locating the endpoint to which messages should be pushed.
+   * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -54,8 +54,8 @@ public interface PushConfigOrBuilder * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -77,15 +77,16 @@ public interface PushConfigOrBuilder
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -107,7 +108,8 @@ public interface PushConfigOrBuilder
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsAttributes(java.lang.String key); /** Use {@link #getAttributesMap()} instead. */ @@ -117,8 +119,8 @@ public interface PushConfigOrBuilder * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -140,15 +142,16 @@ public interface PushConfigOrBuilder
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getAttributesMap(); /** * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -170,7 +173,8 @@ public interface PushConfigOrBuilder
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getAttributesOrDefault( @@ -181,8 +185,8 @@ java.lang.String getAttributesOrDefault( * * *
-   * Endpoint configuration attributes that can be used to control different
-   * aspects of the message delivery.
+   * Optional. Endpoint configuration attributes that can be used to control
+   * different aspects of the message delivery.
    *
    * The only currently supported attribute is `x-goog-version`, which you can
    * use to change the format of the pushed message. This attribute
@@ -204,7 +208,8 @@ java.lang.String getAttributesOrDefault(
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getAttributesOrThrow(java.lang.String key); @@ -212,11 +217,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -225,11 +233,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -238,11 +249,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
-   * `Authorization` header in the HTTP request for every pushed message.
+   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
+   * token as an `Authorization` header in the HTTP request for every pushed
+   * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(); @@ -250,12 +264,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -264,12 +280,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -278,12 +296,14 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is in the form of the JSON
-   * representation of a PubsubMessage
+   * Optional. When set, the payload to the push endpoint is in the form of
+   * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder(); @@ -291,10 +311,12 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -303,10 +325,12 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -315,10 +339,12 @@ java.lang.String getAttributesOrDefault( * * *
-   * When set, the payload to the push endpoint is not wrapped.
+   * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 3e70473df..8fd798b36 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,10 +70,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * This ID can be used to acknowledge the received message.
+   * Optional. This ID can be used to acknowledge the received message.
    * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -93,10 +93,10 @@ public java.lang.String getAckId() { * * *
-   * This ID can be used to acknowledge the received message.
+   * Optional. This ID can be used to acknowledge the received message.
    * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -119,10 +119,11 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -134,10 +135,11 @@ public boolean hasMessage() { * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -149,10 +151,11 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { @@ -165,8 +168,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
-   * The approximate number of times that Cloud Pub/Sub has attempted to deliver
-   * the associated message to a subscriber.
+   * Optional. The approximate number of times that Pub/Sub has attempted to
+   * deliver the associated message to a subscriber.
    *
    * More precisely, this is 1 + (number of NACKs) +
    * (number of ack_deadline exceeds) for this message.
@@ -183,7 +186,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
    * If a DeadLetterPolicy is not set on the subscription, this will be 0.
    * 
* - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ @@ -588,10 +591,10 @@ public Builder mergeFrom( * * *
-     * This ID can be used to acknowledge the received message.
+     * Optional. This ID can be used to acknowledge the received message.
      * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -610,10 +613,10 @@ public java.lang.String getAckId() { * * *
-     * This ID can be used to acknowledge the received message.
+     * Optional. This ID can be used to acknowledge the received message.
      * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -632,10 +635,10 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * *
-     * This ID can be used to acknowledge the received message.
+     * Optional. This ID can be used to acknowledge the received message.
      * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackId to set. * @return This builder for chaining. @@ -653,10 +656,10 @@ public Builder setAckId(java.lang.String value) { * * *
-     * This ID can be used to acknowledge the received message.
+     * Optional. This ID can be used to acknowledge the received message.
      * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -670,10 +673,10 @@ public Builder clearAckId() { * * *
-     * This ID can be used to acknowledge the received message.
+     * Optional. This ID can be used to acknowledge the received message.
      * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for ackId to set. * @return This builder for chaining. @@ -699,10 +702,11 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -713,10 +717,11 @@ public boolean hasMessage() { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -733,10 +738,11 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { @@ -755,10 +761,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { @@ -774,10 +781,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { @@ -799,10 +807,11 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); @@ -818,10 +827,11 @@ public Builder clearMessage() { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { bitField0_ |= 0x00000002; @@ -832,10 +842,11 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { @@ -850,10 +861,11 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
-     * The message.
+     * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PubsubMessage, @@ -877,8 +889,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
-     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
-     * the associated message to a subscriber.
+     * Optional. The approximate number of times that Pub/Sub has attempted to
+     * deliver the associated message to a subscriber.
      *
      * More precisely, this is 1 + (number of NACKs) +
      * (number of ack_deadline exceeds) for this message.
@@ -895,7 +907,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
      * If a DeadLetterPolicy is not set on the subscription, this will be 0.
      * 
* - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ @@ -907,8 +919,8 @@ public int getDeliveryAttempt() { * * *
-     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
-     * the associated message to a subscriber.
+     * Optional. The approximate number of times that Pub/Sub has attempted to
+     * deliver the associated message to a subscriber.
      *
      * More precisely, this is 1 + (number of NACKs) +
      * (number of ack_deadline exceeds) for this message.
@@ -925,7 +937,7 @@ public int getDeliveryAttempt() {
      * If a DeadLetterPolicy is not set on the subscription, this will be 0.
      * 
* - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The deliveryAttempt to set. * @return This builder for chaining. @@ -941,8 +953,8 @@ public Builder setDeliveryAttempt(int value) { * * *
-     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
-     * the associated message to a subscriber.
+     * Optional. The approximate number of times that Pub/Sub has attempted to
+     * deliver the associated message to a subscriber.
      *
      * More precisely, this is 1 + (number of NACKs) +
      * (number of ack_deadline exceeds) for this message.
@@ -959,7 +971,7 @@ public Builder setDeliveryAttempt(int value) {
      * If a DeadLetterPolicy is not set on the subscription, this will be 0.
      * 
* - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index d5617c652..e8b2c0622 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface ReceivedMessageOrBuilder * * *
-   * This ID can be used to acknowledge the received message.
+   * Optional. This ID can be used to acknowledge the received message.
    * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -39,10 +39,10 @@ public interface ReceivedMessageOrBuilder * * *
-   * This ID can be used to acknowledge the received message.
+   * Optional. This ID can be used to acknowledge the received message.
    * 
* - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -52,10 +52,11 @@ public interface ReceivedMessageOrBuilder * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -64,10 +65,11 @@ public interface ReceivedMessageOrBuilder * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -76,10 +78,11 @@ public interface ReceivedMessageOrBuilder * * *
-   * The message.
+   * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); @@ -87,8 +90,8 @@ public interface ReceivedMessageOrBuilder * * *
-   * The approximate number of times that Cloud Pub/Sub has attempted to deliver
-   * the associated message to a subscriber.
+   * Optional. The approximate number of times that Pub/Sub has attempted to
+   * deliver the associated message to a subscriber.
    *
    * More precisely, this is 1 + (number of NACKs) +
    * (number of ack_deadline exceeds) for this message.
@@ -105,7 +108,7 @@ public interface ReceivedMessageOrBuilder
    * If a DeadLetterPolicy is not set on the subscription, this will be 0.
    * 
* - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index aee326393..31375806d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ * * *
- * A policy that specifies how Cloud Pub/Sub retries message delivery.
+ * A policy that specifies how Pub/Sub retries message delivery.
  *
  * Retry delay will be exponential based on provided minimum and maximum
  * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
@@ -74,11 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -90,11 +91,12 @@ public boolean hasMinimumBackoff() { * * *
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -108,11 +110,12 @@ public com.google.protobuf.Duration getMinimumBackoff() { * * *
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { @@ -127,11 +130,13 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -143,11 +148,13 @@ public boolean hasMaximumBackoff() { * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -161,11 +168,13 @@ public com.google.protobuf.Duration getMaximumBackoff() { * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { @@ -354,7 +363,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A policy that specifies how Cloud Pub/Sub retries message delivery.
+   * A policy that specifies how Pub/Sub retries message delivery.
    *
    * Retry delay will be exponential based on provided minimum and maximum
    * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
@@ -572,11 +581,13 @@ public Builder mergeFrom(
      *
      *
      * 
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -587,11 +598,13 @@ public boolean hasMinimumBackoff() { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -608,11 +621,13 @@ public com.google.protobuf.Duration getMinimumBackoff() { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { @@ -631,11 +646,13 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (minimumBackoffBuilder_ == null) { @@ -651,11 +668,13 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { @@ -677,11 +696,13 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMinimumBackoff() { bitField0_ = (bitField0_ & ~0x00000001); @@ -697,11 +718,13 @@ public Builder clearMinimumBackoff() { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { bitField0_ |= 0x00000001; @@ -712,11 +735,13 @@ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { if (minimumBackoffBuilder_ != null) { @@ -731,11 +756,13 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
-     * The minimum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+     * Optional. The minimum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -764,11 +791,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -779,11 +809,14 @@ public boolean hasMaximumBackoff() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -800,11 +833,14 @@ public com.google.protobuf.Duration getMaximumBackoff() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { @@ -823,11 +859,14 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (maximumBackoffBuilder_ == null) { @@ -843,11 +882,14 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { @@ -869,11 +911,14 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaximumBackoff() { bitField0_ = (bitField0_ & ~0x00000002); @@ -889,11 +934,14 @@ public Builder clearMaximumBackoff() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { bitField0_ |= 0x00000002; @@ -904,11 +952,14 @@ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { if (maximumBackoffBuilder_ != null) { @@ -923,11 +974,14 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { * * *
-     * The maximum delay between consecutive deliveries of a given message.
-     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+     * Optional. The maximum delay between consecutive deliveries of a given
+     * message. Value should be between 0 and 600 seconds. Defaults to 600
+     * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 967fa903c..42cfa2210 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,12 @@ public interface RetryPolicyOrBuilder * * *
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -40,11 +41,12 @@ public interface RetryPolicyOrBuilder * * *
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -53,11 +55,12 @@ public interface RetryPolicyOrBuilder * * *
-   * The minimum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
+   * Optional. The minimum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder(); @@ -65,11 +68,13 @@ public interface RetryPolicyOrBuilder * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -78,11 +83,13 @@ public interface RetryPolicyOrBuilder * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -91,11 +98,13 @@ public interface RetryPolicyOrBuilder * * *
-   * The maximum delay between consecutive deliveries of a given message.
-   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
+   * Optional. The maximum delay between consecutive deliveries of a given
+   * message. Value should be between 0 and 600 seconds. Defaults to 600
+   * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 6de995c70..3b9f46ddc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index b7562292e..992986674 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 7cdbcff9e..1eef47c39 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 98612c8c1..d16516796 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 296a9bc5c..d04c35cb0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index e43b99679..fdf613987 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,10 +132,10 @@ public com.google.protobuf.ByteString getSchemaBytes() { * * *
-   * The encoding of messages validated against `schema`.
+   * Optional. The encoding of messages validated against `schema`.
    * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enum numeric value on the wire for encoding. */ @@ -147,10 +147,10 @@ public int getEncodingValue() { * * *
-   * The encoding of messages validated against `schema`.
+   * Optional. The encoding of messages validated against `schema`.
    * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @@ -168,12 +168,12 @@ public com.google.pubsub.v1.Encoding getEncoding() { * * *
-   * The minimum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against last_revision or
-   * any revision created before.
+   * Optional. The minimum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * last_revision or any revision created before.
    * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -193,12 +193,12 @@ public java.lang.String getFirstRevisionId() { * * *
-   * The minimum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against last_revision or
-   * any revision created before.
+   * Optional. The minimum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * last_revision or any revision created before.
    * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -223,12 +223,12 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { * * *
-   * The maximum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against first_revision
-   * or any revision created after.
+   * Optional. The maximum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * first_revision or any revision created after.
    * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -248,12 +248,12 @@ public java.lang.String getLastRevisionId() { * * *
-   * The maximum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against first_revision
-   * or any revision created after.
+   * Optional. The maximum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * first_revision or any revision created after.
    * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ @@ -814,10 +814,11 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { * * *
-     * The encoding of messages validated against `schema`.
+     * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for encoding. */ @@ -829,10 +830,11 @@ public int getEncodingValue() { * * *
-     * The encoding of messages validated against `schema`.
+     * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. @@ -847,10 +849,11 @@ public Builder setEncodingValue(int value) { * * *
-     * The encoding of messages validated against `schema`.
+     * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The encoding. */ @@ -863,10 +866,11 @@ public com.google.pubsub.v1.Encoding getEncoding() { * * *
-     * The encoding of messages validated against `schema`.
+     * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The encoding to set. * @return This builder for chaining. @@ -884,10 +888,11 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { * * *
-     * The encoding of messages validated against `schema`.
+     * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -903,12 +908,12 @@ public Builder clearEncoding() { * * *
-     * The minimum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against last_revision or
-     * any revision created before.
+     * Optional. The minimum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * last_revision or any revision created before.
      * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -927,12 +932,12 @@ public java.lang.String getFirstRevisionId() { * * *
-     * The minimum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against last_revision or
-     * any revision created before.
+     * Optional. The minimum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * last_revision or any revision created before.
      * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -951,12 +956,12 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { * * *
-     * The minimum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against last_revision or
-     * any revision created before.
+     * Optional. The minimum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * last_revision or any revision created before.
      * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The firstRevisionId to set. * @return This builder for chaining. @@ -974,12 +979,12 @@ public Builder setFirstRevisionId(java.lang.String value) { * * *
-     * The minimum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against last_revision or
-     * any revision created before.
+     * Optional. The minimum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * last_revision or any revision created before.
      * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -993,12 +998,12 @@ public Builder clearFirstRevisionId() { * * *
-     * The minimum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against last_revision or
-     * any revision created before.
+     * Optional. The minimum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * last_revision or any revision created before.
      * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for firstRevisionId to set. * @return This builder for chaining. @@ -1019,12 +1024,12 @@ public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against first_revision
-     * or any revision created after.
+     * Optional. The maximum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * first_revision or any revision created after.
      * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -1043,12 +1048,12 @@ public java.lang.String getLastRevisionId() { * * *
-     * The maximum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against first_revision
-     * or any revision created after.
+     * Optional. The maximum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * first_revision or any revision created after.
      * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ @@ -1067,12 +1072,12 @@ public com.google.protobuf.ByteString getLastRevisionIdBytes() { * * *
-     * The maximum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against first_revision
-     * or any revision created after.
+     * Optional. The maximum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * first_revision or any revision created after.
      * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The lastRevisionId to set. * @return This builder for chaining. @@ -1090,12 +1095,12 @@ public Builder setLastRevisionId(java.lang.String value) { * * *
-     * The maximum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against first_revision
-     * or any revision created after.
+     * Optional. The maximum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * first_revision or any revision created after.
      * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1109,12 +1114,12 @@ public Builder clearLastRevisionId() { * * *
-     * The maximum (inclusive) revision allowed for validating messages. If empty
-     * or not present, allow any revision to be validated against first_revision
-     * or any revision created after.
+     * Optional. The maximum (inclusive) revision allowed for validating messages.
+     * If empty or not present, allow any revision to be validated against
+     * first_revision or any revision created after.
      * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for lastRevisionId to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index b65abdf20..19823f45f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,10 +62,10 @@ public interface SchemaSettingsOrBuilder * * *
-   * The encoding of messages validated against `schema`.
+   * Optional. The encoding of messages validated against `schema`.
    * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enum numeric value on the wire for encoding. */ @@ -74,10 +74,10 @@ public interface SchemaSettingsOrBuilder * * *
-   * The encoding of messages validated against `schema`.
+   * Optional. The encoding of messages validated against `schema`.
    * 
* - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @@ -87,12 +87,12 @@ public interface SchemaSettingsOrBuilder * * *
-   * The minimum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against last_revision or
-   * any revision created before.
+   * Optional. The minimum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * last_revision or any revision created before.
    * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -101,12 +101,12 @@ public interface SchemaSettingsOrBuilder * * *
-   * The minimum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against last_revision or
-   * any revision created before.
+   * Optional. The minimum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * last_revision or any revision created before.
    * 
* - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -116,12 +116,12 @@ public interface SchemaSettingsOrBuilder * * *
-   * The maximum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against first_revision
-   * or any revision created after.
+   * Optional. The maximum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * first_revision or any revision created after.
    * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -130,12 +130,12 @@ public interface SchemaSettingsOrBuilder * * *
-   * The maximum (inclusive) revision allowed for validating messages. If empty
-   * or not present, allow any revision to be validated against first_revision
-   * or any revision created after.
+   * Optional. The maximum (inclusive) revision allowed for validating messages.
+   * If empty or not present, allow any revision to be validated against
+   * first_revision or any revision created after.
    * 
* - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index c9ff100cd..80ca623eb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 4cded2d70..6e6d5f347 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -169,7 +169,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -182,7 +182,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -194,7 +194,7 @@ public boolean hasTime() { * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -207,7 +207,7 @@ public boolean hasTime() {
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -222,7 +222,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -235,7 +235,7 @@ public com.google.protobuf.Timestamp getTime() {
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { @@ -250,12 +250,14 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -266,12 +268,14 @@ public boolean hasSnapshot() { * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -295,12 +299,14 @@ public java.lang.String getSnapshot() { * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -880,7 +886,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -893,7 +899,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -905,7 +911,7 @@ public boolean hasTime() { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -918,7 +924,7 @@ public boolean hasTime() {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -940,7 +946,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -953,7 +959,7 @@ public com.google.protobuf.Timestamp getTime() {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { @@ -972,7 +978,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -985,7 +991,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { @@ -1001,7 +1007,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -1014,7 +1020,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { @@ -1041,7 +1047,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -1054,7 +1060,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTime() { if (timeBuilder_ == null) { @@ -1076,7 +1082,7 @@ public Builder clearTime() { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -1089,7 +1095,7 @@ public Builder clearTime() {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { return getTimeFieldBuilder().getBuilder(); @@ -1098,7 +1104,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -1111,7 +1117,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { @@ -1128,7 +1134,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
-     * The time to seek to.
+     * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
      * time are marked as acknowledged, and messages retained in the
      * subscription that were published after this time are marked as
@@ -1141,7 +1147,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * and already-expunged messages will not be restored.
      * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1169,12 +1175,14 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -1186,12 +1194,14 @@ public boolean hasSnapshot() { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -1216,12 +1226,14 @@ public java.lang.String getSnapshot() { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -1246,12 +1258,14 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The snapshot to set. * @return This builder for chaining. @@ -1269,12 +1283,14 @@ public Builder setSnapshot(java.lang.String value) { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1290,12 +1306,14 @@ public Builder clearSnapshot() { * * *
-     * The snapshot to seek to. The snapshot's topic must be the same as that of
-     * the provided subscription.
-     * Format is `projects/{project}/snapshots/{snap}`.
+     * Optional. The snapshot to seek to. The snapshot's topic must be the same
+     * as that of the provided subscription. Format is
+     * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for snapshot to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 009aaa5f8..54a98d0d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ public interface SeekRequestOrBuilder * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -69,7 +69,7 @@ public interface SeekRequestOrBuilder
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -78,7 +78,7 @@ public interface SeekRequestOrBuilder * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -91,7 +91,7 @@ public interface SeekRequestOrBuilder
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -100,7 +100,7 @@ public interface SeekRequestOrBuilder * * *
-   * The time to seek to.
+   * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
    * time are marked as acknowledged, and messages retained in the
    * subscription that were published after this time are marked as
@@ -113,7 +113,7 @@ public interface SeekRequestOrBuilder
    * and already-expunged messages will not be restored.
    * 
* - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); @@ -121,12 +121,14 @@ public interface SeekRequestOrBuilder * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -135,12 +137,14 @@ public interface SeekRequestOrBuilder * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -149,12 +153,14 @@ public interface SeekRequestOrBuilder * * *
-   * The snapshot to seek to. The snapshot's topic must be the same as that of
-   * the provided subscription.
-   * Format is `projects/{project}/snapshots/{snap}`.
+   * Optional. The snapshot to seek to. The snapshot's topic must be the same
+   * as that of the provided subscription. Format is
+   * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 141e78c27..de422ae44 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 9b2fd097d..0ad90788f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bbf7ea473..ac68f828d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,10 +84,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * The name of the snapshot.
+   * Optional. The name of the snapshot.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -107,10 +107,10 @@ public java.lang.String getName() { * * *
-   * The name of the snapshot.
+   * Optional. The name of the snapshot.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -135,10 +135,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The name of the topic from which this snapshot is retaining messages.
+   * Optional. The name of the topic from which this snapshot is retaining
+   * messages.
    * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -158,10 +161,13 @@ public java.lang.String getTopic() { * * *
-   * The name of the topic from which this snapshot is retaining messages.
+   * Optional. The name of the topic from which this snapshot is retaining
+   * messages.
    * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -184,7 +190,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -196,7 +202,8 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -208,7 +215,7 @@ public boolean hasExpireTime() { * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -220,7 +227,8 @@ public boolean hasExpireTime() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -232,7 +240,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -244,7 +252,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -281,11 +290,11 @@ public int getLabelsCount() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -304,11 +313,11 @@ public java.util.Map getLabels() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -318,11 +327,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -339,11 +348,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -812,10 +821,10 @@ public Builder mergeFrom( * * *
-     * The name of the snapshot.
+     * Optional. The name of the snapshot.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -834,10 +843,10 @@ public java.lang.String getName() { * * *
-     * The name of the snapshot.
+     * Optional. The name of the snapshot.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -856,10 +865,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the snapshot.
+     * Optional. The name of the snapshot.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -877,10 +886,10 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the snapshot.
+     * Optional. The name of the snapshot.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -894,10 +903,10 @@ public Builder clearName() { * * *
-     * The name of the snapshot.
+     * Optional. The name of the snapshot.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -918,10 +927,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the topic from which this snapshot is retaining messages.
+     * Optional. The name of the topic from which this snapshot is retaining
+     * messages.
      * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -940,10 +952,13 @@ public java.lang.String getTopic() { * * *
-     * The name of the topic from which this snapshot is retaining messages.
+     * Optional. The name of the topic from which this snapshot is retaining
+     * messages.
      * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -962,10 +977,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-     * The name of the topic from which this snapshot is retaining messages.
+     * Optional. The name of the topic from which this snapshot is retaining
+     * messages.
      * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -983,10 +1001,13 @@ public Builder setTopic(java.lang.String value) { * * *
-     * The name of the topic from which this snapshot is retaining messages.
+     * Optional. The name of the topic from which this snapshot is retaining
+     * messages.
      * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1000,10 +1021,13 @@ public Builder clearTopic() { * * *
-     * The name of the topic from which this snapshot is retaining messages.
+     * Optional. The name of the topic from which this snapshot is retaining
+     * messages.
      * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. @@ -1029,7 +1053,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1041,7 +1065,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -1052,7 +1077,7 @@ public boolean hasExpireTime() { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1064,7 +1089,8 @@ public boolean hasExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -1081,7 +1107,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1093,7 +1119,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1112,7 +1139,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1124,7 +1151,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { @@ -1140,7 +1168,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1152,7 +1180,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1174,7 +1203,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1186,7 +1215,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1202,7 +1232,7 @@ public Builder clearExpireTime() { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1214,7 +1244,8 @@ public Builder clearExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1225,7 +1256,7 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1237,7 +1268,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { @@ -1252,7 +1284,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-     * The snapshot is guaranteed to exist up until this time.
+     * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
      * creation. Its exact lifetime is determined at creation by the existing
      * backlog in the source subscription. Specifically, the lifetime of the
@@ -1264,7 +1296,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1312,11 +1345,11 @@ public int getLabelsCount() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1335,11 +1368,11 @@ public java.util.Map getLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1349,11 +1382,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1370,11 +1403,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1397,11 +1430,11 @@ public Builder clearLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1420,11 +1453,11 @@ public java.util.Map getMutableLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1441,11 +1474,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 89d6b8dbc..44cb3d516 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface SnapshotOrBuilder * * *
-   * The name of the snapshot.
+   * Optional. The name of the snapshot.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface SnapshotOrBuilder * * *
-   * The name of the snapshot.
+   * Optional. The name of the snapshot.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -52,10 +52,13 @@ public interface SnapshotOrBuilder * * *
-   * The name of the topic from which this snapshot is retaining messages.
+   * Optional. The name of the topic from which this snapshot is retaining
+   * messages.
    * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -64,10 +67,13 @@ public interface SnapshotOrBuilder * * *
-   * The name of the topic from which this snapshot is retaining messages.
+   * Optional. The name of the topic from which this snapshot is retaining
+   * messages.
    * 
* - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -77,7 +83,7 @@ public interface SnapshotOrBuilder * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -89,7 +95,8 @@ public interface SnapshotOrBuilder
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -98,7 +105,7 @@ public interface SnapshotOrBuilder * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -110,7 +117,8 @@ public interface SnapshotOrBuilder
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -119,7 +127,7 @@ public interface SnapshotOrBuilder * * *
-   * The snapshot is guaranteed to exist up until this time.
+   * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
    * creation. Its exact lifetime is determined at creation by the existing
    * backlog in the source subscription. Specifically, the lifetime of the
@@ -131,7 +139,8 @@ public interface SnapshotOrBuilder
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); @@ -139,22 +148,22 @@ public interface SnapshotOrBuilder * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -164,22 +173,22 @@ public interface SnapshotOrBuilder * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -190,11 +199,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 20d715043..cca885333 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,14 +138,15 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -156,14 +157,15 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -174,14 +176,15 @@ public int getAckIdsCount() { * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -193,14 +196,15 @@ public java.lang.String getAckIds(int index) { * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -217,7 +221,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -230,7 +234,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -242,7 +247,7 @@ public java.util.List getModifyDeadlineSecondsList() { * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -255,7 +260,8 @@ public java.util.List getModifyDeadlineSecondsList() {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -266,7 +272,7 @@ public int getModifyDeadlineSecondsCount() { * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -279,7 +285,8 @@ public int getModifyDeadlineSecondsCount() {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -299,14 +306,15 @@ public int getModifyDeadlineSeconds(int index) { * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -317,14 +325,15 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -335,14 +344,15 @@ public int getModifyDeadlineAckIdsCount() { * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -354,14 +364,15 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -399,15 +410,15 @@ public int getStreamAckDeadlineSeconds() { * * *
-   * A unique identifier that is used to distinguish client instances from each
-   * other. Only needs to be provided on the initial request. When a stream
-   * disconnects and reconnects for the same stream, the client_id should be set
-   * to the same value so that state associated with the old stream can be
-   * transferred to the new stream. The same client_id should not be used for
+   * Optional. A unique identifier that is used to distinguish client instances
+   * from each other. Only needs to be provided on the initial request. When a
+   * stream disconnects and reconnects for the same stream, the client_id should
+   * be set to the same value so that state associated with the old stream can
+   * be transferred to the new stream. The same client_id should not be used for
    * different client instances.
    * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -427,15 +438,15 @@ public java.lang.String getClientId() { * * *
-   * A unique identifier that is used to distinguish client instances from each
-   * other. Only needs to be provided on the initial request. When a stream
-   * disconnects and reconnects for the same stream, the client_id should be set
-   * to the same value so that state associated with the old stream can be
-   * transferred to the new stream. The same client_id should not be used for
+   * Optional. A unique identifier that is used to distinguish client instances
+   * from each other. Only needs to be provided on the initial request. When a
+   * stream disconnects and reconnects for the same stream, the client_id should
+   * be set to the same value so that state associated with the old stream can
+   * be transferred to the new stream. The same client_id should not be used for
    * different client instances.
    * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -458,8 +469,8 @@ public com.google.protobuf.ByteString getClientIdBytes() { * * *
-   * Flow control settings for the maximum number of outstanding messages. When
-   * there are `max_outstanding_messages` or more currently sent to the
+   * Optional. Flow control settings for the maximum number of outstanding
+   * messages. When there are `max_outstanding_messages` currently sent to the
    * streaming pull client that have not yet been acked or nacked, the server
    * stops sending more messages. The sending of messages resumes once the
    * number of outstanding messages is less than this value. If the value is
@@ -469,7 +480,7 @@ public com.google.protobuf.ByteString getClientIdBytes() {
    * `INVALID_ARGUMENT`.
    * 
* - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -484,18 +495,18 @@ public long getMaxOutstandingMessages() { * * *
-   * Flow control settings for the maximum number of outstanding bytes. When
-   * there are `max_outstanding_bytes` or more worth of messages currently sent
-   * to the streaming pull client that have not yet been acked or nacked, the
-   * server will stop sending more messages. The sending of messages resumes
-   * once the number of outstanding bytes is less than this value. If the value
-   * is <= 0, there is no limit to the number of outstanding bytes. This
-   * property can only be set on the initial StreamingPullRequest. If it is set
-   * on a subsequent request, the stream will be aborted with status
+   * Optional. Flow control settings for the maximum number of outstanding
+   * bytes. When there are `max_outstanding_bytes` or more worth of messages
+   * currently sent to the streaming pull client that have not yet been acked or
+   * nacked, the server will stop sending more messages. The sending of messages
+   * resumes once the number of outstanding bytes is less than this value. If
+   * the value is <= 0, there is no limit to the number of outstanding bytes.
+   * This property can only be set on the initial StreamingPullRequest. If it is
+   * set on a subsequent request, the stream will be aborted with status
    * `INVALID_ARGUMENT`.
    * 
* - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ @@ -1223,14 +1234,15 @@ private void ensureAckIdsIsMutable() { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1242,14 +1254,15 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1260,14 +1273,15 @@ public int getAckIdsCount() { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1279,14 +1293,15 @@ public java.lang.String getAckIds(int index) { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1298,14 +1313,15 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -1325,14 +1341,15 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -1351,14 +1368,15 @@ public Builder addAckIds(java.lang.String value) { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -1374,14 +1392,15 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1396,14 +1415,15 @@ public Builder clearAckIds() { * * *
-     * List of acknowledgement IDs for acknowledging previously received messages
-     * (received on this stream or a different stream). If an ack ID has expired,
-     * the corresponding message may be redelivered later. Acknowledging a message
-     * more than once will not result in an error. If the acknowledgement ID is
-     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+     * Optional. List of acknowledgement IDs for acknowledging previously received
+     * messages (received on this stream or a different stream). If an ack ID has
+     * expired, the corresponding message may be redelivered later. Acknowledging
+     * a message more than once will not result in an error. If the
+     * acknowledgement ID is malformed, the stream will be aborted with status
+     * `INVALID_ARGUMENT`.
      * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -1432,7 +1452,7 @@ private void ensureModifyDeadlineSecondsIsMutable() { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1445,7 +1465,8 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -1458,7 +1479,7 @@ public java.util.List getModifyDeadlineSecondsList() { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1471,7 +1492,8 @@ public java.util.List getModifyDeadlineSecondsList() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -1482,7 +1504,7 @@ public int getModifyDeadlineSecondsCount() { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1495,7 +1517,8 @@ public int getModifyDeadlineSecondsCount() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -1507,7 +1530,7 @@ public int getModifyDeadlineSeconds(int index) { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1520,7 +1543,8 @@ public int getModifyDeadlineSeconds(int index) {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The modifyDeadlineSeconds to set. @@ -1537,7 +1561,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1550,7 +1574,8 @@ public Builder setModifyDeadlineSeconds(int index, int value) {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. @@ -1566,7 +1591,7 @@ public Builder addModifyDeadlineSeconds(int value) { * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1579,7 +1604,8 @@ public Builder addModifyDeadlineSeconds(int value) {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The modifyDeadlineSeconds to add. * @return This builder for chaining. @@ -1595,7 +1621,7 @@ public Builder addAllModifyDeadlineSeconds( * * *
-     * The list of new ack deadlines for the IDs listed in
+     * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
      * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
      * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -1608,7 +1634,8 @@ public Builder addAllModifyDeadlineSeconds(
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1632,14 +1659,15 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -1651,14 +1679,15 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -1669,14 +1698,15 @@ public int getModifyDeadlineAckIdsCount() { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -1688,14 +1718,15 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -1707,14 +1738,15 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The modifyDeadlineAckIds to set. @@ -1734,14 +1766,15 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1760,14 +1793,15 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1783,14 +1817,15 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1805,14 +1840,15 @@ public Builder clearModifyDeadlineAckIds() { * * *
-     * List of acknowledgement IDs whose deadline will be modified based on the
-     * corresponding element in `modify_deadline_seconds`. This field can be used
-     * to indicate that more time is needed to process a message by the
+     * Optional. List of acknowledgement IDs whose deadline will be modified based
+     * on the corresponding element in `modify_deadline_seconds`. This field can
+     * be used to indicate that more time is needed to process a message by the
      * subscriber, or to make the message available for redelivery if the
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1896,15 +1932,15 @@ public Builder clearStreamAckDeadlineSeconds() { * * *
-     * A unique identifier that is used to distinguish client instances from each
-     * other. Only needs to be provided on the initial request. When a stream
-     * disconnects and reconnects for the same stream, the client_id should be set
-     * to the same value so that state associated with the old stream can be
-     * transferred to the new stream. The same client_id should not be used for
+     * Optional. A unique identifier that is used to distinguish client instances
+     * from each other. Only needs to be provided on the initial request. When a
+     * stream disconnects and reconnects for the same stream, the client_id should
+     * be set to the same value so that state associated with the old stream can
+     * be transferred to the new stream. The same client_id should not be used for
      * different client instances.
      * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -1923,15 +1959,15 @@ public java.lang.String getClientId() { * * *
-     * A unique identifier that is used to distinguish client instances from each
-     * other. Only needs to be provided on the initial request. When a stream
-     * disconnects and reconnects for the same stream, the client_id should be set
-     * to the same value so that state associated with the old stream can be
-     * transferred to the new stream. The same client_id should not be used for
+     * Optional. A unique identifier that is used to distinguish client instances
+     * from each other. Only needs to be provided on the initial request. When a
+     * stream disconnects and reconnects for the same stream, the client_id should
+     * be set to the same value so that state associated with the old stream can
+     * be transferred to the new stream. The same client_id should not be used for
      * different client instances.
      * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -1950,15 +1986,15 @@ public com.google.protobuf.ByteString getClientIdBytes() { * * *
-     * A unique identifier that is used to distinguish client instances from each
-     * other. Only needs to be provided on the initial request. When a stream
-     * disconnects and reconnects for the same stream, the client_id should be set
-     * to the same value so that state associated with the old stream can be
-     * transferred to the new stream. The same client_id should not be used for
+     * Optional. A unique identifier that is used to distinguish client instances
+     * from each other. Only needs to be provided on the initial request. When a
+     * stream disconnects and reconnects for the same stream, the client_id should
+     * be set to the same value so that state associated with the old stream can
+     * be transferred to the new stream. The same client_id should not be used for
      * different client instances.
      * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The clientId to set. * @return This builder for chaining. @@ -1976,15 +2012,15 @@ public Builder setClientId(java.lang.String value) { * * *
-     * A unique identifier that is used to distinguish client instances from each
-     * other. Only needs to be provided on the initial request. When a stream
-     * disconnects and reconnects for the same stream, the client_id should be set
-     * to the same value so that state associated with the old stream can be
-     * transferred to the new stream. The same client_id should not be used for
+     * Optional. A unique identifier that is used to distinguish client instances
+     * from each other. Only needs to be provided on the initial request. When a
+     * stream disconnects and reconnects for the same stream, the client_id should
+     * be set to the same value so that state associated with the old stream can
+     * be transferred to the new stream. The same client_id should not be used for
      * different client instances.
      * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1998,15 +2034,15 @@ public Builder clearClientId() { * * *
-     * A unique identifier that is used to distinguish client instances from each
-     * other. Only needs to be provided on the initial request. When a stream
-     * disconnects and reconnects for the same stream, the client_id should be set
-     * to the same value so that state associated with the old stream can be
-     * transferred to the new stream. The same client_id should not be used for
+     * Optional. A unique identifier that is used to distinguish client instances
+     * from each other. Only needs to be provided on the initial request. When a
+     * stream disconnects and reconnects for the same stream, the client_id should
+     * be set to the same value so that state associated with the old stream can
+     * be transferred to the new stream. The same client_id should not be used for
      * different client instances.
      * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for clientId to set. * @return This builder for chaining. @@ -2027,8 +2063,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Flow control settings for the maximum number of outstanding messages. When
-     * there are `max_outstanding_messages` or more currently sent to the
+     * Optional. Flow control settings for the maximum number of outstanding
+     * messages. When there are `max_outstanding_messages` currently sent to the
      * streaming pull client that have not yet been acked or nacked, the server
      * stops sending more messages. The sending of messages resumes once the
      * number of outstanding messages is less than this value. If the value is
@@ -2038,7 +2074,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -2050,8 +2086,8 @@ public long getMaxOutstandingMessages() { * * *
-     * Flow control settings for the maximum number of outstanding messages. When
-     * there are `max_outstanding_messages` or more currently sent to the
+     * Optional. Flow control settings for the maximum number of outstanding
+     * messages. When there are `max_outstanding_messages` currently sent to the
      * streaming pull client that have not yet been acked or nacked, the server
      * stops sending more messages. The sending of messages resumes once the
      * number of outstanding messages is less than this value. If the value is
@@ -2061,7 +2097,7 @@ public long getMaxOutstandingMessages() {
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. @@ -2077,8 +2113,8 @@ public Builder setMaxOutstandingMessages(long value) { * * *
-     * Flow control settings for the maximum number of outstanding messages. When
-     * there are `max_outstanding_messages` or more currently sent to the
+     * Optional. Flow control settings for the maximum number of outstanding
+     * messages. When there are `max_outstanding_messages` currently sent to the
      * streaming pull client that have not yet been acked or nacked, the server
      * stops sending more messages. The sending of messages resumes once the
      * number of outstanding messages is less than this value. If the value is
@@ -2088,7 +2124,7 @@ public Builder setMaxOutstandingMessages(long value) {
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2104,18 +2140,18 @@ public Builder clearMaxOutstandingMessages() { * * *
-     * Flow control settings for the maximum number of outstanding bytes. When
-     * there are `max_outstanding_bytes` or more worth of messages currently sent
-     * to the streaming pull client that have not yet been acked or nacked, the
-     * server will stop sending more messages. The sending of messages resumes
-     * once the number of outstanding bytes is less than this value. If the value
-     * is <= 0, there is no limit to the number of outstanding bytes. This
-     * property can only be set on the initial StreamingPullRequest. If it is set
-     * on a subsequent request, the stream will be aborted with status
+     * Optional. Flow control settings for the maximum number of outstanding
+     * bytes. When there are `max_outstanding_bytes` or more worth of messages
+     * currently sent to the streaming pull client that have not yet been acked or
+     * nacked, the server will stop sending more messages. The sending of messages
+     * resumes once the number of outstanding bytes is less than this value. If
+     * the value is <= 0, there is no limit to the number of outstanding bytes.
+     * This property can only be set on the initial StreamingPullRequest. If it is
+     * set on a subsequent request, the stream will be aborted with status
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ @@ -2127,18 +2163,18 @@ public long getMaxOutstandingBytes() { * * *
-     * Flow control settings for the maximum number of outstanding bytes. When
-     * there are `max_outstanding_bytes` or more worth of messages currently sent
-     * to the streaming pull client that have not yet been acked or nacked, the
-     * server will stop sending more messages. The sending of messages resumes
-     * once the number of outstanding bytes is less than this value. If the value
-     * is <= 0, there is no limit to the number of outstanding bytes. This
-     * property can only be set on the initial StreamingPullRequest. If it is set
-     * on a subsequent request, the stream will be aborted with status
+     * Optional. Flow control settings for the maximum number of outstanding
+     * bytes. When there are `max_outstanding_bytes` or more worth of messages
+     * currently sent to the streaming pull client that have not yet been acked or
+     * nacked, the server will stop sending more messages. The sending of messages
+     * resumes once the number of outstanding bytes is less than this value. If
+     * the value is <= 0, there is no limit to the number of outstanding bytes.
+     * This property can only be set on the initial StreamingPullRequest. If it is
+     * set on a subsequent request, the stream will be aborted with status
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. @@ -2154,18 +2190,18 @@ public Builder setMaxOutstandingBytes(long value) { * * *
-     * Flow control settings for the maximum number of outstanding bytes. When
-     * there are `max_outstanding_bytes` or more worth of messages currently sent
-     * to the streaming pull client that have not yet been acked or nacked, the
-     * server will stop sending more messages. The sending of messages resumes
-     * once the number of outstanding bytes is less than this value. If the value
-     * is <= 0, there is no limit to the number of outstanding bytes. This
-     * property can only be set on the initial StreamingPullRequest. If it is set
-     * on a subsequent request, the stream will be aborted with status
+     * Optional. Flow control settings for the maximum number of outstanding
+     * bytes. When there are `max_outstanding_bytes` or more worth of messages
+     * currently sent to the streaming pull client that have not yet been acked or
+     * nacked, the server will stop sending more messages. The sending of messages
+     * resumes once the number of outstanding bytes is less than this value. If
+     * the value is <= 0, there is no limit to the number of outstanding bytes.
+     * This property can only be set on the initial StreamingPullRequest. If it is
+     * set on a subsequent request, the stream will be aborted with status
      * `INVALID_ARGUMENT`.
      * 
* - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 1a8ca38b5..4a35dfcb9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,14 +62,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -78,14 +79,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -94,14 +96,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -111,14 +114,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs for acknowledging previously received messages
-   * (received on this stream or a different stream). If an ack ID has expired,
-   * the corresponding message may be redelivered later. Acknowledging a message
-   * more than once will not result in an error. If the acknowledgement ID is
-   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
+   * Optional. List of acknowledgement IDs for acknowledging previously received
+   * messages (received on this stream or a different stream). If an ack ID has
+   * expired, the corresponding message may be redelivered later. Acknowledging
+   * a message more than once will not result in an error. If the
+   * acknowledgement ID is malformed, the stream will be aborted with status
+   * `INVALID_ARGUMENT`.
    * 
* - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -129,7 +133,7 @@ public interface StreamingPullRequestOrBuilder * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -142,7 +146,8 @@ public interface StreamingPullRequestOrBuilder
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -151,7 +156,7 @@ public interface StreamingPullRequestOrBuilder * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -164,7 +169,8 @@ public interface StreamingPullRequestOrBuilder
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -173,7 +179,7 @@ public interface StreamingPullRequestOrBuilder * * *
-   * The list of new ack deadlines for the IDs listed in
+   * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
    * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
    * with `INVALID_ARGUMENT`. Each element in this list is applied to the
@@ -186,7 +192,8 @@ public interface StreamingPullRequestOrBuilder
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -197,14 +204,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -213,14 +221,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -229,14 +238,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -246,14 +256,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * List of acknowledgement IDs whose deadline will be modified based on the
-   * corresponding element in `modify_deadline_seconds`. This field can be used
-   * to indicate that more time is needed to process a message by the
+   * Optional. List of acknowledgement IDs whose deadline will be modified based
+   * on the corresponding element in `modify_deadline_seconds`. This field can
+   * be used to indicate that more time is needed to process a message by the
    * subscriber, or to make the message available for redelivery if the
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -280,15 +291,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * A unique identifier that is used to distinguish client instances from each
-   * other. Only needs to be provided on the initial request. When a stream
-   * disconnects and reconnects for the same stream, the client_id should be set
-   * to the same value so that state associated with the old stream can be
-   * transferred to the new stream. The same client_id should not be used for
+   * Optional. A unique identifier that is used to distinguish client instances
+   * from each other. Only needs to be provided on the initial request. When a
+   * stream disconnects and reconnects for the same stream, the client_id should
+   * be set to the same value so that state associated with the old stream can
+   * be transferred to the new stream. The same client_id should not be used for
    * different client instances.
    * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -297,15 +308,15 @@ public interface StreamingPullRequestOrBuilder * * *
-   * A unique identifier that is used to distinguish client instances from each
-   * other. Only needs to be provided on the initial request. When a stream
-   * disconnects and reconnects for the same stream, the client_id should be set
-   * to the same value so that state associated with the old stream can be
-   * transferred to the new stream. The same client_id should not be used for
+   * Optional. A unique identifier that is used to distinguish client instances
+   * from each other. Only needs to be provided on the initial request. When a
+   * stream disconnects and reconnects for the same stream, the client_id should
+   * be set to the same value so that state associated with the old stream can
+   * be transferred to the new stream. The same client_id should not be used for
    * different client instances.
    * 
* - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -315,8 +326,8 @@ public interface StreamingPullRequestOrBuilder * * *
-   * Flow control settings for the maximum number of outstanding messages. When
-   * there are `max_outstanding_messages` or more currently sent to the
+   * Optional. Flow control settings for the maximum number of outstanding
+   * messages. When there are `max_outstanding_messages` currently sent to the
    * streaming pull client that have not yet been acked or nacked, the server
    * stops sending more messages. The sending of messages resumes once the
    * number of outstanding messages is less than this value. If the value is
@@ -326,7 +337,7 @@ public interface StreamingPullRequestOrBuilder
    * `INVALID_ARGUMENT`.
    * 
* - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -336,18 +347,18 @@ public interface StreamingPullRequestOrBuilder * * *
-   * Flow control settings for the maximum number of outstanding bytes. When
-   * there are `max_outstanding_bytes` or more worth of messages currently sent
-   * to the streaming pull client that have not yet been acked or nacked, the
-   * server will stop sending more messages. The sending of messages resumes
-   * once the number of outstanding bytes is less than this value. If the value
-   * is <= 0, there is no limit to the number of outstanding bytes. This
-   * property can only be set on the initial StreamingPullRequest. If it is set
-   * on a subsequent request, the stream will be aborted with status
+   * Optional. Flow control settings for the maximum number of outstanding
+   * bytes. When there are `max_outstanding_bytes` or more worth of messages
+   * currently sent to the streaming pull client that have not yet been acked or
+   * nacked, the server will stop sending more messages. The sending of messages
+   * resumes once the number of outstanding bytes is less than this value. If
+   * the value is <= 0, there is no limit to the number of outstanding bytes.
+   * This property can only be set on the initial StreamingPullRequest. If it is
+   * set on a subsequent request, the stream will be aborted with status
    * `INVALID_ARGUMENT`.
    * 
* - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 52505da10..98c34b9fd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,10 +72,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -84,10 +84,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -96,10 +96,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -109,10 +109,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -123,11 +123,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -136,11 +136,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -149,11 +149,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -163,11 +163,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -178,10 +178,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the unorderedAckIds. */ @@ -190,10 +190,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of unorderedAckIds. */ @@ -202,10 +202,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -215,10 +215,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -229,10 +229,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -241,10 +243,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -253,10 +257,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -266,10 +272,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -333,10 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -347,10 +355,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -361,10 +369,10 @@ public int getAckIdsCount() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -376,10 +384,10 @@ public java.lang.String getAckIds(int index) { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -397,11 +405,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -412,11 +420,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -427,11 +435,11 @@ public int getInvalidAckIdsCount() { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -443,11 +451,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -465,10 +473,10 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the unorderedAckIds. */ @@ -479,10 +487,10 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of unorderedAckIds. */ @@ -493,10 +501,10 @@ public int getUnorderedAckIdsCount() { * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -508,10 +516,10 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
-     * List of acknowledgement IDs that were out of order.
+     * Optional. List of acknowledgement IDs that were out of order.
      * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -529,10 +537,12 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -543,10 +553,12 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -557,10 +569,12 @@ public int getTemporaryFailedAckIdsCount() { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -572,10 +586,12 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -1083,10 +1099,10 @@ private void ensureAckIdsIsMutable() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1098,10 +1114,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1112,10 +1128,10 @@ public int getAckIdsCount() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1127,10 +1143,10 @@ public java.lang.String getAckIds(int index) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1142,10 +1158,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -1165,10 +1181,10 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -1187,10 +1203,10 @@ public Builder addAckIds(java.lang.String value) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -1206,10 +1222,10 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1224,10 +1240,10 @@ public Builder clearAckIds() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -1257,11 +1273,11 @@ private void ensureInvalidAckIdsIsMutable() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -1273,11 +1289,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -1288,11 +1304,11 @@ public int getInvalidAckIdsCount() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1304,11 +1320,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1320,11 +1336,11 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -1344,11 +1360,11 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -1367,11 +1383,11 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -1387,11 +1403,11 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1406,11 +1422,11 @@ public Builder clearInvalidAckIds() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. @@ -1440,10 +1456,11 @@ private void ensureUnorderedAckIdsIsMutable() { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the unorderedAckIds. */ @@ -1455,10 +1472,11 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of unorderedAckIds. */ @@ -1469,10 +1487,11 @@ public int getUnorderedAckIdsCount() { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -1484,10 +1503,11 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -1499,10 +1519,11 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The unorderedAckIds to set. @@ -1522,10 +1543,11 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The unorderedAckIds to add. * @return This builder for chaining. @@ -1544,10 +1566,11 @@ public Builder addUnorderedAckIds(java.lang.String value) { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The unorderedAckIds to add. * @return This builder for chaining. @@ -1563,10 +1586,11 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1581,10 +1605,11 @@ public Builder clearUnorderedAckIds() { * * *
-       * List of acknowledgement IDs that were out of order.
+       * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. @@ -1615,10 +1640,13 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -1630,10 +1658,13 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -1644,10 +1675,13 @@ public int getTemporaryFailedAckIdsCount() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -1659,10 +1693,13 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -1674,10 +1711,13 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. @@ -1697,10 +1737,13 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1719,10 +1762,13 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1738,10 +1784,13 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1756,10 +1805,13 @@ public Builder clearTemporaryFailedAckIds() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1852,10 +1904,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1864,10 +1916,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1876,10 +1928,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1889,10 +1941,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1903,11 +1955,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -1916,11 +1968,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -1929,11 +1981,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1943,11 +1995,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1958,10 +2010,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -1970,10 +2024,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -1982,10 +2038,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -1995,10 +2053,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -2064,10 +2124,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -2078,10 +2138,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -2092,10 +2152,10 @@ public int getAckIdsCount() { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -2107,10 +2167,10 @@ public java.lang.String getAckIds(int index) { * * *
-     * Successfully processed acknowledgement IDs.
+     * Optional. Successfully processed acknowledgement IDs.
      * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -2128,11 +2188,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -2143,11 +2203,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -2158,11 +2218,11 @@ public int getInvalidAckIdsCount() { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -2174,11 +2234,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
-     * List of acknowledgement IDs that were malformed or whose acknowledgement
-     * deadline has expired.
+     * Optional. List of acknowledgement IDs that were malformed or whose
+     * acknowledgement deadline has expired.
      * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2196,10 +2256,12 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -2210,10 +2272,12 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -2224,10 +2288,12 @@ public int getTemporaryFailedAckIdsCount() { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -2239,10 +2305,12 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
-     * List of acknowledgement IDs that failed processing with temporary issues.
+     * Optional. List of acknowledgement IDs that failed processing with
+     * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -2722,10 +2790,10 @@ private void ensureAckIdsIsMutable() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -2737,10 +2805,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -2751,10 +2819,10 @@ public int getAckIdsCount() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -2766,10 +2834,10 @@ public java.lang.String getAckIds(int index) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -2781,10 +2849,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -2804,10 +2872,10 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -2826,10 +2894,10 @@ public Builder addAckIds(java.lang.String value) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -2845,10 +2913,10 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2863,10 +2931,10 @@ public Builder clearAckIds() { * * *
-       * Successfully processed acknowledgement IDs.
+       * Optional. Successfully processed acknowledgement IDs.
        * 
* - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -2896,11 +2964,11 @@ private void ensureInvalidAckIdsIsMutable() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -2912,11 +2980,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -2927,11 +2995,11 @@ public int getInvalidAckIdsCount() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -2943,11 +3011,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2959,11 +3027,11 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -2983,11 +3051,11 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -3006,11 +3074,11 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -3026,11 +3094,11 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3045,11 +3113,11 @@ public Builder clearInvalidAckIds() { * * *
-       * List of acknowledgement IDs that were malformed or whose acknowledgement
-       * deadline has expired.
+       * Optional. List of acknowledgement IDs that were malformed or whose
+       * acknowledgement deadline has expired.
        * 
* - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. @@ -3080,10 +3148,13 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -3095,10 +3166,13 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -3109,10 +3183,13 @@ public int getTemporaryFailedAckIdsCount() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -3124,10 +3201,13 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -3139,10 +3219,13 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. @@ -3162,10 +3245,13 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3184,10 +3270,13 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3203,10 +3292,13 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3221,10 +3313,13 @@ public Builder clearTemporaryFailedAckIds() { * * *
-       * List of acknowledgement IDs that failed processing with temporary issues.
+       * Optional. List of acknowledgement IDs that failed processing with
+       * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3318,10 +3413,12 @@ public interface SubscriptionPropertiesOrBuilder * * *
-     * True iff exactly once delivery is enabled for this subscription.
+     * Optional. True iff exactly once delivery is enabled for this
+     * subscription.
      * 
* - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3331,10 +3428,10 @@ public interface SubscriptionPropertiesOrBuilder * * *
-     * True iff message ordering is enabled for this subscription.
+     * Optional. True iff message ordering is enabled for this subscription.
      * 
* - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3388,10 +3485,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * True iff exactly once delivery is enabled for this subscription.
+     * Optional. True iff exactly once delivery is enabled for this
+     * subscription.
      * 
* - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3406,10 +3505,10 @@ public boolean getExactlyOnceDeliveryEnabled() { * * *
-     * True iff message ordering is enabled for this subscription.
+     * Optional. True iff message ordering is enabled for this subscription.
      * 
* - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3800,10 +3899,12 @@ public Builder mergeFrom( * * *
-       * True iff exactly once delivery is enabled for this subscription.
+       * Optional. True iff exactly once delivery is enabled for this
+       * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3815,10 +3916,12 @@ public boolean getExactlyOnceDeliveryEnabled() { * * *
-       * True iff exactly once delivery is enabled for this subscription.
+       * Optional. True iff exactly once delivery is enabled for this
+       * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The exactlyOnceDeliveryEnabled to set. * @return This builder for chaining. @@ -3834,10 +3937,12 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { * * *
-       * True iff exactly once delivery is enabled for this subscription.
+       * Optional. True iff exactly once delivery is enabled for this
+       * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3853,10 +3958,10 @@ public Builder clearExactlyOnceDeliveryEnabled() { * * *
-       * True iff message ordering is enabled for this subscription.
+       * Optional. True iff message ordering is enabled for this subscription.
        * 
* - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3868,10 +3973,10 @@ public boolean getMessageOrderingEnabled() { * * *
-       * True iff message ordering is enabled for this subscription.
+       * Optional. True iff message ordering is enabled for this subscription.
        * 
* - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. @@ -3887,10 +3992,10 @@ public Builder setMessageOrderingEnabled(boolean value) { * * *
-       * True iff message ordering is enabled for this subscription.
+       * Optional. True iff message ordering is enabled for this subscription.
        * 
* - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3976,10 +4081,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { @@ -3989,10 +4096,12 @@ public java.util.List getReceivedMessagesL * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -4003,10 +4112,12 @@ public java.util.List getReceivedMessagesL * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { @@ -4016,10 +4127,12 @@ public int getReceivedMessagesCount() { * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { @@ -4029,10 +4142,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { @@ -4046,12 +4161,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -4064,12 +4179,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -4085,12 +4200,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4108,12 +4223,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -4126,12 +4241,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -4148,12 +4263,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4171,11 +4286,11 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -4188,11 +4303,11 @@ public boolean hasSubscriptionProperties() { * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -4208,11 +4323,11 @@ public boolean hasSubscriptionProperties() { * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4744,10 +4859,12 @@ private void ensureReceivedMessagesIsMutable() { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -4760,10 +4877,12 @@ public java.util.List getReceivedMessagesL * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -4776,10 +4895,12 @@ public int getReceivedMessagesCount() { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4792,10 +4913,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4814,10 +4937,12 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4834,10 +4959,12 @@ public Builder setReceivedMessages( * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4856,10 +4983,12 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4878,10 +5007,12 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4898,10 +5029,12 @@ public Builder addReceivedMessages( * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4918,10 +5051,12 @@ public Builder addReceivedMessages( * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { @@ -4938,10 +5073,12 @@ public Builder addAllReceivedMessages( * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -4957,10 +5094,12 @@ public Builder clearReceivedMessages() { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4976,10 +5115,12 @@ public Builder removeReceivedMessages(int index) { * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); @@ -4988,10 +5129,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { @@ -5004,10 +5147,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesOrBuilderList() { @@ -5021,10 +5166,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { return getReceivedMessagesFieldBuilder() @@ -5034,10 +5181,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder() @@ -5047,10 +5196,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
-     * Received Pub/Sub messages. This will not be empty.
+     * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesBuilderList() { @@ -5088,12 +5239,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -5105,12 +5256,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -5130,12 +5281,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAcknowledgeConfirmation( @@ -5156,12 +5307,12 @@ public Builder setAcknowledgeConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAcknowledgeConfirmation( @@ -5180,12 +5331,12 @@ public Builder setAcknowledgeConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeAcknowledgeConfirmation( @@ -5211,12 +5362,12 @@ public Builder mergeAcknowledgeConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAcknowledgeConfirmation() { @@ -5233,12 +5384,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder @@ -5251,12 +5402,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder @@ -5274,12 +5425,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5310,12 +5461,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -5327,12 +5478,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -5352,12 +5503,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setModifyAckDeadlineConfirmation( @@ -5378,12 +5529,12 @@ public Builder setModifyAckDeadlineConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setModifyAckDeadlineConfirmation( @@ -5402,12 +5553,12 @@ public Builder setModifyAckDeadlineConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeModifyAckDeadlineConfirmation( @@ -5433,12 +5584,12 @@ public Builder mergeModifyAckDeadlineConfirmation( * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearModifyAckDeadlineConfirmation() { @@ -5455,12 +5606,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder @@ -5473,12 +5624,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder @@ -5496,12 +5647,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
-     * This field will only be set if `enable_exactly_once_delivery` is set to
-     * `true`.
+     * Optional. This field will only be set if `enable_exactly_once_delivery` is
+     * set to `true`.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5532,11 +5683,11 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -5548,11 +5699,11 @@ public boolean hasSubscriptionProperties() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -5571,11 +5722,11 @@ public boolean hasSubscriptionProperties() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubscriptionProperties( @@ -5596,11 +5747,11 @@ public Builder setSubscriptionProperties( * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubscriptionProperties( @@ -5618,11 +5769,11 @@ public Builder setSubscriptionProperties( * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSubscriptionProperties( @@ -5648,11 +5799,11 @@ public Builder mergeSubscriptionProperties( * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSubscriptionProperties() { @@ -5669,11 +5820,11 @@ public Builder clearSubscriptionProperties() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder @@ -5686,11 +5837,11 @@ public Builder clearSubscriptionProperties() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder @@ -5707,11 +5858,11 @@ public Builder clearSubscriptionProperties() { * * *
-     * Properties associated with this subscription.
+     * Optional. Properties associated with this subscription.
      * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e9d7b80f8..e8968c231 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,40 +27,48 @@ public interface StreamingPullResponseOrBuilder * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesList(); /** * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReceivedMessagesCount(); /** * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesOrBuilderList(); @@ -68,10 +76,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * Received Pub/Sub messages. This will not be empty.
+   * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); @@ -79,12 +89,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -94,12 +104,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -109,12 +119,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder @@ -124,12 +134,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -139,12 +149,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -155,12 +165,12 @@ public interface StreamingPullResponseOrBuilder * * *
-   * This field will only be set if `enable_exactly_once_delivery` is set to
-   * `true`.
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder @@ -170,11 +180,11 @@ public interface StreamingPullResponseOrBuilder * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -184,11 +194,11 @@ public interface StreamingPullResponseOrBuilder * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -198,11 +208,11 @@ public interface StreamingPullResponseOrBuilder * * *
-   * Properties associated with this subscription.
+   * Optional. Properties associated with this subscription.
    * 
* * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 6e21f6ef2..f8a13c5f0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -365,11 +365,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -381,11 +382,12 @@ public boolean hasPushConfig() { * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -397,11 +399,12 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @@ -414,11 +417,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -430,11 +435,13 @@ public boolean hasBigqueryConfig() { * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -448,11 +455,13 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { @@ -467,11 +476,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -483,11 +494,13 @@ public boolean hasCloudStorageConfig() { * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -501,11 +514,13 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { @@ -520,11 +535,11 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
-   * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
-   * the subscriber to acknowledge receipt before resending the message. In the
-   * interval after the message is delivered and before it is acknowledged, it
-   * is considered to be _outstanding_. During that time period, the
-   * message will not be redelivered (on a best-effort basis).
+   * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
+   * waits for the subscriber to acknowledge receipt before resending the
+   * message. In the interval after the message is delivered and before it is
+   * acknowledged, it is considered to be _outstanding_. During that time
+   * period, the message will not be redelivered (on a best-effort basis).
    *
    * For pull subscriptions, this value is used as the initial value for the ack
    * deadline. To override this value for a given message, call
@@ -542,7 +557,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
    * system will eventually redeliver the message.
    * 
* - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -557,7 +572,7 @@ public int getAckDeadlineSeconds() { * * *
-   * Indicates whether to retain acknowledged messages. If true, then
+   * Optional. Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
    * acknowledged, until they fall out of the `message_retention_duration`
    * window. This must be true if you would like to [`Seek` to a timestamp]
@@ -565,7 +580,7 @@ public int getAckDeadlineSeconds() {
    * the past to replay previously-acknowledged messages.
    * 
* - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -580,15 +595,16 @@ public boolean getRetainAckedMessages() { * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -600,15 +616,16 @@ public boolean hasMessageRetentionDuration() { * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -622,15 +639,16 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { @@ -669,11 +687,11 @@ public int getLabelsCount() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -692,11 +710,11 @@ public java.util.Map getLabels() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -706,11 +724,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -727,11 +745,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -751,13 +769,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * If true, messages published with the same `ordering_key` in `PubsubMessage`
-   * will be delivered to the subscribers in the order in which they
-   * are received by the Pub/Sub system. Otherwise, they may be delivered in
-   * any order.
+   * Optional. If true, messages published with the same `ordering_key` in
+   * `PubsubMessage` will be delivered to the subscribers in the order in which
+   * they are received by the Pub/Sub system. Otherwise, they may be delivered
+   * in any order.
    * 
* - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -772,16 +790,18 @@ public boolean getEnableMessageOrdering() { * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -793,16 +813,18 @@ public boolean hasExpirationPolicy() { * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -816,16 +838,18 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { @@ -842,14 +866,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
-   * An expression written in the Pub/Sub [filter
+   * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
    * then only `PubsubMessage`s whose `attributes` field matches the filter are
    * delivered on this subscription. If empty, then no messages are filtered
    * out.
    * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -869,14 +893,14 @@ public java.lang.String getFilter() { * * *
-   * An expression written in the Pub/Sub [filter
+   * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
    * then only `PubsubMessage`s whose `attributes` field matches the filter are
    * delivered on this subscription. If empty, then no messages are filtered
    * out.
    * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -899,17 +923,19 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -921,17 +947,19 @@ public boolean hasDeadLetterPolicy() { * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -945,17 +973,19 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { @@ -970,8 +1000,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -979,7 +1009,9 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -991,8 +1023,8 @@ public boolean hasRetryPolicy() { * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -1000,7 +1032,9 @@ public boolean hasRetryPolicy() {
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -1014,8 +1048,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -1023,7 +1057,9 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { @@ -1038,14 +1074,14 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
-   * Indicates whether the subscription is detached from its topic. Detached
-   * subscriptions don't receive messages from their topic and don't retain any
-   * backlog. `Pull` and `StreamingPull` requests will return
+   * Optional. Indicates whether the subscription is detached from its topic.
+   * Detached subscriptions don't receive messages from their topic and don't
+   * retain any backlog. `Pull` and `StreamingPull` requests will return
    * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    * the endpoint will not be made.
    * 
* - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -1060,8 +1096,9 @@ public boolean getDetached() { * * *
-   * If true, Pub/Sub provides the following guarantees for the delivery of
-   * a message with a given value of `message_id` on this subscription:
+   * Optional. If true, Pub/Sub provides the following guarantees for the
+   * delivery of a message with a given value of `message_id` on this
+   * subscription:
    *
    * * The message sent to a subscriber is guaranteed not to be resent
    * before the message's acknowledgement deadline expires.
@@ -1073,7 +1110,7 @@ public boolean getDetached() {
    * by Pub/Sub and have distinct `message_id` values.
    * 
* - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableExactlyOnceDelivery. */ @@ -2309,11 +2346,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -2324,11 +2362,12 @@ public boolean hasPushConfig() { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -2345,11 +2384,12 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -2368,11 +2408,12 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { @@ -2388,11 +2429,12 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -2414,11 +2456,12 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPushConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2434,11 +2477,12 @@ public Builder clearPushConfig() { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000004; @@ -2449,11 +2493,12 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { @@ -2468,11 +2513,12 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
-     * If push delivery is used with this subscription, this field is
+     * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig, @@ -2501,11 +2547,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -2516,11 +2564,13 @@ public boolean hasBigqueryConfig() { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -2537,11 +2587,13 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { @@ -2560,11 +2612,13 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { if (bigqueryConfigBuilder_ == null) { @@ -2580,11 +2634,13 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder bui * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { @@ -2606,11 +2662,13 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBigqueryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2626,11 +2684,13 @@ public Builder clearBigqueryConfig() { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { bitField0_ |= 0x00000008; @@ -2641,11 +2701,13 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { if (bigqueryConfigBuilder_ != null) { @@ -2660,11 +2722,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
-     * If delivery to BigQuery is used with this subscription, this field is
-     * used to configure it.
+     * Optional. If delivery to BigQuery is used with this subscription, this
+     * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.BigQueryConfig, @@ -2693,11 +2757,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -2708,11 +2774,13 @@ public boolean hasCloudStorageConfig() { * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -2729,11 +2797,13 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { @@ -2752,11 +2822,13 @@ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig val * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig( com.google.pubsub.v1.CloudStorageConfig.Builder builderForValue) { @@ -2773,11 +2845,13 @@ public Builder setCloudStorageConfig( * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { @@ -2800,11 +2874,13 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCloudStorageConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2820,11 +2896,13 @@ public Builder clearCloudStorageConfig() { * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuilder() { bitField0_ |= 0x00000010; @@ -2835,11 +2913,13 @@ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuil * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { if (cloudStorageConfigBuilder_ != null) { @@ -2854,11 +2934,13 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
-     * If delivery to Google Cloud Storage is used with this subscription, this
-     * field is used to configure it.
+     * Optional. If delivery to Google Cloud Storage is used with this
+     * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig, @@ -2882,11 +2964,11 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
-     * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
-     * the subscriber to acknowledge receipt before resending the message. In the
-     * interval after the message is delivered and before it is acknowledged, it
-     * is considered to be _outstanding_. During that time period, the
-     * message will not be redelivered (on a best-effort basis).
+     * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
+     * waits for the subscriber to acknowledge receipt before resending the
+     * message. In the interval after the message is delivered and before it is
+     * acknowledged, it is considered to be _outstanding_. During that time
+     * period, the message will not be redelivered (on a best-effort basis).
      *
      * For pull subscriptions, this value is used as the initial value for the ack
      * deadline. To override this value for a given message, call
@@ -2904,7 +2986,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
      * system will eventually redeliver the message.
      * 
* - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -2916,11 +2998,11 @@ public int getAckDeadlineSeconds() { * * *
-     * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
-     * the subscriber to acknowledge receipt before resending the message. In the
-     * interval after the message is delivered and before it is acknowledged, it
-     * is considered to be _outstanding_. During that time period, the
-     * message will not be redelivered (on a best-effort basis).
+     * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
+     * waits for the subscriber to acknowledge receipt before resending the
+     * message. In the interval after the message is delivered and before it is
+     * acknowledged, it is considered to be _outstanding_. During that time
+     * period, the message will not be redelivered (on a best-effort basis).
      *
      * For pull subscriptions, this value is used as the initial value for the ack
      * deadline. To override this value for a given message, call
@@ -2938,7 +3020,7 @@ public int getAckDeadlineSeconds() {
      * system will eventually redeliver the message.
      * 
* - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. @@ -2954,11 +3036,11 @@ public Builder setAckDeadlineSeconds(int value) { * * *
-     * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
-     * the subscriber to acknowledge receipt before resending the message. In the
-     * interval after the message is delivered and before it is acknowledged, it
-     * is considered to be _outstanding_. During that time period, the
-     * message will not be redelivered (on a best-effort basis).
+     * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
+     * waits for the subscriber to acknowledge receipt before resending the
+     * message. In the interval after the message is delivered and before it is
+     * acknowledged, it is considered to be _outstanding_. During that time
+     * period, the message will not be redelivered (on a best-effort basis).
      *
      * For pull subscriptions, this value is used as the initial value for the ack
      * deadline. To override this value for a given message, call
@@ -2976,7 +3058,7 @@ public Builder setAckDeadlineSeconds(int value) {
      * system will eventually redeliver the message.
      * 
* - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2992,7 +3074,7 @@ public Builder clearAckDeadlineSeconds() { * * *
-     * Indicates whether to retain acknowledged messages. If true, then
+     * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
      * acknowledged, until they fall out of the `message_retention_duration`
      * window. This must be true if you would like to [`Seek` to a timestamp]
@@ -3000,7 +3082,7 @@ public Builder clearAckDeadlineSeconds() {
      * the past to replay previously-acknowledged messages.
      * 
* - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -3012,7 +3094,7 @@ public boolean getRetainAckedMessages() { * * *
-     * Indicates whether to retain acknowledged messages. If true, then
+     * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
      * acknowledged, until they fall out of the `message_retention_duration`
      * window. This must be true if you would like to [`Seek` to a timestamp]
@@ -3020,7 +3102,7 @@ public boolean getRetainAckedMessages() {
      * the past to replay previously-acknowledged messages.
      * 
* - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The retainAckedMessages to set. * @return This builder for chaining. @@ -3036,7 +3118,7 @@ public Builder setRetainAckedMessages(boolean value) { * * *
-     * Indicates whether to retain acknowledged messages. If true, then
+     * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
      * acknowledged, until they fall out of the `message_retention_duration`
      * window. This must be true if you would like to [`Seek` to a timestamp]
@@ -3044,7 +3126,7 @@ public Builder setRetainAckedMessages(boolean value) {
      * the past to replay previously-acknowledged messages.
      * 
* - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3065,15 +3147,16 @@ public Builder clearRetainAckedMessages() { * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -3084,15 +3167,16 @@ public boolean hasMessageRetentionDuration() { * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -3109,15 +3193,16 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -3136,15 +3221,16 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -3161,15 +3247,16 @@ public Builder setMessageRetentionDuration( * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -3191,15 +3278,16 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3215,15 +3303,16 @@ public Builder clearMessageRetentionDuration() { * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000080; @@ -3234,15 +3323,16 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { @@ -3257,15 +3347,16 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * * *
-     * How long to retain unacknowledged messages in the subscription's backlog,
-     * from the moment a message is published.
-     * If `retain_acked_messages` is true, then this also configures the retention
-     * of acknowledged messages, and thus configures how far back in time a `Seek`
-     * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-     * minutes.
+     * Optional. How long to retain unacknowledged messages in the subscription's
+     * backlog, from the moment a message is published. If `retain_acked_messages`
+     * is true, then this also configures the retention of acknowledged messages,
+     * and thus configures how far back in time a `Seek` can be done. Defaults to
+     * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -3313,11 +3404,11 @@ public int getLabelsCount() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -3336,11 +3427,11 @@ public java.util.Map getLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -3350,11 +3441,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -3371,11 +3462,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -3398,11 +3489,11 @@ public Builder clearLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -3421,11 +3512,11 @@ public java.util.Map getMutableLabels() { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3442,11 +3533,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * See [Creating and managing
+     * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -3459,13 +3550,13 @@ public Builder putAllLabels(java.util.Map va * * *
-     * If true, messages published with the same `ordering_key` in `PubsubMessage`
-     * will be delivered to the subscribers in the order in which they
-     * are received by the Pub/Sub system. Otherwise, they may be delivered in
-     * any order.
+     * Optional. If true, messages published with the same `ordering_key` in
+     * `PubsubMessage` will be delivered to the subscribers in the order in which
+     * they are received by the Pub/Sub system. Otherwise, they may be delivered
+     * in any order.
      * 
* - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -3477,13 +3568,13 @@ public boolean getEnableMessageOrdering() { * * *
-     * If true, messages published with the same `ordering_key` in `PubsubMessage`
-     * will be delivered to the subscribers in the order in which they
-     * are received by the Pub/Sub system. Otherwise, they may be delivered in
-     * any order.
+     * Optional. If true, messages published with the same `ordering_key` in
+     * `PubsubMessage` will be delivered to the subscribers in the order in which
+     * they are received by the Pub/Sub system. Otherwise, they may be delivered
+     * in any order.
      * 
* - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The enableMessageOrdering to set. * @return This builder for chaining. @@ -3499,13 +3590,13 @@ public Builder setEnableMessageOrdering(boolean value) { * * *
-     * If true, messages published with the same `ordering_key` in `PubsubMessage`
-     * will be delivered to the subscribers in the order in which they
-     * are received by the Pub/Sub system. Otherwise, they may be delivered in
-     * any order.
+     * Optional. If true, messages published with the same `ordering_key` in
+     * `PubsubMessage` will be delivered to the subscribers in the order in which
+     * they are received by the Pub/Sub system. Otherwise, they may be delivered
+     * in any order.
      * 
* - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3526,16 +3617,18 @@ public Builder clearEnableMessageOrdering() { * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -3546,16 +3639,18 @@ public boolean hasExpirationPolicy() { * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -3572,16 +3667,18 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { @@ -3600,16 +3697,18 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy( com.google.pubsub.v1.ExpirationPolicy.Builder builderForValue) { @@ -3626,16 +3725,18 @@ public Builder setExpirationPolicy( * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { @@ -3657,16 +3758,18 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpirationPolicy() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3682,16 +3785,18 @@ public Builder clearExpirationPolicy() { * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { bitField0_ |= 0x00000400; @@ -3702,16 +3807,18 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { if (expirationPolicyBuilder_ != null) { @@ -3726,16 +3833,18 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
-     * A policy that specifies the conditions for this subscription's expiration.
-     * A subscription is considered active as long as any connected subscriber is
-     * successfully consuming messages from the subscription or is issuing
-     * operations on the subscription. If `expiration_policy` is not set, a
-     * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+     * Optional. A policy that specifies the conditions for this subscription's
+     * expiration. A subscription is considered active as long as any connected
+     * subscriber is successfully consuming messages from the subscription or is
+     * issuing operations on the subscription. If `expiration_policy` is not set,
+     * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
      * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.ExpirationPolicy, @@ -3759,14 +3868,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
-     * An expression written in the Pub/Sub [filter
+     * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
      * then only `PubsubMessage`s whose `attributes` field matches the filter are
      * delivered on this subscription. If empty, then no messages are filtered
      * out.
      * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -3785,14 +3894,14 @@ public java.lang.String getFilter() { * * *
-     * An expression written in the Pub/Sub [filter
+     * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
      * then only `PubsubMessage`s whose `attributes` field matches the filter are
      * delivered on this subscription. If empty, then no messages are filtered
      * out.
      * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -3811,14 +3920,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * An expression written in the Pub/Sub [filter
+     * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
      * then only `PubsubMessage`s whose `attributes` field matches the filter are
      * delivered on this subscription. If empty, then no messages are filtered
      * out.
      * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -3836,14 +3945,14 @@ public Builder setFilter(java.lang.String value) { * * *
-     * An expression written in the Pub/Sub [filter
+     * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
      * then only `PubsubMessage`s whose `attributes` field matches the filter are
      * delivered on this subscription. If empty, then no messages are filtered
      * out.
      * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3857,14 +3966,14 @@ public Builder clearFilter() { * * *
-     * An expression written in the Pub/Sub [filter
+     * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
      * then only `PubsubMessage`s whose `attributes` field matches the filter are
      * delivered on this subscription. If empty, then no messages are filtered
      * out.
      * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -3890,17 +3999,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -3911,17 +4022,19 @@ public boolean hasDeadLetterPolicy() { * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -3938,17 +4051,19 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { @@ -3967,17 +4082,19 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy( com.google.pubsub.v1.DeadLetterPolicy.Builder builderForValue) { @@ -3994,17 +4111,19 @@ public Builder setDeadLetterPolicy( * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { @@ -4026,17 +4145,19 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDeadLetterPolicy() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4052,17 +4173,19 @@ public Builder clearDeadLetterPolicy() { * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { bitField0_ |= 0x00001000; @@ -4073,17 +4196,19 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { if (deadLetterPolicyBuilder_ != null) { @@ -4098,17 +4223,19 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
-     * A policy that specifies the conditions for dead lettering messages in
-     * this subscription. If dead_letter_policy is not set, dead lettering
-     * is disabled.
+     * Optional. A policy that specifies the conditions for dead lettering
+     * messages in this subscription. If dead_letter_policy is not set, dead
+     * lettering is disabled.
      *
-     * The Cloud Pub/Sub service account associated with this subscriptions's
+     * The Pub/Sub service account associated with this subscriptions's
      * parent project (i.e.,
      * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.DeadLetterPolicy, @@ -4137,8 +4264,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4146,7 +4273,9 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -4157,8 +4286,8 @@ public boolean hasRetryPolicy() { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4166,7 +4295,9 @@ public boolean hasRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -4183,8 +4314,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4192,7 +4323,9 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { @@ -4211,8 +4344,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4220,7 +4353,9 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) { if (retryPolicyBuilder_ == null) { @@ -4236,8 +4371,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4245,7 +4380,9 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { @@ -4267,8 +4404,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4276,7 +4413,9 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRetryPolicy() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4292,8 +4431,8 @@ public Builder clearRetryPolicy() { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4301,7 +4440,9 @@ public Builder clearRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { bitField0_ |= 0x00002000; @@ -4312,8 +4453,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4321,7 +4462,9 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { if (retryPolicyBuilder_ != null) { @@ -4336,8 +4479,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
-     * A policy that specifies how Pub/Sub retries message delivery for this
-     * subscription.
+     * Optional. A policy that specifies how Pub/Sub retries message delivery for
+     * this subscription.
      *
      * If not set, the default retry policy is applied. This generally implies
      * that messages will be retried as soon as possible for healthy subscribers.
@@ -4345,7 +4488,9 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.RetryPolicy, @@ -4369,14 +4514,14 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
-     * Indicates whether the subscription is detached from its topic. Detached
-     * subscriptions don't receive messages from their topic and don't retain any
-     * backlog. `Pull` and `StreamingPull` requests will return
+     * Optional. Indicates whether the subscription is detached from its topic.
+     * Detached subscriptions don't receive messages from their topic and don't
+     * retain any backlog. `Pull` and `StreamingPull` requests will return
      * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
      * the endpoint will not be made.
      * 
* - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -4388,14 +4533,14 @@ public boolean getDetached() { * * *
-     * Indicates whether the subscription is detached from its topic. Detached
-     * subscriptions don't receive messages from their topic and don't retain any
-     * backlog. `Pull` and `StreamingPull` requests will return
+     * Optional. Indicates whether the subscription is detached from its topic.
+     * Detached subscriptions don't receive messages from their topic and don't
+     * retain any backlog. `Pull` and `StreamingPull` requests will return
      * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
      * the endpoint will not be made.
      * 
* - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The detached to set. * @return This builder for chaining. @@ -4411,14 +4556,14 @@ public Builder setDetached(boolean value) { * * *
-     * Indicates whether the subscription is detached from its topic. Detached
-     * subscriptions don't receive messages from their topic and don't retain any
-     * backlog. `Pull` and `StreamingPull` requests will return
+     * Optional. Indicates whether the subscription is detached from its topic.
+     * Detached subscriptions don't receive messages from their topic and don't
+     * retain any backlog. `Pull` and `StreamingPull` requests will return
      * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
      * the endpoint will not be made.
      * 
* - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -4434,8 +4579,9 @@ public Builder clearDetached() { * * *
-     * If true, Pub/Sub provides the following guarantees for the delivery of
-     * a message with a given value of `message_id` on this subscription:
+     * Optional. If true, Pub/Sub provides the following guarantees for the
+     * delivery of a message with a given value of `message_id` on this
+     * subscription:
      *
      * * The message sent to a subscriber is guaranteed not to be resent
      * before the message's acknowledgement deadline expires.
@@ -4447,7 +4593,8 @@ public Builder clearDetached() {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enableExactlyOnceDelivery. */ @@ -4459,8 +4606,9 @@ public boolean getEnableExactlyOnceDelivery() { * * *
-     * If true, Pub/Sub provides the following guarantees for the delivery of
-     * a message with a given value of `message_id` on this subscription:
+     * Optional. If true, Pub/Sub provides the following guarantees for the
+     * delivery of a message with a given value of `message_id` on this
+     * subscription:
      *
      * * The message sent to a subscriber is guaranteed not to be resent
      * before the message's acknowledgement deadline expires.
@@ -4472,7 +4620,8 @@ public boolean getEnableExactlyOnceDelivery() {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enableExactlyOnceDelivery to set. * @return This builder for chaining. @@ -4488,8 +4637,9 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * * *
-     * If true, Pub/Sub provides the following guarantees for the delivery of
-     * a message with a given value of `message_id` on this subscription:
+     * Optional. If true, Pub/Sub provides the following guarantees for the
+     * delivery of a message with a given value of `message_id` on this
+     * subscription:
      *
      * * The message sent to a subscriber is guaranteed not to be resent
      * before the message's acknowledgement deadline expires.
@@ -4501,7 +4651,8 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index c6b27d213..7aea7c12d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -95,11 +95,12 @@ public interface SubscriptionOrBuilder * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -108,11 +109,12 @@ public interface SubscriptionOrBuilder * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -121,11 +123,12 @@ public interface SubscriptionOrBuilder * * *
-   * If push delivery is used with this subscription, this field is
+   * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); @@ -133,11 +136,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -146,11 +151,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -159,11 +166,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to BigQuery is used with this subscription, this field is
-   * used to configure it.
+   * Optional. If delivery to BigQuery is used with this subscription, this
+   * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder(); @@ -171,11 +180,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -184,11 +195,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -197,11 +210,13 @@ public interface SubscriptionOrBuilder * * *
-   * If delivery to Google Cloud Storage is used with this subscription, this
-   * field is used to configure it.
+   * Optional. If delivery to Google Cloud Storage is used with this
+   * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder(); @@ -209,11 +224,11 @@ public interface SubscriptionOrBuilder * * *
-   * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
-   * the subscriber to acknowledge receipt before resending the message. In the
-   * interval after the message is delivered and before it is acknowledged, it
-   * is considered to be _outstanding_. During that time period, the
-   * message will not be redelivered (on a best-effort basis).
+   * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
+   * waits for the subscriber to acknowledge receipt before resending the
+   * message. In the interval after the message is delivered and before it is
+   * acknowledged, it is considered to be _outstanding_. During that time
+   * period, the message will not be redelivered (on a best-effort basis).
    *
    * For pull subscriptions, this value is used as the initial value for the ack
    * deadline. To override this value for a given message, call
@@ -231,7 +246,7 @@ public interface SubscriptionOrBuilder
    * system will eventually redeliver the message.
    * 
* - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -241,7 +256,7 @@ public interface SubscriptionOrBuilder * * *
-   * Indicates whether to retain acknowledged messages. If true, then
+   * Optional. Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
    * acknowledged, until they fall out of the `message_retention_duration`
    * window. This must be true if you would like to [`Seek` to a timestamp]
@@ -249,7 +264,7 @@ public interface SubscriptionOrBuilder
    * the past to replay previously-acknowledged messages.
    * 
* - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -259,15 +274,16 @@ public interface SubscriptionOrBuilder * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -276,15 +292,16 @@ public interface SubscriptionOrBuilder * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -293,15 +310,16 @@ public interface SubscriptionOrBuilder * * *
-   * How long to retain unacknowledged messages in the subscription's backlog,
-   * from the moment a message is published.
-   * If `retain_acked_messages` is true, then this also configures the retention
-   * of acknowledged messages, and thus configures how far back in time a `Seek`
-   * can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
-   * minutes.
+   * Optional. How long to retain unacknowledged messages in the subscription's
+   * backlog, from the moment a message is published. If `retain_acked_messages`
+   * is true, then this also configures the retention of acknowledged messages,
+   * and thus configures how far back in time a `Seek` can be done. Defaults to
+   * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); @@ -309,22 +327,22 @@ public interface SubscriptionOrBuilder * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -334,22 +352,22 @@ public interface SubscriptionOrBuilder * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -360,11 +378,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * See [Creating and managing
+   * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -372,13 +390,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * If true, messages published with the same `ordering_key` in `PubsubMessage`
-   * will be delivered to the subscribers in the order in which they
-   * are received by the Pub/Sub system. Otherwise, they may be delivered in
-   * any order.
+   * Optional. If true, messages published with the same `ordering_key` in
+   * `PubsubMessage` will be delivered to the subscribers in the order in which
+   * they are received by the Pub/Sub system. Otherwise, they may be delivered
+   * in any order.
    * 
* - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -388,16 +406,18 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -406,16 +426,18 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -424,16 +446,18 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for this subscription's expiration.
-   * A subscription is considered active as long as any connected subscriber is
-   * successfully consuming messages from the subscription or is issuing
-   * operations on the subscription. If `expiration_policy` is not set, a
-   * *default policy* with `ttl` of 31 days will be used. The minimum allowed
+   * Optional. A policy that specifies the conditions for this subscription's
+   * expiration. A subscription is considered active as long as any connected
+   * subscriber is successfully consuming messages from the subscription or is
+   * issuing operations on the subscription. If `expiration_policy` is not set,
+   * a *default policy* with `ttl` of 31 days will be used. The minimum allowed
    * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); @@ -441,14 +465,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * An expression written in the Pub/Sub [filter
+   * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
    * then only `PubsubMessage`s whose `attributes` field matches the filter are
    * delivered on this subscription. If empty, then no messages are filtered
    * out.
    * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -457,14 +481,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * An expression written in the Pub/Sub [filter
+   * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
    * then only `PubsubMessage`s whose `attributes` field matches the filter are
    * delivered on this subscription. If empty, then no messages are filtered
    * out.
    * 
* - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -474,17 +498,19 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -493,17 +519,19 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -512,17 +540,19 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies the conditions for dead lettering messages in
-   * this subscription. If dead_letter_policy is not set, dead lettering
-   * is disabled.
+   * Optional. A policy that specifies the conditions for dead lettering
+   * messages in this subscription. If dead_letter_policy is not set, dead
+   * lettering is disabled.
    *
-   * The Cloud Pub/Sub service account associated with this subscriptions's
+   * The Pub/Sub service account associated with this subscriptions's
    * parent project (i.e.,
    * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder(); @@ -530,8 +560,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -539,7 +569,9 @@ java.lang.String getLabelsOrDefault(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -548,8 +580,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -557,7 +589,9 @@ java.lang.String getLabelsOrDefault(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -566,8 +600,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * A policy that specifies how Pub/Sub retries message delivery for this
-   * subscription.
+   * Optional. A policy that specifies how Pub/Sub retries message delivery for
+   * this subscription.
    *
    * If not set, the default retry policy is applied. This generally implies
    * that messages will be retried as soon as possible for healthy subscribers.
@@ -575,7 +609,9 @@ java.lang.String getLabelsOrDefault(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); @@ -583,14 +619,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * Indicates whether the subscription is detached from its topic. Detached
-   * subscriptions don't receive messages from their topic and don't retain any
-   * backlog. `Pull` and `StreamingPull` requests will return
+   * Optional. Indicates whether the subscription is detached from its topic.
+   * Detached subscriptions don't receive messages from their topic and don't
+   * retain any backlog. `Pull` and `StreamingPull` requests will return
    * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    * the endpoint will not be made.
    * 
* - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -600,8 +636,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * If true, Pub/Sub provides the following guarantees for the delivery of
-   * a message with a given value of `message_id` on this subscription:
+   * Optional. If true, Pub/Sub provides the following guarantees for the
+   * delivery of a message with a given value of `message_id` on this
+   * subscription:
    *
    * * The message sent to a subscriber is guaranteed not to be resent
    * before the message's acknowledgement deadline expires.
@@ -613,7 +650,7 @@ java.lang.String getLabelsOrDefault(
    * by Pub/Sub and have distinct `message_id` values.
    * 
* - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableExactlyOnceDelivery. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 40ee471a5..760ec1fa6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Topic() { name_ = ""; kmsKeyName_ = ""; + state_ = 0; } @java.lang.Override @@ -72,6 +73,167 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } + /** + * + * + *
+   * The state of the topic.
+   * 
+ * + * Protobuf enum {@code google.pubsub.v1.Topic.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The topic does not have any persistent errors.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * Ingestion from the data source has encountered a permanent error.
+     * See the more detailed error state in the corresponding ingestion
+     * source configuration.
+     * 
+ * + * INGESTION_RESOURCE_ERROR = 2; + */ + INGESTION_RESOURCE_ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The topic does not have any persistent errors.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * Ingestion from the data source has encountered a permanent error.
+     * See the more detailed error state in the corresponding ingestion
+     * source configuration.
+     * 
+ * + * INGESTION_RESOURCE_ERROR = 2; + */ + public static final int INGESTION_RESOURCE_ERROR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INGESTION_RESOURCE_ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.Topic.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Topic.State) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -163,11 +325,11 @@ public int getLabelsCount() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -186,11 +348,11 @@ public java.util.Map getLabels() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -200,11 +362,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -221,11 +383,11 @@ public java.util.Map getLabelsMap() { * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -245,12 +407,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -262,12 +426,14 @@ public boolean hasMessageStoragePolicy() { * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -281,12 +447,14 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { @@ -303,13 +471,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
-   * The resource name of the Cloud KMS CryptoKey to be used to protect access
-   * to messages published on this topic.
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * protect access to messages published on this topic.
    *
    * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -329,13 +497,13 @@ public java.lang.String getKmsKeyName() { * * *
-   * The resource name of the Cloud KMS CryptoKey to be used to protect access
-   * to messages published on this topic.
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * protect access to messages published on this topic.
    *
    * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -358,10 +526,12 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -373,10 +543,12 @@ public boolean hasSchemaSettings() { * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -390,10 +562,12 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { @@ -408,11 +582,11 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
-   * Reserved for future use. This field is set only in responses from the
-   * server; it is ignored if it is set in any requests.
+   * Optional. Reserved for future use. This field is set only in responses from
+   * the server; it is ignored if it is set in any requests.
    * 
* - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -427,17 +601,20 @@ public boolean getSatisfiesPzs() { * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -449,17 +626,20 @@ public boolean hasMessageRetentionDuration() { * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -473,17 +653,20 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { @@ -492,6 +675,102 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
+   * Output only. An output-only field indicating the state of the topic.
+   * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. An output-only field indicating the state of the topic.
+   * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Topic.State getState() { + com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; + } + + public static final int INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER = 10; + private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + @java.lang.Override + public boolean hasIngestionDataSourceSettings() { + return ingestionDataSourceSettings_ != null; + } + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -526,6 +805,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (messageRetentionDuration_ != null) { output.writeMessage(8, getMessageRetentionDuration()); } + if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, state_); + } + if (ingestionDataSourceSettings_ != null) { + output.writeMessage(10, getIngestionDataSourceSettings()); + } getUnknownFields().writeTo(output); } @@ -566,6 +851,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); } + if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (ingestionDataSourceSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getIngestionDataSourceSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -597,6 +890,12 @@ public boolean equals(final java.lang.Object obj) { if (hasMessageRetentionDuration()) { if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; } + if (state_ != other.state_) return false; + if (hasIngestionDataSourceSettings() != other.hasIngestionDataSourceSettings()) return false; + if (hasIngestionDataSourceSettings()) { + if (!getIngestionDataSourceSettings().equals(other.getIngestionDataSourceSettings())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -630,6 +929,12 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMessageRetentionDuration().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasIngestionDataSourceSettings()) { + hash = (37 * hash) + INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getIngestionDataSourceSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -805,6 +1110,12 @@ public Builder clear() { messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } + state_ = 0; + ingestionDataSourceSettings_ = null; + if (ingestionDataSourceSettingsBuilder_ != null) { + ingestionDataSourceSettingsBuilder_.dispose(); + ingestionDataSourceSettingsBuilder_ = null; + } return this; } @@ -868,6 +1179,15 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ingestionDataSourceSettings_ = + ingestionDataSourceSettingsBuilder_ == null + ? ingestionDataSourceSettings_ + : ingestionDataSourceSettingsBuilder_.build(); + } } @java.lang.Override @@ -939,6 +1259,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasIngestionDataSourceSettings()) { + mergeIngestionDataSourceSettings(other.getIngestionDataSourceSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1015,6 +1341,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + input.readMessage( + getIngestionDataSourceSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1194,11 +1533,11 @@ public int getLabelsCount() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1217,11 +1556,11 @@ public java.util.Map getLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1231,11 +1570,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1252,11 +1591,11 @@ public java.util.Map getLabelsMap() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1279,11 +1618,11 @@ public Builder clearLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1302,11 +1641,11 @@ public java.util.Map getMutableLabels() { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1323,11 +1662,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * See [Creating and managing labels]
+     * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
      * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -1345,12 +1684,14 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -1361,12 +1702,14 @@ public boolean hasMessageStoragePolicy() { * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -1383,12 +1726,14 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { @@ -1407,12 +1752,14 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy( com.google.pubsub.v1.MessageStoragePolicy.Builder builderForValue) { @@ -1429,12 +1776,14 @@ public Builder setMessageStoragePolicy( * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { @@ -1457,12 +1806,14 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageStoragePolicy() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1478,12 +1829,14 @@ public Builder clearMessageStoragePolicy() { * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { bitField0_ |= 0x00000004; @@ -1494,12 +1847,14 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { if (messageStoragePolicyBuilder_ != null) { @@ -1514,12 +1869,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
-     * Policy constraining the set of Google Cloud Platform regions where messages
-     * published to the topic may be stored. If not present, then no constraints
-     * are in effect.
+     * Optional. Policy constraining the set of Google Cloud Platform regions
+     * where messages published to the topic may be stored. If not present, then
+     * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.MessageStoragePolicy, @@ -1543,13 +1900,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
-     * The resource name of the Cloud KMS CryptoKey to be used to protect access
-     * to messages published on this topic.
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * protect access to messages published on this topic.
      *
      * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -1568,13 +1925,13 @@ public java.lang.String getKmsKeyName() { * * *
-     * The resource name of the Cloud KMS CryptoKey to be used to protect access
-     * to messages published on this topic.
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * protect access to messages published on this topic.
      *
      * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -1593,13 +1950,13 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-     * The resource name of the Cloud KMS CryptoKey to be used to protect access
-     * to messages published on this topic.
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * protect access to messages published on this topic.
      *
      * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The kmsKeyName to set. * @return This builder for chaining. @@ -1617,13 +1974,13 @@ public Builder setKmsKeyName(java.lang.String value) { * * *
-     * The resource name of the Cloud KMS CryptoKey to be used to protect access
-     * to messages published on this topic.
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * protect access to messages published on this topic.
      *
      * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1637,13 +1994,13 @@ public Builder clearKmsKeyName() { * * *
-     * The resource name of the Cloud KMS CryptoKey to be used to protect access
-     * to messages published on this topic.
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * protect access to messages published on this topic.
      *
      * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. @@ -1669,10 +2026,12 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -1683,10 +2042,12 @@ public boolean hasSchemaSettings() { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -1703,10 +2064,12 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { @@ -1725,10 +2088,12 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { if (schemaSettingsBuilder_ == null) { @@ -1744,10 +2109,12 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { @@ -1769,10 +2136,12 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSchemaSettings() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1788,10 +2157,12 @@ public Builder clearSchemaSettings() { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { bitField0_ |= 0x00000010; @@ -1802,10 +2173,12 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { if (schemaSettingsBuilder_ != null) { @@ -1820,10 +2193,12 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
-     * Settings for validating messages published against a schema.
+     * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.SchemaSettings, @@ -1847,11 +2222,11 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
-     * Reserved for future use. This field is set only in responses from the
-     * server; it is ignored if it is set in any requests.
+     * Optional. Reserved for future use. This field is set only in responses from
+     * the server; it is ignored if it is set in any requests.
      * 
* - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -1863,11 +2238,11 @@ public boolean getSatisfiesPzs() { * * *
-     * Reserved for future use. This field is set only in responses from the
-     * server; it is ignored if it is set in any requests.
+     * Optional. Reserved for future use. This field is set only in responses from
+     * the server; it is ignored if it is set in any requests.
      * 
* - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The satisfiesPzs to set. * @return This builder for chaining. @@ -1883,11 +2258,11 @@ public Builder setSatisfiesPzs(boolean value) { * * *
-     * Reserved for future use. This field is set only in responses from the
-     * server; it is ignored if it is set in any requests.
+     * Optional. Reserved for future use. This field is set only in responses from
+     * the server; it is ignored if it is set in any requests.
      * 
* - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1908,17 +2283,20 @@ public Builder clearSatisfiesPzs() { * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -1929,17 +2307,20 @@ public boolean hasMessageRetentionDuration() { * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -1956,17 +2337,20 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -1985,17 +2369,20 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2012,17 +2399,20 @@ public Builder setMessageRetentionDuration( * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -2044,17 +2434,20 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2070,17 +2463,20 @@ public Builder clearMessageRetentionDuration() { * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000040; @@ -2091,17 +2487,20 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { @@ -2116,17 +2515,20 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * * *
-     * Indicates the minimum duration to retain a message after it is published to
-     * the topic. If this field is set, messages published to the topic in the
-     * last `message_retention_duration` are always available to subscribers. For
-     * instance, it allows any attached subscription to [seek to a
+     * Optional. Indicates the minimum duration to retain a message after it is
+     * published to the topic. If this field is set, messages published to the
+     * topic in the last `message_retention_duration` are always available to
+     * subscribers. For instance, it allows any attached subscription to [seek to
+     * a
      * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
      * that is up to `message_retention_duration` in the past. If this field is
      * not set, message retention is controlled by settings on individual
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -2145,6 +2547,316 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde return messageRetentionDurationBuilder_; } + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field indicating the state of the topic.
+     * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field indicating the state of the topic.
+     * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An output-only field indicating the state of the topic.
+     * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Topic.State getState() { + com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. An output-only field indicating the state of the topic.
+     * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.Topic.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An output-only field indicating the state of the topic.
+     * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + ingestionDataSourceSettingsBuilder_; + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + public boolean hasIngestionDataSourceSettings() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { + if (ingestionDataSourceSettingsBuilder_ == null) { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } else { + return ingestionDataSourceSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { + if (ingestionDataSourceSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestionDataSourceSettings_ = value; + } else { + ingestionDataSourceSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings.Builder builderForValue) { + if (ingestionDataSourceSettingsBuilder_ == null) { + ingestionDataSourceSettings_ = builderForValue.build(); + } else { + ingestionDataSourceSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { + if (ingestionDataSourceSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && ingestionDataSourceSettings_ != null + && ingestionDataSourceSettings_ + != com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) { + getIngestionDataSourceSettingsBuilder().mergeFrom(value); + } else { + ingestionDataSourceSettings_ = value; + } + } else { + ingestionDataSourceSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIngestionDataSourceSettings() { + bitField0_ = (bitField0_ & ~0x00000100); + ingestionDataSourceSettings_ = null; + if (ingestionDataSourceSettingsBuilder_ != null) { + ingestionDataSourceSettingsBuilder_.dispose(); + ingestionDataSourceSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.Builder + getIngestionDataSourceSettingsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { + if (ingestionDataSourceSettingsBuilder_ != null) { + return ingestionDataSourceSettingsBuilder_.getMessageOrBuilder(); + } else { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + } + /** + * + * + *
+     * Optional. Settings for managed ingestion from a data source into this
+     * topic.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + getIngestionDataSourceSettingsFieldBuilder() { + if (ingestionDataSourceSettingsBuilder_ == null) { + ingestionDataSourceSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder>( + getIngestionDataSourceSettings(), getParentForChildren(), isClean()); + ingestionDataSourceSettings_ = null; + } + return ingestionDataSourceSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 6c8637285..a644cc313 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,22 +62,22 @@ public interface TopicOrBuilder * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -87,22 +87,22 @@ public interface TopicOrBuilder * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -113,11 +113,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * See [Creating and managing labels]
+   * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
    * 
* - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -125,12 +125,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -139,12 +141,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -153,12 +157,14 @@ java.lang.String getLabelsOrDefault( * * *
-   * Policy constraining the set of Google Cloud Platform regions where messages
-   * published to the topic may be stored. If not present, then no constraints
-   * are in effect.
+   * Optional. Policy constraining the set of Google Cloud Platform regions
+   * where messages published to the topic may be stored. If not present, then
+   * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder(); @@ -166,13 +172,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * The resource name of the Cloud KMS CryptoKey to be used to protect access
-   * to messages published on this topic.
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * protect access to messages published on this topic.
    *
    * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -181,13 +187,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * The resource name of the Cloud KMS CryptoKey to be used to protect access
-   * to messages published on this topic.
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * protect access to messages published on this topic.
    *
    * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -197,10 +203,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -209,10 +217,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -221,10 +231,12 @@ java.lang.String getLabelsOrDefault( * * *
-   * Settings for validating messages published against a schema.
+   * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); @@ -232,11 +244,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Reserved for future use. This field is set only in responses from the
-   * server; it is ignored if it is set in any requests.
+   * Optional. Reserved for future use. This field is set only in responses from
+   * the server; it is ignored if it is set in any requests.
    * 
* - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -246,17 +258,20 @@ java.lang.String getLabelsOrDefault( * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -265,17 +280,20 @@ java.lang.String getLabelsOrDefault( * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -284,17 +302,92 @@ java.lang.String getLabelsOrDefault( * * *
-   * Indicates the minimum duration to retain a message after it is published to
-   * the topic. If this field is set, messages published to the topic in the
-   * last `message_retention_duration` are always available to subscribers. For
-   * instance, it allows any attached subscription to [seek to a
+   * Optional. Indicates the minimum duration to retain a message after it is
+   * published to the topic. If this field is set, messages published to the
+   * topic in the last `message_retention_duration` are always available to
+   * subscribers. For instance, it allows any attached subscription to [seek to
+   * a
    * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    * that is up to `message_retention_duration` in the past. If this field is
    * not set, message retention is controlled by settings on individual
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); + + /** + * + * + *
+   * Output only. An output-only field indicating the state of the topic.
+   * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. An output-only field indicating the state of the topic.
+   * 
+ * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.Topic.State getState(); + + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + boolean hasIngestionDataSourceSettings(); + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings(); + /** + * + * + *
+   * Optional. Settings for managed ingestion from a data source into this
+   * topic.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 03e24bcc3..19b2ed7aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 27027e92b..442f147ed 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 921ead79e..744e91a07 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index ab0f57de3..d812038a4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 49ef30ab3..415a8fa8f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index ce746a8ab..825ab31fd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 8a5c924a6..fb823741c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 30ee884fc..f4d4702b2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index b865330f1..e56de6312 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index fb7717093..b20450cb4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index e287bbd48..8a55996d7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index a7e443e7b..751ea98d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 002d5b390..99c7e1d36 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index a6d1fa45f..9879319b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 393893b10..c548b2680 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -53,8 +53,8 @@ service Publisher { option (google.api.method_signature) = "name"; } - // Updates an existing topic. Note that certain properties of a - // topic are not modifiable. + // Updates an existing topic by updating the fields specified in the update + // mask. Note that certain properties of a topic are not modifiable. rpc UpdateTopic(UpdateTopicRequest) returns (Topic) { option (google.api.http) = { patch: "/v1/{topic.name=projects/*/topics/*}" @@ -137,13 +137,21 @@ service Publisher { // A policy constraining the storage of messages published to the topic. message MessageStoragePolicy { - // A list of IDs of Google Cloud regions where messages that are published - // to the topic may be persisted in storage. Messages published by publishers - // running in non-allowed Google Cloud regions (or running outside of Google - // Cloud altogether) are routed for storage in one of the allowed regions. - // An empty list means that no regions are allowed, and is not a valid - // configuration. - repeated string allowed_persistence_regions = 1; + // Optional. A list of IDs of Google Cloud regions where messages that are + // published to the topic may be persisted in storage. Messages published by + // publishers running in non-allowed Google Cloud regions (or running outside + // of Google Cloud altogether) are routed for storage in one of the allowed + // regions. An empty list means that no regions are allowed, and is not a + // valid configuration. + repeated string allowed_persistence_regions = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, `allowed_persistence_regions` is also used to enforce + // in-transit guarantees for messages. That is, Pub/Sub will fail + // Publish operations on this topic and subscribe operations + // on any subscription attached to this topic in any region that is + // not in `allowed_persistence_regions`. + bool enforce_in_transit = 2 [(google.api.field_behavior) = OPTIONAL]; } // Settings for validating messages published against a schema. @@ -157,18 +165,83 @@ message SchemaSettings { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } ]; - // The encoding of messages validated against `schema`. - Encoding encoding = 2; + // Optional. The encoding of messages validated against `schema`. + Encoding encoding = 2 [(google.api.field_behavior) = OPTIONAL]; - // The minimum (inclusive) revision allowed for validating messages. If empty - // or not present, allow any revision to be validated against last_revision or - // any revision created before. - string first_revision_id = 3; + // Optional. The minimum (inclusive) revision allowed for validating messages. + // If empty or not present, allow any revision to be validated against + // last_revision or any revision created before. + string first_revision_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // The maximum (inclusive) revision allowed for validating messages. If empty - // or not present, allow any revision to be validated against first_revision - // or any revision created after. - string last_revision_id = 4; + // Optional. The maximum (inclusive) revision allowed for validating messages. + // If empty or not present, allow any revision to be validated against + // first_revision or any revision created after. + string last_revision_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for an ingestion data source on a topic. +message IngestionDataSourceSettings { + // Ingestion settings for Amazon Kinesis Data Streams. + message AwsKinesis { + // Possible states for managed ingestion from Amazon Kinesis Data Streams. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Kinesis. + // This can happen if: + // - The provided `aws_role_arn` does not exist or does not have the + // appropriate permissions attached. + // - The provided `aws_role_arn` is not set up properly for Identity + // Federation using `gcp_service_account`. + // - The Pub/Sub SA is not granted the + // `iam.serviceAccounts.getOpenIdToken` permission on + // `gcp_service_account`. + KINESIS_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. This can + // happen due to Pub/Sub SA has not been granted the [appropriate publish + // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) + PUBLISH_PERMISSION_DENIED = 3; + + // The Kinesis stream does not exist. + STREAM_NOT_FOUND = 4; + + // The Kinesis consumer does not exist. + CONSUMER_NOT_FOUND = 5; + } + + // Output only. An output-only field that indicates the state of the Kinesis + // ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Kinesis stream ARN to ingest data from. + string stream_arn = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Kinesis consumer ARN to used for ingestion in Enhanced + // Fan-Out mode. The consumer must be already created and ready to be used. + string consumer_arn = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. AWS role ARN to be used for Federated Identity authentication + // with Kinesis. Check the Pub/Sub docs for how to set up this role and the + // required permissions that need to be attached to it. + string aws_role_arn = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for + // the provided role). The `aws_role_arn` must be set up with + // `accounts.google.com:sub` equals to this service account number. + string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Only one source type can have settings set. + oneof source { + // Optional. Amazon Kinesis Data Streams. + AwsKinesis aws_kinesis = 1 [(google.api.field_behavior) = OPTIONAL]; + } } // A topic resource. @@ -179,6 +252,20 @@ message Topic { pattern: "_deleted-topic_" }; + // The state of the topic. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The topic does not have any persistent errors. + ACTIVE = 1; + + // Ingestion from the data source has encountered a permanent error. + // See the more detailed error state in the corresponding ingestion + // source configuration. + INGESTION_RESOURCE_ERROR = 2; + } + // Required. The name of the topic. It must have the format // `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, // and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), @@ -187,37 +274,48 @@ message Topic { // must not start with `"goog"`. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // See [Creating and managing labels] + // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). - map labels = 2; + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; - // Policy constraining the set of Google Cloud Platform regions where messages - // published to the topic may be stored. If not present, then no constraints - // are in effect. - MessageStoragePolicy message_storage_policy = 3; + // Optional. Policy constraining the set of Google Cloud Platform regions + // where messages published to the topic may be stored. If not present, then + // no constraints are in effect. + MessageStoragePolicy message_storage_policy = 3 + [(google.api.field_behavior) = OPTIONAL]; - // The resource name of the Cloud KMS CryptoKey to be used to protect access - // to messages published on this topic. + // Optional. The resource name of the Cloud KMS CryptoKey to be used to + // protect access to messages published on this topic. // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - string kms_key_name = 5; + string kms_key_name = 5 [(google.api.field_behavior) = OPTIONAL]; - // Settings for validating messages published against a schema. - SchemaSettings schema_settings = 6; + // Optional. Settings for validating messages published against a schema. + SchemaSettings schema_settings = 6 [(google.api.field_behavior) = OPTIONAL]; - // Reserved for future use. This field is set only in responses from the - // server; it is ignored if it is set in any requests. - bool satisfies_pzs = 7; + // Optional. Reserved for future use. This field is set only in responses from + // the server; it is ignored if it is set in any requests. + bool satisfies_pzs = 7 [(google.api.field_behavior) = OPTIONAL]; - // Indicates the minimum duration to retain a message after it is published to - // the topic. If this field is set, messages published to the topic in the - // last `message_retention_duration` are always available to subscribers. For - // instance, it allows any attached subscription to [seek to a + // Optional. Indicates the minimum duration to retain a message after it is + // published to the topic. If this field is set, messages published to the + // topic in the last `message_retention_duration` are always available to + // subscribers. For instance, it allows any attached subscription to [seek to + // a // timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) // that is up to `message_retention_duration` in the past. If this field is // not set, message retention is controlled by settings on individual // subscriptions. Cannot be more than 31 days or less than 10 minutes. - google.protobuf.Duration message_retention_duration = 8; + google.protobuf.Duration message_retention_duration = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. An output-only field indicating the state of the topic. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Settings for managed ingestion from a data source into this + // topic. + IngestionDataSourceSettings ingestion_data_source_settings = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A message that is published by publishers and consumed by subscribers. The @@ -229,14 +327,14 @@ message Topic { // (https://cloud.google.com/pubsub/quotas) for more information about message // limits. message PubsubMessage { - // The message data field. If this field is empty, the message must contain - // at least one attribute. - bytes data = 1; + // Optional. The message data field. If this field is empty, the message must + // contain at least one attribute. + bytes data = 1 [(google.api.field_behavior) = OPTIONAL]; - // Attributes for this message. If this field is empty, the message must - // contain non-empty data. This can be used to filter messages on the + // Optional. Attributes for this message. If this field is empty, the message + // must contain non-empty data. This can be used to filter messages on the // subscription. - map attributes = 2; + map attributes = 2 [(google.api.field_behavior) = OPTIONAL]; // ID of this message, assigned by the server when the message is published. // Guaranteed to be unique within the topic. This value may be read by a @@ -249,15 +347,15 @@ message PubsubMessage { // publisher in a `Publish` call. google.protobuf.Timestamp publish_time = 4; - // If non-empty, identifies related messages for which publish order should be - // respected. If a `Subscription` has `enable_message_ordering` set to `true`, - // messages published with the same non-empty `ordering_key` value will be - // delivered to subscribers in the order in which they are received by the - // Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` - // must specify the same `ordering_key` value. - // For more information, see [ordering + // Optional. If non-empty, identifies related messages for which publish order + // should be respected. If a `Subscription` has `enable_message_ordering` set + // to `true`, messages published with the same non-empty `ordering_key` value + // will be delivered to subscribers in the order in which they are received by + // the Pub/Sub system. All `PubsubMessage`s published in a given + // `PublishRequest` must specify the same `ordering_key` value. For more + // information, see [ordering // messages](https://cloud.google.com/pubsub/docs/ordering). - string ordering_key = 5; + string ordering_key = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetTopic method. @@ -299,10 +397,10 @@ message PublishRequest { // Response for the `Publish` method. message PublishResponse { - // The server-assigned ID of each published message, in the same order as - // the messages in the request. IDs are guaranteed to be unique within - // the topic. - repeated string message_ids = 1; + // Optional. The server-assigned ID of each published message, in the same + // order as the messages in the request. IDs are guaranteed to be unique + // within the topic. + repeated string message_ids = 1 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopics` method. @@ -316,23 +414,23 @@ message ListTopicsRequest { } ]; - // Maximum number of topics to return. - int32 page_size = 2; + // Optional. Maximum number of topics to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListTopicsResponse`; indicates that this is - // a continuation of a prior `ListTopics` call, and that the system should - // return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListTopicsResponse`; indicates + // that this is a continuation of a prior `ListTopics` call, and that the + // system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopics` method. message ListTopicsResponse { - // The resulting topics. - repeated Topic topics = 1; + // Optional. The resulting topics. + repeated Topic topics = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more topics that match the - // request; this value should be passed in a new `ListTopicsRequest`. - string next_page_token = 2; + // Optional. If not empty, indicates that there may be more topics that match + // the request; this value should be passed in a new `ListTopicsRequest`. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopicSubscriptions` method. @@ -344,26 +442,30 @@ message ListTopicSubscriptionsRequest { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // Maximum number of subscription names to return. - int32 page_size = 2; + // Optional. Maximum number of subscription names to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListTopicSubscriptionsResponse`; indicates - // that this is a continuation of a prior `ListTopicSubscriptions` call, and - // that the system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListTopicSubscriptionsResponse`; + // indicates that this is a continuation of a prior `ListTopicSubscriptions` + // call, and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopicSubscriptions` method. message ListTopicSubscriptionsResponse { - // The names of subscriptions attached to the topic specified in the request. - repeated string subscriptions = 1 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Subscription" - }]; + // Optional. The names of subscriptions attached to the topic specified in the + // request. + repeated string subscriptions = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; - // If not empty, indicates that there may be more subscriptions that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more subscriptions that + // match the request; this value should be passed in a new // `ListTopicSubscriptionsRequest` to get more subscriptions. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopicSnapshots` method. @@ -375,24 +477,24 @@ message ListTopicSnapshotsRequest { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // Maximum number of snapshot names to return. - int32 page_size = 2; + // Optional. Maximum number of snapshot names to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListTopicSnapshotsResponse`; indicates - // that this is a continuation of a prior `ListTopicSnapshots` call, and - // that the system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListTopicSnapshotsResponse`; + // indicates that this is a continuation of a prior `ListTopicSnapshots` call, + // and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopicSnapshots` method. message ListTopicSnapshotsResponse { - // The names of the snapshots that match the request. - repeated string snapshots = 1; + // Optional. The names of the snapshots that match the request. + repeated string snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more snapshots that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more snapshots that + // match the request; this value should be passed in a new // `ListTopicSnapshotsRequest` to get more snapshots. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `DeleteTopic` method. @@ -458,8 +560,9 @@ service Subscriber { option (google.api.method_signature) = "subscription"; } - // Updates an existing subscription. Note that certain properties of a - // subscription, such as its topic, are not modifiable. + // Updates an existing subscription by updating the fields specified in the + // update mask. Note that certain properties of a subscription, such as its + // topic, are not modifiable. rpc UpdateSubscription(UpdateSubscriptionRequest) returns (Subscription) { option (google.api.http) = { patch: "/v1/{subscription.name=projects/*/subscriptions/*}" @@ -604,7 +707,8 @@ service Subscriber { option (google.api.method_signature) = "name,subscription"; } - // Updates an existing snapshot. Snapshots are used in + // Updates an existing snapshot by updating the fields specified in the update + // mask. Snapshots are used in // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, // which allow you to manage message acknowledgments in bulk. That is, you can // set the acknowledgment state of messages in an existing subscription to the @@ -687,23 +791,24 @@ message Subscription { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // If push delivery is used with this subscription, this field is - // used to configure it. - PushConfig push_config = 4; - - // If delivery to BigQuery is used with this subscription, this field is + // Optional. If push delivery is used with this subscription, this field is // used to configure it. - BigQueryConfig bigquery_config = 18; + PushConfig push_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // If delivery to Google Cloud Storage is used with this subscription, this + // Optional. If delivery to BigQuery is used with this subscription, this // field is used to configure it. - CloudStorageConfig cloud_storage_config = 22; - - // The approximate amount of time (on a best-effort basis) Pub/Sub waits for - // the subscriber to acknowledge receipt before resending the message. In the - // interval after the message is delivered and before it is acknowledged, it - // is considered to be _outstanding_. During that time period, the - // message will not be redelivered (on a best-effort basis). + BigQueryConfig bigquery_config = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If delivery to Google Cloud Storage is used with this + // subscription, this field is used to configure it. + CloudStorageConfig cloud_storage_config = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The approximate amount of time (on a best-effort basis) Pub/Sub + // waits for the subscriber to acknowledge receipt before resending the + // message. In the interval after the message is delivered and before it is + // acknowledged, it is considered to be _outstanding_. During that time + // period, the message will not be redelivered (on a best-effort basis). // // For pull subscriptions, this value is used as the initial value for the ack // deadline. To override this value for a given message, call @@ -719,78 +824,81 @@ message Subscription { // // If the subscriber never acknowledges the message, the Pub/Sub // system will eventually redeliver the message. - int32 ack_deadline_seconds = 5; + int32 ack_deadline_seconds = 5 [(google.api.field_behavior) = OPTIONAL]; - // Indicates whether to retain acknowledged messages. If true, then + // Optional. Indicates whether to retain acknowledged messages. If true, then // messages are not expunged from the subscription's backlog, even if they are // acknowledged, until they fall out of the `message_retention_duration` // window. This must be true if you would like to [`Seek` to a timestamp] // (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in // the past to replay previously-acknowledged messages. - bool retain_acked_messages = 7; + bool retain_acked_messages = 7 [(google.api.field_behavior) = OPTIONAL]; - // How long to retain unacknowledged messages in the subscription's backlog, - // from the moment a message is published. - // If `retain_acked_messages` is true, then this also configures the retention - // of acknowledged messages, and thus configures how far back in time a `Seek` - // can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 - // minutes. - google.protobuf.Duration message_retention_duration = 8; + // Optional. How long to retain unacknowledged messages in the subscription's + // backlog, from the moment a message is published. If `retain_acked_messages` + // is true, then this also configures the retention of acknowledged messages, + // and thus configures how far back in time a `Seek` can be done. Defaults to + // 7 days. Cannot be more than 7 days or less than 10 minutes. + google.protobuf.Duration message_retention_duration = 8 + [(google.api.field_behavior) = OPTIONAL]; - // See [Creating and managing + // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). - map labels = 9; - - // If true, messages published with the same `ordering_key` in `PubsubMessage` - // will be delivered to the subscribers in the order in which they - // are received by the Pub/Sub system. Otherwise, they may be delivered in - // any order. - bool enable_message_ordering = 10; - - // A policy that specifies the conditions for this subscription's expiration. - // A subscription is considered active as long as any connected subscriber is - // successfully consuming messages from the subscription or is issuing - // operations on the subscription. If `expiration_policy` is not set, a - // *default policy* with `ttl` of 31 days will be used. The minimum allowed + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, messages published with the same `ordering_key` in + // `PubsubMessage` will be delivered to the subscribers in the order in which + // they are received by the Pub/Sub system. Otherwise, they may be delivered + // in any order. + bool enable_message_ordering = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A policy that specifies the conditions for this subscription's + // expiration. A subscription is considered active as long as any connected + // subscriber is successfully consuming messages from the subscription or is + // issuing operations on the subscription. If `expiration_policy` is not set, + // a *default policy* with `ttl` of 31 days will be used. The minimum allowed // value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, // but `expiration_policy.ttl` is not set, the subscription never expires. - ExpirationPolicy expiration_policy = 11; + ExpirationPolicy expiration_policy = 11 + [(google.api.field_behavior) = OPTIONAL]; - // An expression written in the Pub/Sub [filter + // Optional. An expression written in the Pub/Sub [filter // language](https://cloud.google.com/pubsub/docs/filtering). If non-empty, // then only `PubsubMessage`s whose `attributes` field matches the filter are // delivered on this subscription. If empty, then no messages are filtered // out. - string filter = 12; + string filter = 12 [(google.api.field_behavior) = OPTIONAL]; - // A policy that specifies the conditions for dead lettering messages in - // this subscription. If dead_letter_policy is not set, dead lettering - // is disabled. + // Optional. A policy that specifies the conditions for dead lettering + // messages in this subscription. If dead_letter_policy is not set, dead + // lettering is disabled. // - // The Cloud Pub/Sub service account associated with this subscriptions's + // The Pub/Sub service account associated with this subscriptions's // parent project (i.e., // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have // permission to Acknowledge() messages on this subscription. - DeadLetterPolicy dead_letter_policy = 13; + DeadLetterPolicy dead_letter_policy = 13 + [(google.api.field_behavior) = OPTIONAL]; - // A policy that specifies how Pub/Sub retries message delivery for this - // subscription. + // Optional. A policy that specifies how Pub/Sub retries message delivery for + // this subscription. // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. // RetryPolicy will be triggered on NACKs or acknowledgement deadline // exceeded events for a given message. - RetryPolicy retry_policy = 14; + RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL]; - // Indicates whether the subscription is detached from its topic. Detached - // subscriptions don't receive messages from their topic and don't retain any - // backlog. `Pull` and `StreamingPull` requests will return + // Optional. Indicates whether the subscription is detached from its topic. + // Detached subscriptions don't receive messages from their topic and don't + // retain any backlog. `Pull` and `StreamingPull` requests will return // FAILED_PRECONDITION. If the subscription is a push subscription, pushes to // the endpoint will not be made. - bool detached = 15; + bool detached = 15 [(google.api.field_behavior) = OPTIONAL]; - // If true, Pub/Sub provides the following guarantees for the delivery of - // a message with a given value of `message_id` on this subscription: + // Optional. If true, Pub/Sub provides the following guarantees for the + // delivery of a message with a given value of `message_id` on this + // subscription: // // * The message sent to a subscriber is guaranteed not to be resent // before the message's acknowledgement deadline expires. @@ -800,7 +908,8 @@ message Subscription { // when `enable_exactly_once_delivery` is true if the message was published // multiple times by a publisher client. These copies are considered distinct // by Pub/Sub and have distinct `message_id` values. - bool enable_exactly_once_delivery = 16; + bool enable_exactly_once_delivery = 16 + [(google.api.field_behavior) = OPTIONAL]; // Output only. Indicates the minimum duration for which a message is retained // after it is published to the subscription's topic. If this field is set, @@ -816,7 +925,7 @@ message Subscription { State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A policy that specifies how Cloud Pub/Sub retries message delivery. +// A policy that specifies how Pub/Sub retries message delivery. // // Retry delay will be exponential based on provided minimum and maximum // backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. @@ -828,13 +937,16 @@ message Subscription { // between consecutive deliveries may not match the configuration. That is, // delay can be more or less than configured backoff. message RetryPolicy { - // The minimum delay between consecutive deliveries of a given message. - // Value should be between 0 and 600 seconds. Defaults to 10 seconds. - google.protobuf.Duration minimum_backoff = 1; - - // The maximum delay between consecutive deliveries of a given message. - // Value should be between 0 and 600 seconds. Defaults to 600 seconds. - google.protobuf.Duration maximum_backoff = 2; + // Optional. The minimum delay between consecutive deliveries of a given + // message. Value should be between 0 and 600 seconds. Defaults to 10 seconds. + google.protobuf.Duration minimum_backoff = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum delay between consecutive deliveries of a given + // message. Value should be between 0 and 600 seconds. Defaults to 600 + // seconds. + google.protobuf.Duration maximum_backoff = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Dead lettering is done on a best effort basis. The same message might be @@ -843,19 +955,19 @@ message RetryPolicy { // If validation on any of the fields fails at subscription creation/updation, // the create/update subscription request will fail. message DeadLetterPolicy { - // The name of the topic to which dead letter messages should be published. - // Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service - // account associated with the enclosing subscription's parent project (i.e., - // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have - // permission to Publish() to this topic. + // Optional. The name of the topic to which dead letter messages should be + // published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub + // service account associated with the enclosing subscription's parent project + // (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must + // have permission to Publish() to this topic. // // The operation will fail if the topic does not exist. // Users should ensure that there is a subscription attached to this topic // since messages published to a topic with no subscriptions are lost. - string dead_letter_topic = 1; + string dead_letter_topic = 1 [(google.api.field_behavior) = OPTIONAL]; - // The maximum number of delivery attempts for any message. The value must be - // between 5 and 100. + // Optional. The maximum number of delivery attempts for any message. The + // value must be between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of // NACKs and number of times the acknowledgement deadline has been exceeded @@ -867,19 +979,19 @@ message DeadLetterPolicy { // This field will be honored on a best effort basis. // // If this parameter is 0, a default value of 5 is used. - int32 max_delivery_attempts = 2; + int32 max_delivery_attempts = 2 [(google.api.field_behavior) = OPTIONAL]; } // A policy that specifies the conditions for resource expiration (i.e., // automatic resource deletion). message ExpirationPolicy { - // Specifies the "time-to-live" duration for an associated resource. The - // resource expires if it is not active for a period of `ttl`. The definition - // of "activity" depends on the type of the associated resource. The minimum - // and maximum allowed values for `ttl` depend on the type of the associated - // resource, as well. If `ttl` is not set, the associated resource never - // expires. - google.protobuf.Duration ttl = 1; + // Optional. Specifies the "time-to-live" duration for an associated resource. + // The resource expires if it is not active for a period of `ttl`. The + // definition of "activity" depends on the type of the associated resource. + // The minimum and maximum allowed values for `ttl` depend on the type of the + // associated resource, as well. If `ttl` is not set, the associated resource + // never expires. + google.protobuf.Duration ttl = 1 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a push delivery endpoint. @@ -888,20 +1000,21 @@ message PushConfig { // [OpenID Connect // token](https://developers.google.com/identity/protocols/OpenIDConnect). message OidcToken { - // [Service account + // Optional. [Service account // email](https://cloud.google.com/iam/docs/service-accounts) // used for generating the OIDC token. For more information // on setting up authentication, see // [Push subscriptions](https://cloud.google.com/pubsub/docs/push). - string service_account_email = 1; - - // Audience to be used when generating OIDC token. The audience claim - // identifies the recipients that the JWT is intended for. The audience - // value is a single case-sensitive string. Having multiple values (array) - // for the audience field is not supported. More info about the OIDC JWT - // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 - // Note: if not specified, the Push endpoint URL will be used. - string audience = 2; + string service_account_email = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Audience to be used when generating OIDC token. The audience + // claim identifies the recipients that the JWT is intended for. The + // audience value is a single case-sensitive string. Having multiple values + // (array) for the audience field is not supported. More info about the OIDC + // JWT token audience here: + // https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, + // the Push endpoint URL will be used. + string audience = 2 [(google.api.field_behavior) = OPTIONAL]; } // The payload to the push endpoint is in the form of the JSON representation @@ -911,18 +1024,18 @@ message PushConfig { // Sets the `data` field as the HTTP body for delivery. message NoWrapper { - // When true, writes the Pub/Sub message metadata to + // Optional. When true, writes the Pub/Sub message metadata to // `x-goog-pubsub-:` headers of the HTTP request. Writes the // Pub/Sub message attributes to `:` headers of the HTTP request. - bool write_metadata = 1; + bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; } - // A URL locating the endpoint to which messages should be pushed. + // Optional. A URL locating the endpoint to which messages should be pushed. // For example, a Webhook endpoint might use `https://example.com/push`. - string push_endpoint = 1; + string push_endpoint = 1 [(google.api.field_behavior) = OPTIONAL]; - // Endpoint configuration attributes that can be used to control different - // aspects of the message delivery. + // Optional. Endpoint configuration attributes that can be used to control + // different aspects of the message delivery. // // The only currently supported attribute is `x-goog-version`, which you can // use to change the format of the pushed message. This attribute @@ -942,29 +1055,30 @@ message PushConfig { // // For example: // `attributes { "x-goog-version": "v1" }` - map attributes = 2; + map attributes = 2 [(google.api.field_behavior) = OPTIONAL]; // An authentication method used by push endpoints to verify the source of // push requests. This can be used with push endpoints that are private by - // default to allow requests only from the Cloud Pub/Sub system, for example. + // default to allow requests only from the Pub/Sub system, for example. // This field is optional and should be set only by users interested in // authenticated push. oneof authentication_method { - // If specified, Pub/Sub will generate and attach an OIDC JWT token as an - // `Authorization` header in the HTTP request for every pushed message. - OidcToken oidc_token = 3; + // Optional. If specified, Pub/Sub will generate and attach an OIDC JWT + // token as an `Authorization` header in the HTTP request for every pushed + // message. + OidcToken oidc_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // The format of the delivered message to the push endpoint is defined by // the chosen wrapper. When unset, `PubsubWrapper` is used. oneof wrapper { - // When set, the payload to the push endpoint is in the form of the JSON - // representation of a PubsubMessage + // Optional. When set, the payload to the push endpoint is in the form of + // the JSON representation of a PubsubMessage // (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage). - PubsubWrapper pubsub_wrapper = 4; + PubsubWrapper pubsub_wrapper = 4 [(google.api.field_behavior) = OPTIONAL]; - // When set, the payload to the push endpoint is not wrapped. - NoWrapper no_wrapper = 5; + // Optional. When set, the payload to the push endpoint is not wrapped. + NoWrapper no_wrapper = 5 [(google.api.field_behavior) = OPTIONAL]; } } @@ -991,30 +1105,34 @@ message BigQueryConfig { // Cannot write to the BigQuery table due to a schema mismatch. SCHEMA_MISMATCH = 4; + + // Cannot write to the destination because enforce_in_transit is set to true + // and the destination locations are not in the allowed regions. + IN_TRANSIT_LOCATION_RESTRICTION = 5; } - // The name of the table to which to write data, of the form + // Optional. The name of the table to which to write data, of the form // {projectId}.{datasetId}.{tableId} - string table = 1; + string table = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. When true, use the topic's schema as the columns to write to in // BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be // enabled at the same time. bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL]; - // When true, write the subscription name, message_id, publish_time, + // Optional. When true, write the subscription name, message_id, publish_time, // attributes, and ordering_key to additional columns in the table. The // subscription name, message_id, and publish_time fields are put in their own // columns while all other message properties (other than data) are written to // a JSON object in the attributes column. - bool write_metadata = 3; + bool write_metadata = 3 [(google.api.field_behavior) = OPTIONAL]; - // When true and use_topic_schema is true, any fields that are a part of the - // topic schema that are not part of the BigQuery table schema are dropped - // when writing to BigQuery. Otherwise, the schemas must be kept in sync and - // any messages with extra fields are not written and remain in the + // Optional. When true and use_topic_schema is true, any fields that are a + // part of the topic schema that are not part of the BigQuery table schema are + // dropped when writing to BigQuery. Otherwise, the schemas must be kept in + // sync and any messages with extra fields are not written and remain in the // subscription's backlog. - bool drop_unknown_fields = 4; + bool drop_unknown_fields = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. An output-only field that indicates whether or not the // subscription can receive messages. @@ -1036,13 +1154,13 @@ message CloudStorageConfig { // Configuration for writing message data in Avro format. // Message payloads and metadata will be written to files as an Avro binary. message AvroConfig { - // When true, write the subscription name, message_id, publish_time, - // attributes, and ordering_key as additional fields in the output. The - // subscription name, message_id, and publish_time fields are put in their - // own fields while all other message properties other than data (for - // example, an ordering_key, if present) are added as entries in the - // attributes map. - bool write_metadata = 1; + // Optional. When true, write the subscription name, message_id, + // publish_time, attributes, and ordering_key as additional fields in the + // output. The subscription name, message_id, and publish_time fields are + // put in their own fields while all other message properties other than + // data (for example, an ordering_key, if present) are added as entries in + // the attributes map. + bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; } // Possible states for a Cloud Storage subscription. @@ -1059,6 +1177,10 @@ message CloudStorageConfig { // Cannot write to the Cloud Storage bucket because it does not exist. NOT_FOUND = 3; + + // Cannot write to the destination because enforce_in_transit is set to true + // and the destination locations are not in the allowed regions. + IN_TRANSIT_LOCATION_RESTRICTION = 4; } // Required. User-provided name for the Cloud Storage bucket. @@ -1067,33 +1189,36 @@ message CloudStorageConfig { // requirements] (https://cloud.google.com/storage/docs/buckets#naming). string bucket = 1 [(google.api.field_behavior) = REQUIRED]; - // User-provided prefix for Cloud Storage filename. See the [object naming - // requirements](https://cloud.google.com/storage/docs/objects#naming). - string filename_prefix = 2; + // Optional. User-provided prefix for Cloud Storage filename. See the [object + // naming requirements](https://cloud.google.com/storage/docs/objects#naming). + string filename_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; - // User-provided suffix for Cloud Storage filename. See the [object naming - // requirements](https://cloud.google.com/storage/docs/objects#naming). Must - // not end in "/". - string filename_suffix = 3; + // Optional. User-provided suffix for Cloud Storage filename. See the [object + // naming requirements](https://cloud.google.com/storage/docs/objects#naming). + // Must not end in "/". + string filename_suffix = 3 [(google.api.field_behavior) = OPTIONAL]; // Defaults to text format. oneof output_format { - // If set, message data will be written to Cloud Storage in text format. - TextConfig text_config = 4; + // Optional. If set, message data will be written to Cloud Storage in text + // format. + TextConfig text_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // If set, message data will be written to Cloud Storage in Avro format. - AvroConfig avro_config = 5; + // Optional. If set, message data will be written to Cloud Storage in Avro + // format. + AvroConfig avro_config = 5 [(google.api.field_behavior) = OPTIONAL]; } - // The maximum duration that can elapse before a new Cloud Storage file is - // created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed - // the subscription's acknowledgement deadline. - google.protobuf.Duration max_duration = 6; + // Optional. The maximum duration that can elapse before a new Cloud Storage + // file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not + // exceed the subscription's acknowledgement deadline. + google.protobuf.Duration max_duration = 6 + [(google.api.field_behavior) = OPTIONAL]; - // The maximum bytes that can be written to a Cloud Storage file before a new - // file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded - // in cases where messages are larger than the limit. - int64 max_bytes = 7; + // Optional. The maximum bytes that can be written to a Cloud Storage file + // before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may + // be exceeded in cases where messages are larger than the limit. + int64 max_bytes = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. An output-only field that indicates whether or not the // subscription can receive messages. @@ -1102,14 +1227,14 @@ message CloudStorageConfig { // A message and its corresponding acknowledgment ID. message ReceivedMessage { - // This ID can be used to acknowledge the received message. - string ack_id = 1; + // Optional. This ID can be used to acknowledge the received message. + string ack_id = 1 [(google.api.field_behavior) = OPTIONAL]; - // The message. - PubsubMessage message = 2; + // Optional. The message. + PubsubMessage message = 2 [(google.api.field_behavior) = OPTIONAL]; - // The approximate number of times that Cloud Pub/Sub has attempted to deliver - // the associated message to a subscriber. + // Optional. The approximate number of times that Pub/Sub has attempted to + // deliver the associated message to a subscriber. // // More precisely, this is 1 + (number of NACKs) + // (number of ack_deadline exceeds) for this message. @@ -1124,7 +1249,7 @@ message ReceivedMessage { // value of 1. The value is calculated at best effort and is approximate. // // If a DeadLetterPolicy is not set on the subscription, this will be 0. - int32 delivery_attempt = 3; + int32 delivery_attempt = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetSubscription method. @@ -1161,24 +1286,25 @@ message ListSubscriptionsRequest { } ]; - // Maximum number of subscriptions to return. - int32 page_size = 2; + // Optional. Maximum number of subscriptions to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListSubscriptionsResponse`; indicates that - // this is a continuation of a prior `ListSubscriptions` call, and that the - // system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListSubscriptionsResponse`; + // indicates that this is a continuation of a prior `ListSubscriptions` call, + // and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListSubscriptions` method. message ListSubscriptionsResponse { - // The subscriptions that match the request. - repeated Subscription subscriptions = 1; + // Optional. The subscriptions that match the request. + repeated Subscription subscriptions = 1 + [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more subscriptions that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more subscriptions that + // match the request; this value should be passed in a new // `ListSubscriptionsRequest` to get more subscriptions. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the DeleteSubscription method. @@ -1242,12 +1368,13 @@ message PullRequest { // Response for the `Pull` method. message PullResponse { - // Received Pub/Sub messages. The list will be empty if there are no more - // messages available in the backlog, or if no messages could be returned + // Optional. Received Pub/Sub messages. The list will be empty if there are no + // more messages available in the backlog, or if no messages could be returned // before the request timeout. For JSON, the response can be entirely // empty. The Pub/Sub system may return fewer than the `maxMessages` requested // even if there are more messages available in the backlog. - repeated ReceivedMessage received_messages = 1; + repeated ReceivedMessage received_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; } // Request for the ModifyAckDeadline method. @@ -1271,7 +1398,8 @@ message ModifyAckDeadlineRequest { // delivery to another subscriber client. This typically results in an // increase in the rate of message redeliveries (that is, duplicates). // The minimum deadline you can specify is 0 seconds. - // The maximum deadline you can specify is 600 seconds (10 minutes). + // The maximum deadline you can specify in a single request is 600 seconds + // (10 minutes). int32 ack_deadline_seconds = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1307,14 +1435,15 @@ message StreamingPullRequest { } ]; - // List of acknowledgement IDs for acknowledging previously received messages - // (received on this stream or a different stream). If an ack ID has expired, - // the corresponding message may be redelivered later. Acknowledging a message - // more than once will not result in an error. If the acknowledgement ID is - // malformed, the stream will be aborted with status `INVALID_ARGUMENT`. - repeated string ack_ids = 2; + // Optional. List of acknowledgement IDs for acknowledging previously received + // messages (received on this stream or a different stream). If an ack ID has + // expired, the corresponding message may be redelivered later. Acknowledging + // a message more than once will not result in an error. If the + // acknowledgement ID is malformed, the stream will be aborted with status + // `INVALID_ARGUMENT`. + repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // The list of new ack deadlines for the IDs listed in + // Optional. The list of new ack deadlines for the IDs listed in // `modify_deadline_ack_ids`. The size of this list must be the same as the // size of `modify_deadline_ack_ids`. If it differs the stream will be aborted // with `INVALID_ARGUMENT`. Each element in this list is applied to the @@ -1325,14 +1454,16 @@ message StreamingPullRequest { // the message is immediately made available for another streaming or // non-streaming pull request. If the value is < 0 (an error), the stream will // be aborted with status `INVALID_ARGUMENT`. - repeated int32 modify_deadline_seconds = 3; + repeated int32 modify_deadline_seconds = 3 + [(google.api.field_behavior) = OPTIONAL]; - // List of acknowledgement IDs whose deadline will be modified based on the - // corresponding element in `modify_deadline_seconds`. This field can be used - // to indicate that more time is needed to process a message by the + // Optional. List of acknowledgement IDs whose deadline will be modified based + // on the corresponding element in `modify_deadline_seconds`. This field can + // be used to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the // processing was interrupted. - repeated string modify_deadline_ack_ids = 4; + repeated string modify_deadline_ack_ids = 4 + [(google.api.field_behavior) = OPTIONAL]; // Required. The ack deadline to use for the stream. This must be provided in // the first request on the stream, but it can also be updated on subsequent @@ -1341,16 +1472,16 @@ message StreamingPullRequest { int32 stream_ack_deadline_seconds = 5 [(google.api.field_behavior) = REQUIRED]; - // A unique identifier that is used to distinguish client instances from each - // other. Only needs to be provided on the initial request. When a stream - // disconnects and reconnects for the same stream, the client_id should be set - // to the same value so that state associated with the old stream can be - // transferred to the new stream. The same client_id should not be used for + // Optional. A unique identifier that is used to distinguish client instances + // from each other. Only needs to be provided on the initial request. When a + // stream disconnects and reconnects for the same stream, the client_id should + // be set to the same value so that state associated with the old stream can + // be transferred to the new stream. The same client_id should not be used for // different client instances. - string client_id = 6; + string client_id = 6 [(google.api.field_behavior) = OPTIONAL]; - // Flow control settings for the maximum number of outstanding messages. When - // there are `max_outstanding_messages` or more currently sent to the + // Optional. Flow control settings for the maximum number of outstanding + // messages. When there are `max_outstanding_messages` currently sent to the // streaming pull client that have not yet been acked or nacked, the server // stops sending more messages. The sending of messages resumes once the // number of outstanding messages is less than this value. If the value is @@ -1358,18 +1489,18 @@ message StreamingPullRequest { // property can only be set on the initial StreamingPullRequest. If it is set // on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. - int64 max_outstanding_messages = 7; - - // Flow control settings for the maximum number of outstanding bytes. When - // there are `max_outstanding_bytes` or more worth of messages currently sent - // to the streaming pull client that have not yet been acked or nacked, the - // server will stop sending more messages. The sending of messages resumes - // once the number of outstanding bytes is less than this value. If the value - // is <= 0, there is no limit to the number of outstanding bytes. This - // property can only be set on the initial StreamingPullRequest. If it is set - // on a subsequent request, the stream will be aborted with status + int64 max_outstanding_messages = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flow control settings for the maximum number of outstanding + // bytes. When there are `max_outstanding_bytes` or more worth of messages + // currently sent to the streaming pull client that have not yet been acked or + // nacked, the server will stop sending more messages. The sending of messages + // resumes once the number of outstanding bytes is less than this value. If + // the value is <= 0, there is no limit to the number of outstanding bytes. + // This property can only be set on the initial StreamingPullRequest. If it is + // set on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. - int64 max_outstanding_bytes = 8; + int64 max_outstanding_bytes = 8 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `StreamingPull` method. This response is used to stream @@ -1378,56 +1509,69 @@ message StreamingPullResponse { // Acknowledgement IDs sent in one or more previous requests to acknowledge a // previously received message. message AcknowledgeConfirmation { - // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1; - - // List of acknowledgement IDs that were malformed or whose acknowledgement - // deadline has expired. - repeated string invalid_ack_ids = 2; - - // List of acknowledgement IDs that were out of order. - repeated string unordered_ack_ids = 3; - - // List of acknowledgement IDs that failed processing with temporary issues. - repeated string temporary_failed_ack_ids = 4; + // Optional. Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were malformed or whose + // acknowledgement deadline has expired. + repeated string invalid_ack_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were out of order. + repeated string unordered_ack_ids = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that failed processing with + // temporary issues. + repeated string temporary_failed_ack_ids = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Acknowledgement IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { - // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1; - - // List of acknowledgement IDs that were malformed or whose acknowledgement - // deadline has expired. - repeated string invalid_ack_ids = 2; - - // List of acknowledgement IDs that failed processing with temporary issues. - repeated string temporary_failed_ack_ids = 3; + // Optional. Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were malformed or whose + // acknowledgement deadline has expired. + repeated string invalid_ack_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that failed processing with + // temporary issues. + repeated string temporary_failed_ack_ids = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Subscription properties sent as part of the response. message SubscriptionProperties { - // True iff exactly once delivery is enabled for this subscription. - bool exactly_once_delivery_enabled = 1; + // Optional. True iff exactly once delivery is enabled for this + // subscription. + bool exactly_once_delivery_enabled = 1 + [(google.api.field_behavior) = OPTIONAL]; - // True iff message ordering is enabled for this subscription. - bool message_ordering_enabled = 2; + // Optional. True iff message ordering is enabled for this subscription. + bool message_ordering_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Received Pub/Sub messages. This will not be empty. - repeated ReceivedMessage received_messages = 1; + // Optional. Received Pub/Sub messages. This will not be empty. + repeated ReceivedMessage received_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; - // This field will only be set if `enable_exactly_once_delivery` is set to - // `true`. - AcknowledgeConfirmation acknowledge_confirmation = 5; + // Optional. This field will only be set if `enable_exactly_once_delivery` is + // set to `true`. + AcknowledgeConfirmation acknowledge_confirmation = 5 + [(google.api.field_behavior) = OPTIONAL]; - // This field will only be set if `enable_exactly_once_delivery` is set to - // `true`. - ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + // Optional. This field will only be set if `enable_exactly_once_delivery` is + // set to `true`. + ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Properties associated with this subscription. - SubscriptionProperties subscription_properties = 4; + // Optional. Properties associated with this subscription. + SubscriptionProperties subscription_properties = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Request for the `CreateSnapshot` method. @@ -1459,9 +1603,9 @@ message CreateSnapshotRequest { } ]; - // See [Creating and managing + // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). - map labels = 3; + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for the UpdateSnapshot method. @@ -1486,15 +1630,17 @@ message Snapshot { pattern: "projects/{project}/snapshots/{snapshot}" }; - // The name of the snapshot. - string name = 1; + // Optional. The name of the snapshot. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // The name of the topic from which this snapshot is retaining messages. + // Optional. The name of the topic from which this snapshot is retaining + // messages. string topic = 2 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // The snapshot is guaranteed to exist up until this time. + // Optional. The snapshot is guaranteed to exist up until this time. // A newly-created snapshot expires no later than 7 days from the time of its // creation. Its exact lifetime is determined at creation by the existing // backlog in the source subscription. Specifically, the lifetime of the @@ -1504,11 +1650,12 @@ message Snapshot { // will always capture this 3-day-old backlog as long as the snapshot // exists -- will expire in 4 days. The service will refuse to create a // snapshot that would expire in less than 1 hour after creation. - google.protobuf.Timestamp expire_time = 3; + google.protobuf.Timestamp expire_time = 3 + [(google.api.field_behavior) = OPTIONAL]; - // See [Creating and managing labels] + // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). - map labels = 4; + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetSnapshot method. @@ -1532,23 +1679,24 @@ message ListSnapshotsRequest { } ]; - // Maximum number of snapshots to return. - int32 page_size = 2; + // Optional. Maximum number of snapshots to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListSnapshotsResponse`; indicates that this - // is a continuation of a prior `ListSnapshots` call, and that the system - // should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListSnapshotsResponse`; indicates + // that this is a continuation of a prior `ListSnapshots` call, and that the + // system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListSnapshots` method. message ListSnapshotsResponse { - // The resulting snapshots. - repeated Snapshot snapshots = 1; + // Optional. The resulting snapshots. + repeated Snapshot snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more snapshot that match the - // request; this value should be passed in a new `ListSnapshotsRequest`. - string next_page_token = 2; + // Optional. If not empty, indicates that there may be more snapshot that + // match the request; this value should be passed in a new + // `ListSnapshotsRequest`. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `DeleteSnapshot` method. @@ -1572,7 +1720,7 @@ message SeekRequest { ]; oneof target { - // The time to seek to. + // Optional. The time to seek to. // Messages retained in the subscription that were published before this // time are marked as acknowledged, and messages retained in the // subscription that were published after this time are marked as @@ -1583,14 +1731,17 @@ message SeekRequest { // window (or to a point before the system's notion of the subscription // creation time), only retained messages will be marked as unacknowledged, // and already-expunged messages will not be restored. - google.protobuf.Timestamp time = 2; - - // The snapshot to seek to. The snapshot's topic must be the same as that of - // the provided subscription. - // Format is `projects/{project}/snapshots/{snap}`. - string snapshot = 3 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Snapshot" - }]; + google.protobuf.Timestamp time = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The snapshot to seek to. The snapshot's topic must be the same + // as that of the provided subscription. Format is + // `projects/{project}/snapshots/{snap}`. + string snapshot = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + } + ]; } } diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 32aa0d75c..bd17cf0f8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -202,8 +202,8 @@ message CreateSchemaRequest { // The ID to use for the schema, which will become the final component of // the schema's resource name. // - // See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - // name constraints. + // See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + // resource name constraints. string schema_id = 3; } From 16dee8bce115f59d8518ca1ae0e39dd87d81f802 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 26 Jan 2024 18:05:53 +0100 Subject: [PATCH 018/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 (#1878) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a57a7f99d..038b328af 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.36.0 + 2.37.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 842cbf9ed..308cc1e53 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.36.0 + 2.37.0 com.google.cloud From 30f0ef4e41c2c95282b414af0cc00438824bb522 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:00:28 +0000 Subject: [PATCH 019/656] chore(main): release 1.126.2 (#1879) :robot: I have created a release *beep* *boop* --- ## [1.126.2](https://togithub.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://togithub.com/googleapis/java-pubsub/issues/1875)) ([0aac3e4](https://togithub.com/googleapis/java-pubsub/commit/0aac3e4c9c5671ce8f3b98056cc3710cd5ca9d07)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://togithub.com/googleapis/java-pubsub/issues/1878)) ([16dee8b](https://togithub.com/googleapis/java-pubsub/commit/16dee8bce115f59d8518ca1ae0e39dd87d81f802)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46203e22e..5a883226a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.126.2](https://github.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://github.com/googleapis/java-pubsub/issues/1875)) ([0aac3e4](https://github.com/googleapis/java-pubsub/commit/0aac3e4c9c5671ce8f3b98056cc3710cd5ca9d07)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://github.com/googleapis/java-pubsub/issues/1878)) ([16dee8b](https://github.com/googleapis/java-pubsub/commit/16dee8bce115f59d8518ca1ae0e39dd87d81f802)) + ## [1.126.1](https://github.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index a020e128c..290a760e6 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.2-SNAPSHOT + 1.126.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d588ee783..c2d790d87 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 722836773..378bdfeaf 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/pom.xml b/pom.xml index 719b2d735..5fd62cff7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.2-SNAPSHOT + 1.126.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 2f649852f..53045daa1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 308cc1e53..8ec9a6245 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/versions.txt b/versions.txt index 64ecc9876..743e4d8f8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.1:1.126.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT +google-cloud-pubsub:1.126.2:1.126.2 +grpc-google-cloud-pubsub-v1:1.108.2:1.108.2 +proto-google-cloud-pubsub-v1:1.108.2:1.108.2 From 810d571365d91aa466be8284df6fef83abc18c13 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:14:15 +0000 Subject: [PATCH 020/656] chore(main): release 1.126.3-SNAPSHOT (#1880) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 290a760e6..b8d3fc0a3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.2 + 1.126.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c2d790d87..14dca02b0 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 378bdfeaf..686abc578 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5fd62cff7..628287c8e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.2 + 1.126.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 53045daa1..581378af5 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8ec9a6245..965d9d592 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 743e4d8f8..fc723dc08 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.2:1.126.2 -grpc-google-cloud-pubsub-v1:1.108.2:1.108.2 -proto-google-cloud-pubsub-v1:1.108.2:1.108.2 +google-cloud-pubsub:1.126.2:1.126.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT From abd2739b0e6bb61198c8972974c979f7b17bec25 Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:02:10 -0500 Subject: [PATCH 021/656] chore: remove obsolete release job configs (#1870) --- .kokoro/release/bump_snapshot.cfg | 53 --- .kokoro/release/bump_snapshot.sh | 30 -- .kokoro/release/common.cfg | 49 --- .kokoro/release/common.sh | 50 --- .kokoro/release/drop.cfg | 6 - .kokoro/release/drop.sh | 32 -- .kokoro/release/promote.cfg | 6 - .kokoro/release/promote.sh | 34 -- .kokoro/release/publish_javadoc.cfg | 23 -- .kokoro/release/publish_javadoc.sh | 53 --- .kokoro/release/publish_javadoc11.cfg | 30 -- .kokoro/release/publish_javadoc11.sh | 63 ---- .kokoro/release/snapshot.cfg | 6 - .kokoro/release/snapshot.sh | 33 -- .kokoro/release/stage.cfg | 19 - .kokoro/release/stage.sh | 47 --- .kokoro/requirements.in | 6 - .kokoro/requirements.txt | 491 -------------------------- owlbot.py | 2 + 19 files changed, 2 insertions(+), 1031 deletions(-) delete mode 100644 .kokoro/release/bump_snapshot.cfg delete mode 100755 .kokoro/release/bump_snapshot.sh delete mode 100644 .kokoro/release/common.cfg delete mode 100755 .kokoro/release/common.sh delete mode 100644 .kokoro/release/drop.cfg delete mode 100755 .kokoro/release/drop.sh delete mode 100644 .kokoro/release/promote.cfg delete mode 100755 .kokoro/release/promote.sh delete mode 100644 .kokoro/release/publish_javadoc.cfg delete mode 100755 .kokoro/release/publish_javadoc.sh delete mode 100644 .kokoro/release/publish_javadoc11.cfg delete mode 100755 .kokoro/release/publish_javadoc11.sh delete mode 100644 .kokoro/release/snapshot.cfg delete mode 100755 .kokoro/release/snapshot.sh delete mode 100644 .kokoro/release/stage.cfg delete mode 100755 .kokoro/release/stage.sh delete mode 100644 .kokoro/requirements.in delete mode 100644 .kokoro/requirements.txt diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg deleted file mode 100644 index a2a5982a8..000000000 --- a/.kokoro/release/bump_snapshot.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/bump_snapshot.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh deleted file mode 100755 index bf54b4900..000000000 --- a/.kokoro/release/bump_snapshot.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the snapshot release PR immediately after publishing a release - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-pubsub \ - --package-name="pubsub" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --snapshot \ - --release-type=java-auth-yoshi -fi diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg deleted file mode 100644 index 7eeae74d5..000000000 --- a/.kokoro/release/common.cfg +++ /dev/null @@ -1,49 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee414..000000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg deleted file mode 100644 index fa56231bd..000000000 --- a/.kokoro/release/drop.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a88..000000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg deleted file mode 100644 index 08d54e6ab..000000000 --- a/.kokoro/release/promote.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a9..000000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index 9e3e80619..000000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index 2cf98c0c5..000000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-pubsub -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index f56e0021b..000000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/publish_javadoc11.sh" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh deleted file mode 100755 index 680a215f3..000000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-pubsub -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# cloud RAD generation -mvn clean javadoc:aggregate -B -q -P docFX -# include CHANGELOG -cp CHANGELOG.md target/docfx-yml/history.md - -pushd target/docfx-yml - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index 3c445f2dc..000000000 --- a/.kokoro/release/snapshot.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b7702..000000000 --- a/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg deleted file mode 100644 index 587130b55..000000000 --- a/.kokoro/release/stage.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-pubsub/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-pubsub" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6b..000000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 2092cc741..000000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,6 +0,0 @@ -gcp-docuploader -gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x -wheel -setuptools -typing-extensions -click<8.1.0 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 445c5c1f0..000000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,491 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.9 -# by the following command: -# -# pip-compile requirements.in --generate-hashes --upgrade -# -attrs==23.1.0 \ - --hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \ - --hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015 - # via gcp-releasetool -cachetools==5.3.1 \ - --hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \ - --hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b - # via google-auth -certifi==2023.7.22 \ - --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \ - --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9 - # via requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via cryptography -charset-normalizer==3.2.0 \ - --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 \ - --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c \ - --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 \ - --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 \ - --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 \ - --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 \ - --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad \ - --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 \ - --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a \ - --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f \ - --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 \ - --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 \ - --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a \ - --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 \ - --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 \ - --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 \ - --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace \ - --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd \ - --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 \ - --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 \ - --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 \ - --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea \ - --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 \ - --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 \ - --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 \ - --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 \ - --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 \ - --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 \ - --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 \ - --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 \ - --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 \ - --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed \ - --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c \ - --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 \ - --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a \ - --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e \ - --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d \ - --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 \ - --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 \ - --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 \ - --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 \ - --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa \ - --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 \ - --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 \ - --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f \ - --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 \ - --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 \ - --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a \ - --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 \ - --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 \ - --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 \ - --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f \ - --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 \ - --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 \ - --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 \ - --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 \ - --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 \ - --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e \ - --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d \ - --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 \ - --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd \ - --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a \ - --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 \ - --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 \ - --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 \ - --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c \ - --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 \ - --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a \ - --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 \ - --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c \ - --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 \ - --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 \ - --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c \ - --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac \ - --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==41.0.6 \ - --hash=sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596 \ - --hash=sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c \ - --hash=sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660 \ - --hash=sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4 \ - --hash=sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead \ - --hash=sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed \ - --hash=sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3 \ - --hash=sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7 \ - --hash=sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09 \ - --hash=sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c \ - --hash=sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43 \ - --hash=sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65 \ - --hash=sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6 \ - --hash=sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da \ - --hash=sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c \ - --hash=sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b \ - --hash=sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8 \ - --hash=sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c \ - --hash=sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d \ - --hash=sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9 \ - --hash=sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86 \ - --hash=sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36 \ - --hash=sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.5 \ - --hash=sha256:30221d4ac3e5a2b9c69aa52fdbef68cc3f27d0e6d0d90e220fc024584b8d2318 \ - --hash=sha256:b7458ef93f605b9d46a4bf3a8dc1755dad1f31d030c8679edf304e343b347eea - # via -r requirements.in -gcp-releasetool==1.16.0 \ - --hash=sha256:27bf19d2e87aaa884096ff941aa3c592c482be3d6a2bfe6f06afafa6af2353e3 \ - --hash=sha256:a316b197a543fd036209d0caba7a8eb4d236d8e65381c80cbc6d7efaa7606d63 - # via -r requirements.in -google-api-core==2.11.1 \ - --hash=sha256:25d29e05a0058ed5f19c61c0a78b1b53adea4d9364b464d014fbda941f6d1c9a \ - --hash=sha256:d92a5a92dc36dd4f4b9ee4e55528a90e432b059f93aee6ad857f9de8cc7ae94a - # via - # google-cloud-core - # google-cloud-storage -google-auth==2.22.0 \ - --hash=sha256:164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce \ - --hash=sha256:d61d1b40897407b574da67da1a833bdc10d5a11642566e506565d1b1a46ba873 - # via - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.3 \ - --hash=sha256:37b80273c8d7eee1ae816b3a20ae43585ea50506cb0e60f3cf5be5f87f1373cb \ - --hash=sha256:fbd11cad3e98a7e5b0343dc07cb1039a5ffd7a5bb96e1f1e27cee4bda4a90863 - # via google-cloud-storage -google-cloud-storage==2.10.0 \ - --hash=sha256:934b31ead5f3994e5360f9ff5750982c5b6b11604dc072bc452c25965e076dc7 \ - --hash=sha256:9433cf28801671de1c80434238fb1e7e4a1ba3087470e90f70c928ea77c2b9d7 - # via gcp-docuploader -google-crc32c==1.5.0 \ - --hash=sha256:024894d9d3cfbc5943f8f230e23950cd4906b2fe004c72e29b209420a1e6b05a \ - --hash=sha256:02c65b9817512edc6a4ae7c7e987fea799d2e0ee40c53ec573a692bee24de876 \ - --hash=sha256:02ebb8bf46c13e36998aeaad1de9b48f4caf545e91d14041270d9dca767b780c \ - --hash=sha256:07eb3c611ce363c51a933bf6bd7f8e3878a51d124acfc89452a75120bc436289 \ - --hash=sha256:1034d91442ead5a95b5aaef90dbfaca8633b0247d1e41621d1e9f9db88c36298 \ - --hash=sha256:116a7c3c616dd14a3de8c64a965828b197e5f2d121fedd2f8c5585c547e87b02 \ - --hash=sha256:19e0a019d2c4dcc5e598cd4a4bc7b008546b0358bd322537c74ad47a5386884f \ - --hash=sha256:1c7abdac90433b09bad6c43a43af253e688c9cfc1c86d332aed13f9a7c7f65e2 \ - --hash=sha256:1e986b206dae4476f41bcec1faa057851f3889503a70e1bdb2378d406223994a \ - --hash=sha256:272d3892a1e1a2dbc39cc5cde96834c236d5327e2122d3aaa19f6614531bb6eb \ - --hash=sha256:278d2ed7c16cfc075c91378c4f47924c0625f5fc84b2d50d921b18b7975bd210 \ - --hash=sha256:2ad40e31093a4af319dadf503b2467ccdc8f67c72e4bcba97f8c10cb078207b5 \ - --hash=sha256:2e920d506ec85eb4ba50cd4228c2bec05642894d4c73c59b3a2fe20346bd00ee \ - --hash=sha256:3359fc442a743e870f4588fcf5dcbc1bf929df1fad8fb9905cd94e5edb02e84c \ - --hash=sha256:37933ec6e693e51a5b07505bd05de57eee12f3e8c32b07da7e73669398e6630a \ - --hash=sha256:398af5e3ba9cf768787eef45c803ff9614cc3e22a5b2f7d7ae116df8b11e3314 \ - --hash=sha256:3b747a674c20a67343cb61d43fdd9207ce5da6a99f629c6e2541aa0e89215bcd \ - --hash=sha256:461665ff58895f508e2866824a47bdee72497b091c730071f2b7575d5762ab65 \ - --hash=sha256:4c6fdd4fccbec90cc8a01fc00773fcd5fa28db683c116ee3cb35cd5da9ef6c37 \ - --hash=sha256:5829b792bf5822fd0a6f6eb34c5f81dd074f01d570ed7f36aa101d6fc7a0a6e4 \ - --hash=sha256:596d1f98fc70232fcb6590c439f43b350cb762fb5d61ce7b0e9db4539654cc13 \ - --hash=sha256:5ae44e10a8e3407dbe138984f21e536583f2bba1be9491239f942c2464ac0894 \ - --hash=sha256:635f5d4dd18758a1fbd1049a8e8d2fee4ffed124462d837d1a02a0e009c3ab31 \ - --hash=sha256:64e52e2b3970bd891309c113b54cf0e4384762c934d5ae56e283f9a0afcd953e \ - --hash=sha256:66741ef4ee08ea0b2cc3c86916ab66b6aef03768525627fd6a1b34968b4e3709 \ - --hash=sha256:67b741654b851abafb7bc625b6d1cdd520a379074e64b6a128e3b688c3c04740 \ - --hash=sha256:6ac08d24c1f16bd2bf5eca8eaf8304812f44af5cfe5062006ec676e7e1d50afc \ - --hash=sha256:6f998db4e71b645350b9ac28a2167e6632c239963ca9da411523bb439c5c514d \ - --hash=sha256:72218785ce41b9cfd2fc1d6a017dc1ff7acfc4c17d01053265c41a2c0cc39b8c \ - --hash=sha256:74dea7751d98034887dbd821b7aae3e1d36eda111d6ca36c206c44478035709c \ - --hash=sha256:759ce4851a4bb15ecabae28f4d2e18983c244eddd767f560165563bf9aefbc8d \ - --hash=sha256:77e2fd3057c9d78e225fa0a2160f96b64a824de17840351b26825b0848022906 \ - --hash=sha256:7c074fece789b5034b9b1404a1f8208fc2d4c6ce9decdd16e8220c5a793e6f61 \ - --hash=sha256:7c42c70cd1d362284289c6273adda4c6af8039a8ae12dc451dcd61cdabb8ab57 \ - --hash=sha256:7f57f14606cd1dd0f0de396e1e53824c371e9544a822648cd76c034d209b559c \ - --hash=sha256:83c681c526a3439b5cf94f7420471705bbf96262f49a6fe546a6db5f687a3d4a \ - --hash=sha256:8485b340a6a9e76c62a7dce3c98e5f102c9219f4cfbf896a00cf48caf078d438 \ - --hash=sha256:84e6e8cd997930fc66d5bb4fde61e2b62ba19d62b7abd7a69920406f9ecca946 \ - --hash=sha256:89284716bc6a5a415d4eaa11b1726d2d60a0cd12aadf5439828353662ede9dd7 \ - --hash=sha256:8b87e1a59c38f275c0e3676fc2ab6d59eccecfd460be267ac360cc31f7bcde96 \ - --hash=sha256:8f24ed114432de109aa9fd317278518a5af2d31ac2ea6b952b2f7782b43da091 \ - --hash=sha256:98cb4d057f285bd80d8778ebc4fde6b4d509ac3f331758fb1528b733215443ae \ - --hash=sha256:998679bf62b7fb599d2878aa3ed06b9ce688b8974893e7223c60db155f26bd8d \ - --hash=sha256:9ba053c5f50430a3fcfd36f75aff9caeba0440b2d076afdb79a318d6ca245f88 \ - --hash=sha256:9c99616c853bb585301df6de07ca2cadad344fd1ada6d62bb30aec05219c45d2 \ - --hash=sha256:a1fd716e7a01f8e717490fbe2e431d2905ab8aa598b9b12f8d10abebb36b04dd \ - --hash=sha256:a2355cba1f4ad8b6988a4ca3feed5bff33f6af2d7f134852cf279c2aebfde541 \ - --hash=sha256:b1f8133c9a275df5613a451e73f36c2aea4fe13c5c8997e22cf355ebd7bd0728 \ - --hash=sha256:b8667b48e7a7ef66afba2c81e1094ef526388d35b873966d8a9a447974ed9178 \ - --hash=sha256:ba1eb1843304b1e5537e1fca632fa894d6f6deca8d6389636ee5b4797affb968 \ - --hash=sha256:be82c3c8cfb15b30f36768797a640e800513793d6ae1724aaaafe5bf86f8f346 \ - --hash=sha256:c02ec1c5856179f171e032a31d6f8bf84e5a75c45c33b2e20a3de353b266ebd8 \ - --hash=sha256:c672d99a345849301784604bfeaeba4db0c7aae50b95be04dd651fd2a7310b93 \ - --hash=sha256:c6c777a480337ac14f38564ac88ae82d4cd238bf293f0a22295b66eb89ffced7 \ - --hash=sha256:cae0274952c079886567f3f4f685bcaf5708f0a23a5f5216fdab71f81a6c0273 \ - --hash=sha256:cd67cf24a553339d5062eff51013780a00d6f97a39ca062781d06b3a73b15462 \ - --hash=sha256:d3515f198eaa2f0ed49f8819d5732d70698c3fa37384146079b3799b97667a94 \ - --hash=sha256:d5280312b9af0976231f9e317c20e4a61cd2f9629b7bfea6a693d1878a264ebd \ - --hash=sha256:de06adc872bcd8c2a4e0dc51250e9e65ef2ca91be023b9d13ebd67c2ba552e1e \ - --hash=sha256:e1674e4307fa3024fc897ca774e9c7562c957af85df55efe2988ed9056dc4e57 \ - --hash=sha256:e2096eddb4e7c7bdae4bd69ad364e55e07b8316653234a56552d9c988bd2d61b \ - --hash=sha256:e560628513ed34759456a416bf86b54b2476c59144a9138165c9a1575801d0d9 \ - --hash=sha256:edfedb64740750e1a3b16152620220f51d58ff1b4abceb339ca92e934775c27a \ - --hash=sha256:f13cae8cc389a440def0c8c52057f37359014ccbc9dc1f0827936bcd367c6100 \ - --hash=sha256:f314013e7dcd5cf45ab1945d92e713eec788166262ae8deb2cfacd53def27325 \ - --hash=sha256:f583edb943cf2e09c60441b910d6a20b4d9d626c75a36c8fcac01a6c96c01183 \ - --hash=sha256:fd8536e902db7e365f49e7d9029283403974ccf29b13fc7028b97e2295b33556 \ - --hash=sha256:fe70e325aa68fa4b5edf7d1a4b6f691eb04bbccac0ace68e34820d283b5f80d4 - # via google-resumable-media -google-resumable-media==2.5.0 \ - --hash=sha256:218931e8e2b2a73a58eb354a288e03a0fd5fb1c4583261ac6e4c078666468c93 \ - --hash=sha256:da1bd943e2e114a56d85d6848497ebf9be6a14d3db23e9fc57581e7c3e8170ec - # via google-cloud-storage -googleapis-common-protos==1.59.1 \ - --hash=sha256:0cbedb6fb68f1c07e18eb4c48256320777707e7d0c55063ae56c15db3224a61e \ - --hash=sha256:b35d530fe825fb4227857bc47ad84c33c809ac96f312e13182bdeaa2abe1178a - # via google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via requests -importlib-metadata==6.8.0 \ - --hash=sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb \ - --hash=sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743 - # via keyring -jaraco-classes==3.3.0 \ - --hash=sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb \ - --hash=sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621 - # via keyring -jeepney==0.8.0 \ - --hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \ - --hash=sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755 - # via - # keyring - # secretstorage -jinja2==3.1.2 \ - --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ - --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 - # via gcp-releasetool -keyring==24.2.0 \ - --hash=sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6 \ - --hash=sha256:ca0746a19ec421219f4d713f848fa297a661a8a8c1504867e55bfb5e09091509 - # via gcp-releasetool -markupsafe==2.1.3 \ - --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ - --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ - --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \ - --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \ - --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \ - --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \ - --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \ - --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \ - --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \ - --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \ - --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \ - --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \ - --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \ - --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \ - --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \ - --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \ - --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \ - --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \ - --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \ - --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \ - --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \ - --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \ - --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \ - --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \ - --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \ - --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \ - --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \ - --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \ - --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \ - --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \ - --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \ - --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \ - --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \ - --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \ - --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \ - --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \ - --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \ - --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \ - --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \ - --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \ - --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \ - --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \ - --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \ - --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \ - --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \ - --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \ - --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \ - --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \ - --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \ - --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2 - # via jinja2 -more-itertools==9.1.0 \ - --hash=sha256:cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d \ - --hash=sha256:d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3 - # via jaraco-classes -packaging==23.1 \ - --hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \ - --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f - # via gcp-releasetool -protobuf==3.20.3 \ - --hash=sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7 \ - --hash=sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c \ - --hash=sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2 \ - --hash=sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b \ - --hash=sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050 \ - --hash=sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9 \ - --hash=sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7 \ - --hash=sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454 \ - --hash=sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480 \ - --hash=sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469 \ - --hash=sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c \ - --hash=sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e \ - --hash=sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db \ - --hash=sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905 \ - --hash=sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b \ - --hash=sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86 \ - --hash=sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4 \ - --hash=sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402 \ - --hash=sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7 \ - --hash=sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4 \ - --hash=sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99 \ - --hash=sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee - # via - # gcp-docuploader - # gcp-releasetool - # google-api-core - # googleapis-common-protos -pyasn1==0.5.0 \ - --hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \ - --hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.3.0 \ - --hash=sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \ - --hash=sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via cffi -pyjwt==2.7.0 \ - --hash=sha256:ba2b425b15ad5ef12f200dc67dd56af4e26de2331f965c5439994dad075876e1 \ - --hash=sha256:bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9cc3e074 - # via gcp-releasetool -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via gcp-releasetool -requests==2.31.0 \ - --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ - --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 - # via - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.7.1 \ - --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ - --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 - # via -r requirements.in -urllib3==1.26.18 \ - --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \ - --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0 - # via - # google-auth - # requests -wheel==0.40.0 \ - --hash=sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873 \ - --hash=sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247 - # via -r requirements.in -zipp==3.16.1 \ - --hash=sha256:0b37c326d826d5ca35f2b9685cd750292740774ef16190008b00a0227c256fe0 \ - --hash=sha256:857b158da2cbf427b376da1c24fd11faecbac5a4ac7523c3607f8a01f94c2ec0 - # via importlib-metadata - -# WARNING: The following packages were not pinned, but pip requires them to be -# pinned when the requirements file includes hashes and the requirement is not -# satisfied by a package already installed. Consider using the --allow-unsafe flag. -# setuptools diff --git a/owlbot.py b/owlbot.py index 69cab5df9..6cb015af0 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1210,5 +1210,7 @@ ".kokoro/build.sh", ".github/sync-repo-settings.yaml", ".github/blunderbuss.yml", + '.kokoro/requirements.in', + '.kokoro/requirements.txt' ] ) From e062179a9c09247f0ad2aabb127bebd484695069 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 6 Feb 2024 18:11:38 -0500 Subject: [PATCH 022/656] chore: removing Kokoro - Against Pub/Sub Lite samples from required checks (#1894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removing Kokoro - Against Pub/Sub Lite samples from required checks The "Kokoro - Against Pub/Sub Lite samples" has been failing for a while. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/sync-repo-settings.yaml | 1 - README.md | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 46e11116d..2cd50ab00 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -14,7 +14,6 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' diff --git a/README.md b/README.md index 4f9b1de52..9873ea9d1 100644 --- a/README.md +++ b/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.30.0') +implementation platform('com.google.cloud:libraries-bom:26.31.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.2" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 6d6dc891c7f1e23e3ee53bea09ed9954ac3b359b Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 6 Feb 2024 18:27:23 -0500 Subject: [PATCH 023/656] ci: unmanaged dependency check (#1892) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: unmanaged dependency check This is is the implementation for the one I got your review in go/cloud-sdk-java-dependency-governance-design. This check will avoid accidentally adding a third-party dependency. b/320677249 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../workflows/unmanaged_dependency_check.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/unmanaged_dependency_check.yaml diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml new file mode 100644 index 000000000..62c5fa4a0 --- /dev/null +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -0,0 +1,22 @@ +on: + pull_request: +name: Unmanaged dependency check +jobs: + unmanaged_dependency_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - name: Install modules + shell: bash + run: | + # No argument to build.sh installs the modules in local Maven + # repository + .kokoro/build.sh + - name: Unmanaged dependency check + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@unmanaged-dependencies-check-latest + with: + bom-path: google-cloud-pubsub-bom/pom.xml From a2063cf8f1f792f5ad1994bff00f367b399c0ff2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 7 Feb 2024 05:12:03 +0100 Subject: [PATCH 024/656] deps: update dependency com.google.cloud:google-cloud-core to v2.32.0 (#1885) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 038b328af..ab1e205bf 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 965d9d592..c02e9627f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 26215fd06..8b63238f9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests From 7ed363ebe7d95d8ee03ccea787389941f0387e98 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Wed, 7 Feb 2024 04:24:16 +0000 Subject: [PATCH 025/656] chore: use sdk-platform-java-config to consolidate build configs (#1895) --- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- owlbot.py | 4 +++- pom.xml | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index fb5bb678f..90d9a20a0 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.24.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 59efee340..948177be8 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.24.0" } env_vars: { diff --git a/owlbot.py b/owlbot.py index 6cb015af0..1ef474bc4 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1211,6 +1211,8 @@ ".github/sync-repo-settings.yaml", ".github/blunderbuss.yml", '.kokoro/requirements.in', - '.kokoro/requirements.txt' + '.kokoro/requirements.txt', + '.kokoro/presubmit/graalvm-native.cfg', + '.kokoro/presubmit/graalvm-native-17.cfg' ] ) diff --git a/pom.xml b/pom.xml index 628287c8e..764995a45 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,8 @@ com.google.cloud - google-cloud-shared-config - 1.7.1 + sdk-platform-java-config + 3.24.0 @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.23.0 + ${google-cloud-shared-dependencies.version} pom import From b9c6b651b1494fd0d57c5830988d6abd9cf70131 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:56:19 -0500 Subject: [PATCH 026/656] chore: adjust renovate bot configs to update the sdk-platform-java-config artifact (#1921) (#1884) chore: update renovate bot configs to update the sdk-platform-java-config artifact Source-Link: https://github.com/googleapis/synthtool/commit/d7828c02a5b1aeb8dcf3aa6c55f8fdf407a0156f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- renovate.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dc05a7276..bf48c82da 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc -# created: 2024-01-22T14:14:20.913785597Z + digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 +# created: 2024-01-30T19:46:55.029238294Z diff --git a/renovate.json b/renovate.json index 977082821..10ded9f10 100644 --- a/renovate.json +++ b/renovate.json @@ -14,6 +14,17 @@ ".kokoro/requirements.txt", ".github/workflows/**" ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^.kokoro/presubmit/graalvm-native.*.cfg$" + ], + "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], + "depNameTemplate": "com.google.cloud:sdk-platform-java-config", + "datasourceTemplate": "maven" + } + ], "packageRules": [ { "packagePatterns": [ From 7d24594e5fda69abb45b77124b8be3d8589b8df2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 7 Feb 2024 20:13:09 +0100 Subject: [PATCH 027/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.31.0 (#1883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.31.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9873ea9d1..f17677181 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index b766b6326..3a75434c4 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 8b63238f9..dec1fffa3 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import From 4ad5cc9ff805b77dbc2ebd78671a553da8239a30 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 Feb 2024 01:14:07 +0100 Subject: [PATCH 028/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 (#1881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f17677181..68423c089 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ab1e205bf..8a23573ba 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2 From c80767f194d7eeb7d5b9338bd6431c60c7a19791 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:30:16 +0000 Subject: [PATCH 029/656] chore(main): release 1.126.3 (#1896) :robot: I have created a release *beep* *boop* --- ## [1.126.3](https://togithub.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://togithub.com/googleapis/java-pubsub/issues/1885)) ([a2063cf](https://togithub.com/googleapis/java-pubsub/commit/a2063cf8f1f792f5ad1994bff00f367b399c0ff2)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a883226a..8721be429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.126.3](https://github.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://github.com/googleapis/java-pubsub/issues/1885)) ([a2063cf](https://github.com/googleapis/java-pubsub/commit/a2063cf8f1f792f5ad1994bff00f367b399c0ff2)) + ## [1.126.2](https://github.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index b8d3fc0a3..cbf0b858c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.3-SNAPSHOT + 1.126.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 14dca02b0..650cb553f 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 686abc578..236f1fbe5 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/pom.xml b/pom.xml index 764995a45..321bef25a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.3-SNAPSHOT + 1.126.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 581378af5..6e94b2ee1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c02e9627f..b1e557e8b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/versions.txt b/versions.txt index fc723dc08..8cce4bec8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.2:1.126.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT +google-cloud-pubsub:1.126.3:1.126.3 +grpc-google-cloud-pubsub-v1:1.108.3:1.108.3 +proto-google-cloud-pubsub-v1:1.108.3:1.108.3 From a9f4a2b01fc4f58d44fb4ef13fe206ae262b582a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:44:16 +0000 Subject: [PATCH 030/656] chore(main): release 1.126.4-SNAPSHOT (#1901) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index cbf0b858c..276983e5d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.3 + 1.126.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 650cb553f..860c849af 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 236f1fbe5..2b9af8e22 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 321bef25a..8c5700e1e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.3 + 1.126.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 6e94b2ee1..0ad7b2a8f 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b1e557e8b..94159b432 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8cce4bec8..a8c7ca076 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.3:1.126.3 -grpc-google-cloud-pubsub-v1:1.108.3:1.108.3 -proto-google-cloud-pubsub-v1:1.108.3:1.108.3 +google-cloud-pubsub:1.126.3:1.126.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT From 38debd16301be3b0dc25a744ae2a5f08dbd9beea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 Feb 2024 21:25:20 +0100 Subject: [PATCH 031/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.3 (#1902) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 68423c089..89680132d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.3" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8a23573ba..b6169a62c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3 From 77f3c2662706dbd6104897873622b568d55e930d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 8 Feb 2024 15:41:19 -0500 Subject: [PATCH 032/656] chore: change assignees for issues and PRs to michaelpri10 (#1899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/blunderbuss.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 44ab091e1..97998e463 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -1,9 +1,9 @@ # Configuration for the Blunderbuss GitHub app. For more info see # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss assign_issues: - - maitrimangal + - michaelpri10 assign_prs: - - maitrimangal + - michaelpri10 assign_prs_by: - labels: - samples From 22a87c67f07b55266e277f83f5ceb17d9f32f67e Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 9 Feb 2024 15:45:21 -0500 Subject: [PATCH 033/656] fix: Message ordering fix for #1889 (#1903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Revert PR#1807 and use a LinkedHasMap in the MessageDispatcher * fix: Make processedReceivedMessages thread-safe * fix: Only synchronize on the outstandingReceipts object in the MessageDispatcher --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/MessageDispatcher.java | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 635bc92d5..1810badd2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -31,6 +31,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -92,8 +93,8 @@ class MessageDispatcher { private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - private final ConcurrentMap outstandingReceipts = - new ConcurrentHashMap(); + private final LinkedHashMap outstandingReceipts = + new LinkedHashMap(); private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; @@ -397,7 +398,9 @@ void processReceivedMessages(List messages) { if (this.exactlyOnceDeliveryEnabled.get()) { // For exactly once deliveries we don't add to outstanding batch because we first // process the receipt modack. If that is successful then we process the message. - outstandingReceipts.put(message.getAckId(), new ReceiptCompleteData(outstandingMessage)); + synchronized (outstandingReceipts) { + outstandingReceipts.put(message.getAckId(), new ReceiptCompleteData(outstandingMessage)); + } } else if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the // previously-mapped element. @@ -417,33 +420,36 @@ void processReceivedMessages(List messages) { } void notifyAckSuccess(AckRequestData ackRequestData) { - - if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { - outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); - List outstandingBatch = new ArrayList<>(); - - for (Iterator> it = - outstandingReceipts.entrySet().iterator(); - it.hasNext(); ) { - Map.Entry receipt = it.next(); - // If receipt is complete then add to outstandingBatch to process the batch - if (receipt.getValue().isReceiptComplete()) { - it.remove(); - if (pendingMessages.putIfAbsent( - receipt.getKey(), receipt.getValue().getOutstandingMessage().ackHandler) - == null) { - outstandingBatch.add(receipt.getValue().getOutstandingMessage()); + synchronized (outstandingReceipts) { + if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { + outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); + List outstandingBatch = new ArrayList<>(); + + for (Iterator> it = + outstandingReceipts.entrySet().iterator(); + it.hasNext(); ) { + Map.Entry receipt = it.next(); + // If receipt is complete then add to outstandingBatch to process the batch + if (receipt.getValue().isReceiptComplete()) { + it.remove(); + if (pendingMessages.putIfAbsent( + receipt.getKey(), receipt.getValue().getOutstandingMessage().ackHandler) + == null) { + outstandingBatch.add(receipt.getValue().getOutstandingMessage()); + } + } else { + break; } - } else { - break; } + processBatch(outstandingBatch); } - processBatch(outstandingBatch); } } void notifyAckFailed(AckRequestData ackRequestData) { - outstandingReceipts.remove(ackRequestData.getAckId()); + synchronized (outstandingReceipts) { + outstandingReceipts.remove(ackRequestData.getAckId()); + } } private void processBatch(List batch) { From f801667535e3483b07a4d2ba663f7d51404f8e25 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 16:30:00 -0500 Subject: [PATCH 034/656] chore(main): release 1.126.4 (#1905) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8721be429..92946f184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.126.4](https://github.com/googleapis/java-pubsub/compare/v1.126.3...v1.126.4) (2024-02-09) + + +### Bug Fixes + +* Message ordering fix for [#1889](https://github.com/googleapis/java-pubsub/issues/1889) ([#1903](https://github.com/googleapis/java-pubsub/issues/1903)) ([22a87c6](https://github.com/googleapis/java-pubsub/commit/22a87c67f07b55266e277f83f5ceb17d9f32f67e)) + ## [1.126.3](https://github.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 276983e5d..795bf000c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.4-SNAPSHOT + 1.126.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 860c849af..cb705395d 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 2b9af8e22..ab59fe1ad 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/pom.xml b/pom.xml index 8c5700e1e..6de969e6a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.4-SNAPSHOT + 1.126.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0ad7b2a8f..e06710a62 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 94159b432..adcd70028 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/versions.txt b/versions.txt index a8c7ca076..451bc8f07 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.3:1.126.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT +google-cloud-pubsub:1.126.4:1.126.4 +grpc-google-cloud-pubsub-v1:1.108.4:1.108.4 +proto-google-cloud-pubsub-v1:1.108.4:1.108.4 From 5017789c996246ece0c5428c68c9c6681b760bca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:32:42 +0100 Subject: [PATCH 035/656] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 (#1888) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 3a75434c4..29826de5f 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.28 + 0.10.0 true pubsub.NativeImagePubSubSample From 231899a68ec0b893edecb9497bfc47253c778987 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:35:10 +0100 Subject: [PATCH 036/656] test(deps): update dependency com.google.truth:truth to v1.4.0 (#1890) --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 6de969e6a..227cd7d2d 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b6169a62c..e40c9caaa 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 29826de5f..5a064d826 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index adcd70028..52c09eace 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index dec1fffa3..34c2c4bde 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test From 231ba51c8bd2e6a8f3e0171626d35761bd07ae19 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:35:34 +0100 Subject: [PATCH 037/656] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 (#1891) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 5a064d826..e114bce2d 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.10.1 + 5.10.2 test From f1cdb11bbbf84eb5ceca3ef9e641ff147b304356 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:52:17 +0000 Subject: [PATCH 038/656] chore(main): release 1.126.5-SNAPSHOT (#1906) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 795bf000c..53f63069f 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.4 + 1.126.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index cb705395d..567acd183 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index ab59fe1ad..5eed7d4f0 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 227cd7d2d..4271f426d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.4 + 1.126.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e06710a62..f0c1bcae9 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 52c09eace..62ac26115 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 451bc8f07..cff6d8a28 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.4:1.126.4 -grpc-google-cloud-pubsub-v1:1.108.4:1.108.4 -proto-google-cloud-pubsub-v1:1.108.4:1.108.4 +google-cloud-pubsub:1.126.4:1.126.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT From a969a2e13ee5c4c5114a8a342122d0298a59c97e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 16:52:43 +0100 Subject: [PATCH 039/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.4 (#1908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 89680132d..e5617be6d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.4" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e40c9caaa..79d2e3bd2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4 From 0efceb4f4068c70565676dc2ddcf629ec4f0489f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:28:36 +0100 Subject: [PATCH 040/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.33.0 (#1900) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 79d2e3bd2..5e9dceefe 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.32.1 + 2.33.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 62ac26115..fee5457c8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.32.1 + 2.33.0 From fc0dc962bcb7467fe4008263a80d1ed1e29167a0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:29:19 +0100 Subject: [PATCH 041/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 (#1898) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5e9dceefe..7495bf7a5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.0 + 2.37.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fee5457c8..78bf34fcd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.0 + 2.37.1 com.google.cloud From 2bfa5cc894e5a14b1d890bdcad348eeb14520f95 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:29:43 +0100 Subject: [PATCH 042/656] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 (#1887) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index e114bce2d..6b5b1b6f7 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.28 + 0.10.0 test From 2969061b0281ef5b26088b67dc0949bb28ce9f2f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:42:16 +0000 Subject: [PATCH 043/656] chore(main): release 1.126.5 (#1907) :robot: I have created a release *beep* *boop* --- ## [1.126.5](https://togithub.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://togithub.com/googleapis/java-pubsub/issues/1898)) ([fc0dc96](https://togithub.com/googleapis/java-pubsub/commit/fc0dc962bcb7467fe4008263a80d1ed1e29167a0)) * Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://togithub.com/googleapis/java-pubsub/issues/1900)) ([0efceb4](https://togithub.com/googleapis/java-pubsub/commit/0efceb4f4068c70565676dc2ddcf629ec4f0489f)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://togithub.com/googleapis/java-pubsub/issues/1887)) ([2bfa5cc](https://togithub.com/googleapis/java-pubsub/commit/2bfa5cc894e5a14b1d890bdcad348eeb14520f95)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://togithub.com/googleapis/java-pubsub/issues/1888)) ([5017789](https://togithub.com/googleapis/java-pubsub/commit/5017789c996246ece0c5428c68c9c6681b760bca)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://togithub.com/googleapis/java-pubsub/issues/1891)) ([231ba51](https://togithub.com/googleapis/java-pubsub/commit/231ba51c8bd2e6a8f3e0171626d35761bd07ae19)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 11 +++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92946f184..702c2f306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.126.5](https://github.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://github.com/googleapis/java-pubsub/issues/1898)) ([fc0dc96](https://github.com/googleapis/java-pubsub/commit/fc0dc962bcb7467fe4008263a80d1ed1e29167a0)) +* Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://github.com/googleapis/java-pubsub/issues/1900)) ([0efceb4](https://github.com/googleapis/java-pubsub/commit/0efceb4f4068c70565676dc2ddcf629ec4f0489f)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://github.com/googleapis/java-pubsub/issues/1887)) ([2bfa5cc](https://github.com/googleapis/java-pubsub/commit/2bfa5cc894e5a14b1d890bdcad348eeb14520f95)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://github.com/googleapis/java-pubsub/issues/1888)) ([5017789](https://github.com/googleapis/java-pubsub/commit/5017789c996246ece0c5428c68c9c6681b760bca)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://github.com/googleapis/java-pubsub/issues/1891)) ([231ba51](https://github.com/googleapis/java-pubsub/commit/231ba51c8bd2e6a8f3e0171626d35761bd07ae19)) + ## [1.126.4](https://github.com/googleapis/java-pubsub/compare/v1.126.3...v1.126.4) (2024-02-09) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 53f63069f..170d987c1 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.5-SNAPSHOT + 1.126.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 567acd183..5f752ae7f 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 5eed7d4f0..709f489cc 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/pom.xml b/pom.xml index 4271f426d..629d902cd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.5-SNAPSHOT + 1.126.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index f0c1bcae9..2b28f30e1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 78bf34fcd..c7d13fde9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/versions.txt b/versions.txt index cff6d8a28..9a3da02ec 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.4:1.126.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT +google-cloud-pubsub:1.126.5:1.126.5 +grpc-google-cloud-pubsub-v1:1.108.5:1.108.5 +proto-google-cloud-pubsub-v1:1.108.5:1.108.5 From 1107cd10cf49f006bfdad1b52ec73f7a017cc8c2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:56:16 +0000 Subject: [PATCH 044/656] chore(main): release 1.126.6-SNAPSHOT (#1909) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 170d987c1..a54e61ef1 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.5 + 1.126.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 5f752ae7f..7285bd4cd 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 709f489cc..13368046b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 629d902cd..0b694993e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.5 + 1.126.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 2b28f30e1..b4058e568 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c7d13fde9..9069462fd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9a3da02ec..a0ed9a679 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.5:1.126.5 -grpc-google-cloud-pubsub-v1:1.108.5:1.108.5 -proto-google-cloud-pubsub-v1:1.108.5:1.108.5 +google-cloud-pubsub:1.126.5:1.126.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT From b5bb06d10aa7c5e6777d3e1f80fdacda555ac996 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 00:11:16 +0100 Subject: [PATCH 045/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.32.0 (#1911) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.32.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 10 +++++----- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e5617be6d..7426a06e7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.31.0') +implementation platform('com.google.cloud:libraries-bom:26.32.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.5" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 6b5b1b6f7..9e97dc1bc 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 34c2c4bde..63cf928a6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import From 9d7ad1a9c29eef48750bb163ad90eed2dbde4380 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 00:35:53 +0100 Subject: [PATCH 046/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.5 (#1910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7426a06e7..d4e76d6ed 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7495bf7a5..d32756239 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5 From 9636c5526e5cf4507bed69349321b686ddf7ab27 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 06:48:26 +0100 Subject: [PATCH 047/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 (#1913) --- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 90d9a20a0..5e86d37f0 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.24.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 948177be8..8e8cded78 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.24.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 0b694993e..66aaa55b0 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.24.0 + 3.25.0 From 9691c6fabd82eb07fcb5135019be8d6fb260ce6f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 06:49:19 +0100 Subject: [PATCH 048/656] deps: update dependency com.google.cloud:google-cloud-core to v2.33.0 (#1912) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d32756239..93b89585f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9069462fd..4fa7a5164 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 63cf928a6..2bacc7694 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests From a445f3d77c68f2a5dd277616e99b9ee3f20288f7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:50:25 -0500 Subject: [PATCH 049/656] chore(java): make org.graalvm.buildtools:junit-platform-native a test dependency upgrade in renovate (#1922) (#1893) Source-Link: https://github.com/googleapis/synthtool/commit/ee0dedaa6aa1276d9876dddd06655c988f8bd6a2 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 Co-authored-by: Owl Bot Co-authored-by: Mike Prieto --- .github/.OwlBot.lock.yaml | 4 ++-- renovate.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index bf48c82da..b49924db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 -# created: 2024-01-30T19:46:55.029238294Z + digest: sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 +# created: 2024-02-05T19:43:08.106031548Z \ No newline at end of file diff --git a/renovate.json b/renovate.json index 10ded9f10..bd4ed7ef1 100644 --- a/renovate.json +++ b/renovate.json @@ -66,7 +66,8 @@ "^com.google.truth:truth", "^org.mockito:mockito-core", "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" + "^com.google.cloud:google-cloud-conformance-tests", + "^org.graalvm.buildtools:junit-platform-native" ], "semanticCommitType": "test", "semanticCommitScope": "deps" From 97e17e7235c98af58f5f562213ec0289873ea8a5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 06:02:16 +0000 Subject: [PATCH 050/656] chore(main): release 1.126.6 (#1914) :robot: I have created a release *beep* *boop* --- ## [1.126.6](https://togithub.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://togithub.com/googleapis/java-pubsub/issues/1912)) ([9691c6f](https://togithub.com/googleapis/java-pubsub/commit/9691c6fabd82eb07fcb5135019be8d6fb260ce6f)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://togithub.com/googleapis/java-pubsub/issues/1913)) ([9636c55](https://togithub.com/googleapis/java-pubsub/commit/9636c5526e5cf4507bed69349321b686ddf7ab27)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 702c2f306..78e67849a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.126.6](https://github.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://github.com/googleapis/java-pubsub/issues/1912)) ([9691c6f](https://github.com/googleapis/java-pubsub/commit/9691c6fabd82eb07fcb5135019be8d6fb260ce6f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://github.com/googleapis/java-pubsub/issues/1913)) ([9636c55](https://github.com/googleapis/java-pubsub/commit/9636c5526e5cf4507bed69349321b686ddf7ab27)) + ## [1.126.5](https://github.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index a54e61ef1..5eaf3f36f 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.6-SNAPSHOT + 1.126.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 7285bd4cd..0dcb6ffb5 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 13368046b..f3c60406b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/pom.xml b/pom.xml index 66aaa55b0..a6c14fe0b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.6-SNAPSHOT + 1.126.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index b4058e568..a60cf56bc 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4fa7a5164..85e70e723 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/versions.txt b/versions.txt index a0ed9a679..6e589188d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.5:1.126.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT +google-cloud-pubsub:1.126.6:1.126.6 +grpc-google-cloud-pubsub-v1:1.108.6:1.108.6 +proto-google-cloud-pubsub-v1:1.108.6:1.108.6 From 3375bd7aebc565cb4b88079a23624645446afcb0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 06:18:17 +0000 Subject: [PATCH 051/656] chore(main): release 1.126.7-SNAPSHOT (#1915) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 5eaf3f36f..83a67875d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.6 + 1.126.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 0dcb6ffb5..f6d9c47d5 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index f3c60406b..79bd99cb3 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index a6c14fe0b..915b009ad 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.6 + 1.126.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index a60cf56bc..7914373f1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 85e70e723..d6096d745 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6e589188d..931417aaa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.6:1.126.6 -grpc-google-cloud-pubsub-v1:1.108.6:1.108.6 -proto-google-cloud-pubsub-v1:1.108.6:1.108.6 +google-cloud-pubsub:1.126.6:1.126.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT From 309383600f40d449b5c0a0e7b2af98f203522c2e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 15:46:42 +0100 Subject: [PATCH 052/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.6 (#1916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d4e76d6ed..53cd42194 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.6" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 93b89585f..214ca7a91 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6 From 6277476dbd075f78ef19a462b54e9e47d27c7788 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 16 Feb 2024 14:34:31 -0500 Subject: [PATCH 053/656] ci: prepare sample build in CloudBuild (#1921) --- .cloudbuild/samples_build.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .cloudbuild/samples_build.yaml diff --git a/.cloudbuild/samples_build.yaml b/.cloudbuild/samples_build.yaml new file mode 100644 index 000000000..1c3ed5366 --- /dev/null +++ b/.cloudbuild/samples_build.yaml @@ -0,0 +1,17 @@ +steps: +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: ls + args: [ + '-alt', + ] +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: pwd +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: bash + args: [ + './kokoro/build.sh' + ] + env: + - 'JOB_TYPE=samples' + +timeout: 300m From 4a7d6b971f0d16d867c56679d1e7bfbba4e4a67a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:51:17 +0100 Subject: [PATCH 054/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.34.0 (#1917) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 214ca7a91..4e881b4e6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.33.0 + 2.34.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d6096d745..454db1eeb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.33.0 + 2.34.0 From 4bf13bb5f346a53ecf8e1e73e5f3b6d1c99ddf93 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:52:42 +0100 Subject: [PATCH 055/656] deps: update dependency com.google.protobuf:protobuf-java-util to v3.25.3 (#1919) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4e881b4e6..2d271fafe 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 454db1eeb..9fce81e47 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2bacc7694..3669fd9af 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 From b1af8e94fb0b81724378011252b97e1bfd8a9aa5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:52:54 +0100 Subject: [PATCH 056/656] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.1 (#1924) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 9e97dc1bc..38aaf94e9 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.10.0 + 0.10.1 test From cd704bd57b2596d82f2f791476a109a771995b4d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:53:15 +0100 Subject: [PATCH 057/656] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 (#1923) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 38aaf94e9..bcd8cf8cd 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.10.0 + 0.10.1 true pubsub.NativeImagePubSubSample From 262f155ed3390abca9ed070b2845b48b73386ada Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:53:46 +0100 Subject: [PATCH 058/656] test(deps): update dependency com.google.truth:truth to v1.4.1 (#1922) --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 915b009ad..45588af16 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2d271fafe..53cd42567 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index bcd8cf8cd..5646266c7 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9fce81e47..bc2430778 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3669fd9af..41c2b38a8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test From 2039f7e9bee9db1991fae1118e4a6b8ad88ea30c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:02:49 -0500 Subject: [PATCH 059/656] feat: Add an API method for reordering firewall policies (#1868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: small fix in Pub/Sub ingestion comments PiperOrigin-RevId: 606977953 Source-Link: https://github.com/googleapis/googleapis/commit/3d989d19608052ca0e91767129bb55c2ba2572a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/375142e33353dd56aca4cf6d67b9dc550aad03a3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzc1MTQyZTMzMzUzZGQ1NmFjYTRjZjZkNjdiOWRjNTUwYWFkMDNhMyJ9 chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFlZDhhOTdhMDBkMDJmZTQ1NmY2ZWJkNDE2MGM1YjJiMDAwYWQ3NSJ9 build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhNWMyZWYzN2I0ZDY5YzkzZTM5MTQxZDg3YWFlMGIxOTNjMDBiMSJ9 feat: add enforce_in_transit fields and optional annotations PiperOrigin-RevId: 601205737 Source-Link: https://github.com/googleapis/googleapis/commit/27f83015e8aacb6695f56435b3185f6d45fad995 Source-Link: https://github.com/googleapis/googleapis-gen/commit/daf775c7ecd90de69e1304b840a28d201c025f08 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGFmNzc1YzdlY2Q5MGRlNjllMTMwNGI4NDBhMjhkMjAxYzAyNWYwOCJ9 feat: add `ingestion_data_source_settings` field to `Topic` PiperOrigin-RevId: 600786127 Source-Link: https://github.com/googleapis/googleapis/commit/708f769ea3987faa1b810fcb44d9e0ee9172b352 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3b85818ca8f12ace75390cea24e5f3df5ac70be7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2I4NTgxOGNhOGYxMmFjZTc1MzkwY2VhMjRlNWYzZGY1YWM3MGJlNyJ9 fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: https://github.com/googleapis/googleapis/commit/17e6661f8bf43374633adf950454ed8e69bdcee1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add an API method for reordering firewall policies PiperOrigin-RevId: 607015517 Source-Link: https://github.com/googleapis/googleapis/commit/c43e216cc37c82f16b829f583fd9f6864e34c2c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/71c27adc96b0c80093b4a413815bd93943196bb2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzFjMjdhZGM5NmIwYzgwMDkzYjRhNDEzODE1YmQ5Mzk0MzE5NmJiMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 3 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 +- .../pubsub/v1/SubscriptionAdminSettings.java | 3 +- .../cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 3 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 2 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 2 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 4 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 4 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 4 +- .../reflect-config.json | 135 ++++ .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../v1/TopicAdminClientHttpJsonTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 1 + .../v1/AcknowledgeRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/BigQueryConfig.java | 1 + .../pubsub/v1/BigQueryConfigOrBuilder.java | 1 + .../google/pubsub/v1/CloudStorageConfig.java | 28 +- .../v1/CloudStorageConfigOrBuilder.java | 1 + .../google/pubsub/v1/CommitSchemaRequest.java | 28 +- .../v1/CommitSchemaRequestOrBuilder.java | 1 + .../google/pubsub/v1/CreateSchemaRequest.java | 28 +- .../v1/CreateSchemaRequestOrBuilder.java | 1 + .../pubsub/v1/CreateSnapshotRequest.java | 10 +- .../v1/CreateSnapshotRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeadLetterPolicy.java | 1 + .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 1 + .../google/pubsub/v1/DeleteSchemaRequest.java | 1 + .../v1/DeleteSchemaRequestOrBuilder.java | 1 + .../v1/DeleteSchemaRevisionRequest.java | 1 + .../DeleteSchemaRevisionRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSnapshotRequest.java | 1 + .../v1/DeleteSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSubscriptionRequest.java | 1 + .../DeleteSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeleteTopicRequest.java | 1 + .../v1/DeleteTopicRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionRequest.java | 1 + .../DetachSubscriptionRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionResponse.java | 1 + .../DetachSubscriptionResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Encoding.java | 1 + .../google/pubsub/v1/ExpirationPolicy.java | 28 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 1 + .../google/pubsub/v1/GetSchemaRequest.java | 1 + .../pubsub/v1/GetSchemaRequestOrBuilder.java | 1 + .../google/pubsub/v1/GetSnapshotRequest.java | 1 + .../v1/GetSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/GetSubscriptionRequest.java | 1 + .../v1/GetSubscriptionRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/GetTopicRequest.java | 1 + .../pubsub/v1/GetTopicRequestOrBuilder.java | 1 + .../v1/IngestionDataSourceSettings.java | 3 +- .../IngestionDataSourceSettingsOrBuilder.java | 1 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 1 + .../ListSchemaRevisionsRequestOrBuilder.java | 1 + .../v1/ListSchemaRevisionsResponse.java | 1 + .../ListSchemaRevisionsResponseOrBuilder.java | 1 + .../google/pubsub/v1/ListSchemasRequest.java | 1 + .../v1/ListSchemasRequestOrBuilder.java | 1 + .../google/pubsub/v1/ListSchemasResponse.java | 1 + .../v1/ListSchemasResponseOrBuilder.java | 1 + .../pubsub/v1/ListSnapshotsRequest.java | 1 + .../v1/ListSnapshotsRequestOrBuilder.java | 1 + .../pubsub/v1/ListSnapshotsResponse.java | 1 + .../v1/ListSnapshotsResponseOrBuilder.java | 1 + .../pubsub/v1/ListSubscriptionsRequest.java | 1 + .../v1/ListSubscriptionsRequestOrBuilder.java | 1 + .../pubsub/v1/ListSubscriptionsResponse.java | 1 + .../ListSubscriptionsResponseOrBuilder.java | 1 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 1 + .../ListTopicSnapshotsRequestOrBuilder.java | 1 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 1 + .../ListTopicSnapshotsResponseOrBuilder.java | 1 + .../v1/ListTopicSubscriptionsRequest.java | 1 + ...istTopicSubscriptionsRequestOrBuilder.java | 1 + .../v1/ListTopicSubscriptionsResponse.java | 1 + ...stTopicSubscriptionsResponseOrBuilder.java | 1 + .../google/pubsub/v1/ListTopicsRequest.java | 1 + .../pubsub/v1/ListTopicsRequestOrBuilder.java | 1 + .../google/pubsub/v1/ListTopicsResponse.java | 1 + .../v1/ListTopicsResponseOrBuilder.java | 1 + .../pubsub/v1/MessageStoragePolicy.java | 1 + .../v1/MessageStoragePolicyOrBuilder.java | 1 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 1 + .../v1/ModifyAckDeadlineRequestOrBuilder.java | 1 + .../pubsub/v1/ModifyPushConfigRequest.java | 28 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 1 + .../pubsub/v1/PublishRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/PublishResponse.java | 1 + .../pubsub/v1/PublishResponseOrBuilder.java | 1 + .../com/google/pubsub/v1/PubsubMessage.java | 37 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 1 + .../com/google/pubsub/v1/PubsubProto.java | 717 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 9 +- .../pubsub/v1/PullRequestOrBuilder.java | 3 +- .../com/google/pubsub/v1/PullResponse.java | 1 + .../pubsub/v1/PullResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/PushConfig.java | 10 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 1 + .../com/google/pubsub/v1/ReceivedMessage.java | 28 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 1 + .../com/google/pubsub/v1/RetryPolicy.java | 42 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 1 + .../pubsub/v1/RollbackSchemaRequest.java | 1 + .../v1/RollbackSchemaRequestOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Schema.java | 28 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 1 + .../com/google/pubsub/v1/SchemaProto.java | 200 ++--- .../com/google/pubsub/v1/SchemaSettings.java | 1 + .../pubsub/v1/SchemaSettingsOrBuilder.java | 1 + .../java/com/google/pubsub/v1/SchemaView.java | 1 + .../com/google/pubsub/v1/SeekRequest.java | 1 + .../pubsub/v1/SeekRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/SeekResponse.java | 1 + .../pubsub/v1/SeekResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Snapshot.java | 37 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 1 + .../pubsub/v1/StreamingPullRequest.java | 33 +- .../v1/StreamingPullRequestOrBuilder.java | 1 + .../pubsub/v1/StreamingPullResponse.java | 57 +- .../v1/StreamingPullResponseOrBuilder.java | 1 + .../com/google/pubsub/v1/Subscription.java | 135 ++-- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 1 + .../main/java/com/google/pubsub/v1/Topic.java | 115 +-- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 10 +- .../pubsub/v1/UpdateSnapshotRequest.java | 42 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/UpdateSubscriptionRequest.java | 42 +- .../UpdateSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/UpdateTopicRequest.java | 42 +- .../v1/UpdateTopicRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateMessageRequest.java | 1 + .../v1/ValidateMessageRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateMessageResponse.java | 1 + .../v1/ValidateMessageResponseOrBuilder.java | 1 + .../pubsub/v1/ValidateSchemaRequest.java | 28 +- .../v1/ValidateSchemaRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateSchemaResponse.java | 1 + .../v1/ValidateSchemaResponseOrBuilder.java | 1 + .../main/proto/google/pubsub/v1/pubsub.proto | 5 +- 174 files changed, 1338 insertions(+), 769 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 02b4aef14..ae7ee1af2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 67d08bb63..152cb4fb9 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -207,7 +207,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SchemaServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SchemaServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 7eca1a773..8f2323217 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 7f50be718..a306bf2b9 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -246,7 +246,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SubscriberStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SubscriberStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index a80ed29ec..6449c2f8c 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 9dd62bda3..c4db6a8d5 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -206,7 +206,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return PublisherStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 5e73e3a64..70eed8c36 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 60af80164..0ca66bdc8 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index d4c26515d..3ea32264e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index b7ad8cab4..e2728094e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index cbaf6a608..d3fbc1d67 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 27f99f671..8b12c81c0 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index b3651167c..b3c3e671b 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index cd5b6e6f2..bf26ec9df 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index 5ae0dfc9e..cc52e0132 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index c1db412c1..049e3978e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 186405096..0d63ad825 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 7acbff90f..6ed7053d5 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 010a08bac..ea305a938 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 5b8ed6112..011ad51e2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 262a09205..11c0eadd7 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -539,7 +539,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) @@ -547,7 +546,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index ab5200375..b36f779af 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index bb5e127d3..e63ac6d7c 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -399,7 +399,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -408,7 +407,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index f04f4acd5..94b56c5a1 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 93122a831..85c2a53d7 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -443,7 +443,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -452,7 +451,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 441c326d2..de5e1f2be 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -674,6 +674,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -809,6 +818,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -872,6 +989,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index c17e00ad2..9b682f478 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index e18c2a7bc..f65568ec0 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 2a26cd59a..adb60419d 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 47cf6f416..75c254dc5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index 29559fa86..2073458cc 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index 8510e1b77..f49e2cc45 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 13b54dd7a..33c80a111 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 389fc6561..d2d892031 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index 964b25a6e..06df1993b 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 7d216444b..a33b9c5bd 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 433d1aa6c..1943554ac 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index c636cdcd3..470a26334 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 2dc4d6e09..821411d6d 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 44a9c11c5..fa7e7bd06 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index f118acddd..7d02c1dae 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ef4ff0f2c..47b7ef171 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 8bc70c28b..4ada79896 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 2742cc001..1162f9931 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index b44f9b427..def2b0461 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -1262,6 +1263,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstanceForT } } + private int bitField0_; private int outputFormatCase_ = 0; @SuppressWarnings("serial") @@ -1614,7 +1616,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig */ @java.lang.Override public boolean hasMaxDuration() { - return maxDuration_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1741,7 +1743,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputFormatCase_ == 5) { output.writeMessage(5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); } - if (maxDuration_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getMaxDuration()); } if (maxBytes_ != 0L) { @@ -1778,7 +1780,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); } - if (maxDuration_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxDuration()); } if (maxBytes_ != 0L) { @@ -1988,10 +1990,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CloudStorageConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaxDurationFieldBuilder(); + } } @java.lang.Override @@ -2062,9 +2073,11 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.filenameSuffix_ = filenameSuffix_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.maxDuration_ = maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.maxBytes_ = maxBytes_; @@ -2072,6 +2085,7 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) { @@ -3216,8 +3230,10 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { } else { maxDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (maxDuration_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 780c0ea61..8b561caf3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 2c1c5b2dd..b0cd68691 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.CommitSchemaRequest.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,7 +136,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } getUnknownFields().writeTo(output); @@ -197,7 +199,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); @@ -366,10 +368,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CommitSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -421,9 +432,12 @@ private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -757,8 +771,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 3bdf1c9bf..638f15d98 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index c53c7f0ab..ab23cc3db 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -139,7 +141,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { @@ -447,10 +449,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -503,12 +514,15 @@ private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.schemaId_ = schemaId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -873,8 +887,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 4d7883850..b72efe40c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 5cd0670a2..48f0131c2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetLabels(); @@ -520,7 +522,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetLabels(); @@ -530,7 +533,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableLabels(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ae5776a89..ecd2d5d2f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 04e61da32..a5b1e0132 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 8782315f6..ef589a2a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index f2b94a760..d6b1e3c58 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index a40fb98aa..9faabb2bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 3f0288302..5d17ea9f2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 5b6bb574f..c795a1e1d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index a8429c3de..6ce385f7e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 49328a977..fa454e735 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 28aecaadd..6dd193063 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 793cb2a16..22525f2bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index df449fac8..6691a8e02 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 00b6fa902..236ae63cc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index b563d3d38..ed63937e3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 50b968b41..0fa26b570 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index a0c910e2c..8974d658a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index e667c16ef..0d50e273c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 883df5b84..5fa8f2e58 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index a64bf1fec..cf5dfe323 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ExpirationPolicy.Builder.class); } + private int bitField0_; public static final int TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration ttl_; /** @@ -81,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasTtl() { - return ttl_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -136,7 +138,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (ttl_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTtl()); } getUnknownFields().writeTo(output); @@ -148,7 +150,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (ttl_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl()); } size += getUnknownFields().getSerializedSize(); @@ -314,10 +316,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTtlFieldBuilder(); + } } @java.lang.Override @@ -365,9 +376,12 @@ public com.google.pubsub.v1.ExpirationPolicy buildPartial() { private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -594,8 +608,10 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { } else { ttlBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (ttl_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index c46d53a5f..39d5d21b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 9d6a6bd87..a849d24bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 81fa8291f..09647ffce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 54051d611..5e453d1f7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 2c195ca68..24afcaa92 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index f2bfee161..b46914346 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index a61e7e84f..b9fd18e9c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 2b801c10a..237a22107 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 3e38266a3..423d0053c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 04c354d8b..1e2f25b46 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -260,7 +261,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Possible states for managed ingestion from Amazon Kinesis Data Streams.
+     * Possible states for ingestion from Amazon Kinesis Data Streams.
      * 
* * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index a343777ad..7191edd93 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 2831126cf..3c3ae0b53 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index dbe66052f..9fc4c6771 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 924db9436..f48aabaef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 062f6c84b..03a233f0b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 557437614..cea16a7e6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index d8728e999..0b8eb8c94 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 44683e3f5..eb6b7c8cd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index bbdfbc82d..4a7c6da09 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 79ec013a9..e375b2312 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 05f0505ad..6add8724c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 1c9846664..5fa3caa84 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 0c3fc0c72..3a0fc2f18 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 9097f6578..0d1033830 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index d557e4be4..cf0a23a85 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 98d425317..38bcdaa7b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 74d60d6a7..9702ee6a8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index b3418a718..04d59ac07 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 505e00fe2..ed7e3b6ba 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 2b6561aa6..9e0ddfe5a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index abbe62fa5..d8fa52928 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 01ba987d2..1cd0ec4d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index bf8a6cd5a..f566e81cf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index e139fec30..3b1394a94 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 942228db7..b1d983699 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 0bb992da2..49f2b04d7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8abf06b96..2207da516 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index d4541e1a5..1ddab4ffe 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 42d7bcb44..fa0fc598b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index eb2f9ffbf..8b59c4383 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index bc798cf5b..50763bc80 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 0e876c7b5..58c76b3cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index ebc7adb12..3286db14c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 149b4c6b7..8cb3d6f3b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } + private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -140,7 +142,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { */ @java.lang.Override public boolean hasPushConfig() { - return pushConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -200,7 +202,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPushConfig()); } getUnknownFields().writeTo(output); @@ -215,7 +217,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); } size += getUnknownFields().getSerializedSize(); @@ -385,10 +387,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPushConfigFieldBuilder(); + } } @java.lang.Override @@ -440,9 +451,12 @@ private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.subscription_ = subscription_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -808,8 +822,10 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } else { pushConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (pushConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 070e63226..15f80a19b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index d04475ab0..64195e3fc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 69e13fab3..0c0b2828a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index c4309802a..46faa9c93 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index dcc525d03..2d8fc0182 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index a657c199d..1d7365285 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 8f310f54c..493f01cce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -63,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -82,6 +84,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.PubsubMessage.Builder.class); } + private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** @@ -289,7 +292,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { */ @java.lang.Override public boolean hasPublishTime() { - return publishTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -411,7 +414,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); } - if (publishTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPublishTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { @@ -442,7 +445,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); } - if (publishTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { @@ -621,7 +624,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -631,7 +635,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableAttributes(); @@ -651,10 +656,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPublishTimeFieldBuilder(); + } } @java.lang.Override @@ -715,13 +729,16 @@ private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.messageId_ = messageId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.publishTime_ = publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.orderingKey_ = orderingKey_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1346,8 +1363,10 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { } else { publishTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (publishTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 2736aca97..1509232e7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 971dec18f..687428395 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public final class PubsubProto { @@ -292,366 +293,362 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/protobuf/empty.proto\032 google/protob" + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" - + "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" - + "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" - + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" - + "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" - + "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" - + "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" - + "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" - + "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" - + "bsub.v1.IngestionDataSourceSettings.AwsK" - + "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" - + " \001(\0162>.google.pubsub.v1.IngestionDataSou" - + "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" - + "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" - + "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" - + "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" - + "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" - + "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" - + "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" - + "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" - + "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" - + "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" - + "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" - + "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" - + "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" - + "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" - + "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" - + "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" - + "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" - + "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" - + " \001(\0132-.google.pubsub.v1.IngestionDataSou" - + "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" - + "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" - + "is.com/Topic\022!projects/{project}/topics/" - + "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" - + "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" - + "(\0132/.google.pubsub.v1.PubsubMessage.Attr" - + "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" - + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" - + "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" - + "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" - + "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" - + "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" - + "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" - + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" - + "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" - + "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" - + "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022\027\n\tpage_siz" - + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" - + "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." - + "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" - + "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" - + "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" - + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" - + "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" - + "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\022\035\n\017next_page_token\030" - + "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" - + "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" - + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" - + "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" - + "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" - + "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" - + "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" - + "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" - + "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" - + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." - + "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" - + " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" - + "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" - + "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" - + "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" - + "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" - + "ge_retention_duration\030\010 \001(\0132\031.google.pro" - + "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" - + "oogle.pubsub.v1.Subscription.LabelsEntry" - + "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" - + "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" - + "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" - + "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" - + " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" - + "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" - + "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " - + "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" - + "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" - + "_duration\030\021 \001(\0132\031.google.protobuf.Durati" - + "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." - + "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" - + "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" - + "is.com/Subscription\022/projects/{project}/" - + "subscriptions/{subscription}\"\201\001\n\013RetryPo" - + "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" - + "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" - + "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" - + "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" - + "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" - + " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " - + "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" - + "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" - + "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." - + "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" - + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" - + "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" - + " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" - + "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" - + "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" - + "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" - + "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" - + "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" - + "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" - + "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" - + "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" - + "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" - + "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" - + "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" - + "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" - + "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" - + "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" - + "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" - + "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" - + "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" - + "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConf" - + "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" - + "(\0132/.google.pubsub.v1.CloudStorageConfig" - + ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" - + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" - + "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" - + "gle.pubsub.v1.CloudStorageConfig.StateB\004" - + "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" - + "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" - + "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" - + "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" - + "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" - + "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" - + "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" - + "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" - + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\"\216\001\n\031UpdateSubscript" - + "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" - + "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" - + "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" - + "er.googleapis.com/Project\022\027\n\tpage_size\030\002" - + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" - + "ListSubscriptionsResponse\022;\n\rsubscriptio" - + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" - + "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" - + "\031DeleteSubscriptionRequest\022A\n\014subscripti" - + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\"\225\001\n\027ModifyPushConfigReques" - + "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\0227\n\013push_con" - + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" - + "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " - + "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" - + "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" - + "Response\022B\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" - + "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" - + "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" - + "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" - + "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" - + "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\025\n\007a" - + "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" - + "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" - + "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" - + "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" - + "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" - + "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" - + "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" - + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" - + "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" - + "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" - + "llResponse.AcknowledgeConfirmationB\004\342A\001\001" - + "\022u\n modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" - + "e\n\027subscription_properties\030\004 \001(\0132>.googl" - + "e.pubsub.v1.StreamingPullResponse.Subscr" - + "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" - + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" - + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" - + "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" - + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" - + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" - + "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" - + "Properties\022+\n\035exactly_once_delivery_enab" - + "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" - + "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" - + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" - + "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" - + "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" - + "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" - + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" - + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" - + "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" - + "sub.googleapis.com/Topic\0225\n\013expire_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" - + "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" - + "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" - + "b.googleapis.com/Snapshot\022\'projects/{pro" - + "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" - + "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" - + "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" - + "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" - + "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" - + "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" - + "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" - + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" - + "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" - + "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" - + "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" - + "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" - + "c\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002" - + "#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" - + "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" - + "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" - + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" - + "oogle.pubsub.v1.PublishRequest\032!.google." - + "pubsub.v1.PublishResponse\"C\332A\016topic,mess" - + "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" - + "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" - + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" - + "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." - + "pubsub.v1.ListTopicsRequest\032$.google.pub" - + "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" - + "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub." - + "v1.ListTopicSubscriptionsRequest\0320.googl" - + "e.pubsub.v1.ListTopicSubscriptionsRespon" - + "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" - + "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" - + "napshots\022+.google.pubsub.v1.ListTopicSna" - + "pshotsRequest\032,.google.pubsub.v1.ListTop" - + "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" - + "/{topic=projects/*/topics/*}/snapshots\022|" - + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" - + "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" - + "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" - + "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" - + "sub.v1.DetachSubscriptionRequest\032,.googl" - + "e.pubsub.v1.DetachSubscriptionResponse\"<" - + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" - + "scriptions/*}:detach\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" - + "Subscription\022\036.google.pubsub.v1.Subscrip" - + "tion\032\036.google.pubsub.v1.Subscription\"^\332A" - + "+name,topic,push_config,ack_deadline_sec" - + "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" - + "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" - + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" - + "gle.pubsub.v1.Subscription\"D\332A\014subscript" - + "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" - + "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" - + "+.google.pubsub.v1.UpdateSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"X\332A" - + "\030subscription,update_mask\202\323\344\223\002722/v1/{su" - + "bscription.name=projects/*/subscriptions" - + "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" - + "bsub.v1.ListSubscriptionsRequest\032+.googl" - + "e.pubsub.v1.ListSubscriptionsResponse\"8\332" - + "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" - + "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" - + ".google.pubsub.v1.DeleteSubscriptionRequ" - + "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" - + "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" - + "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" - + "*.google.pubsub.v1.ModifyAckDeadlineRequ" - + "est\032\026.google.protobuf.Empty\"v\332A)subscrip" - + "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" - + "?/v1/{subscription=projects/*/subscripti" - + "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" - + "dge\022$.google.pubsub.v1.AcknowledgeReques" - + "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" - + "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" - + "ects/*/subscriptions/*}:acknowledge:\001*\022\320" - + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" - + ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" - + "cription,return_immediately,max_messages" - + "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" - + "ub.v1.StreamingPullRequest\032\'.google.pubs" - + "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" - + "difyPushConfig\022).google.pubsub.v1.Modify" - + "PushConfigRequest\032\026.google.protobuf.Empt" - + "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022" - + "$.google.pubsub.v1.GetSnapshotRequest\032\032." - + "google.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323" - + "\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots" - + "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" - + ".ListSnapshotsRequest\032\'.google.pubsub.v1" - + ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" - + "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" - + "eSnapshotRequest\032\032.google.pubsub.v1.Snap" - + "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" - + "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" - + "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" - + "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" - + "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" - + "eSnapshotRequest\032\026.google.protobuf.Empty" - + "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" - + "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" - + "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" - + "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" - + "bsub.googleapis.com\322AUhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" - + "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" - + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" - + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" - + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - + "b\006proto3" + + "oto\"a\n\024MessageStoragePolicy\022(\n\033allowed_p" + + "ersistence_regions\030\001 \003(\tB\003\340A\001\022\037\n\022enforce" + + "_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n\016SchemaSetting" + + "s\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.google" + + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" + + " \001(\tB\003\340A\001\"\352\003\n\033IngestionDataSourceSetting" + + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + + "1.IngestionDataSourceSettings.AwsKinesis" + + "B\003\340A\001H\000\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>." + + "google.pubsub.v1.IngestionDataSourceSett" + + "ings.AwsKinesis.StateB\003\340A\003\022\027\n\nstream_arn" + + "\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031" + + "\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service" + + "_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERM" + + "ISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DE" + + "NIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER" + + "_NOT_FOUND\020\005B\010\n\006source\"\272\005\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message" + + "_storage_policy\030\003 \001(\0132&.google.pubsub.v1" + + ".MessageStoragePolicyB\003\340A\001\022\031\n\014kms_key_na" + + "me\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 " + + ".google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n" + + "\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_ret" + + "ention_duration\030\010 \001(\0132\031.google.protobuf." + + "DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pu" + + "bsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_da" + + "ta_source_settings\030\n \001(\0132-.google.pubsub" + + ".v1.IngestionDataSourceSettingsB\003\340A\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" + + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352" + + "AQ\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\022\017_deleted-top" + + "ic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001" + + "\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1." + + "PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nme" + + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\031\n\014ordering_key" + + "\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReques" + + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" + + "pis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005t" + + "opic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topi" + + "c\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" + + "opic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub.v" + + "1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse\022" + + "\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopics" + + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030\001" + + " \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSu" + + "bscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A" + + "\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_s" + + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" + + "\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rsu" + + "bscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.google" + + "apis.com/Subscription\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReques" + + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" + + "pis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnaps" + + "hotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017" + + "next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopi" + + "cRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub." + + "googleapis.com/Topic\"]\n\031DetachSubscripti" + + "onRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\034\n\032D" + + "etachSubscriptionResponse\"\357\010\n\014Subscripti" + + "on\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A" + + "\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pus" + + "h_config\030\004 \001(\0132\034.google.pubsub.v1.PushCo" + + "nfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .goo" + + "gle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024clo" + + "ud_storage_config\030\026 \001(\0132$.google.pubsub." + + "v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadli" + + "ne_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_me" + + "ssages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v1" + + ".Subscription.LabelsEntryB\003\340A\001\022$\n\027enable" + + "_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirati" + + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" + + "ationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n" + + "\022dead_letter_policy\030\r \001(\0132\".google.pubsu" + + "b.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_poli" + + "cy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicyB" + + "\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_ex" + + "actly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_" + + "message_retention_duration\030\021 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162" + + "$.google.pubsub.v1.Subscription.StateB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"" + + "pubsub.googleapis.com/Subscription\022/proj" + + "ects/{project}/subscriptions/{subscripti" + + "on}\"\177\n\013RetryPolicy\0227\n\017minimum_backoff\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n\017m" + + "aximum_backoff\030\002 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead" + + "_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery" + + "_attempts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy" + + "\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 " + + "\001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.google.pu" + + "bsub.v1.PushConfig.AttributesEntryB\003\340A\001\022" + + "A\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" + + "ushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wra" + + "pper\030\004 \001(\0132*.google.pubsub.v1.PushConfig" + + ".PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(" + + "\0132&.google.pubsub.v1.PushConfig.NoWrappe" + + "rB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_account" + + "_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001" + + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" + + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" + + "tication_methodB\t\n\007wrapper\"\352\002\n\016BigQueryC" + + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" + + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" + + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" + + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" + + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" + + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" + + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\316\004\n\022Clou" + + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" + + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" + + "ffix\030\003 \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.g" + + "oogle.pubsub.v1.CloudStorageConfig.TextC" + + "onfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.goog" + + "le.pubsub.v1.CloudStorageConfig.AvroConf" + + "igB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001" + + "(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v" + + "1.CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextC" + + "onfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 " + + "\001(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tN" + + "OT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRI" + + "CTION\020\004B\017\n\routput_format\"|\n\017ReceivedMess" + + "age\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(" + + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022" + + "\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSub" + + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" + + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" + + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscr" + + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespon" + + "se\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsu" + + "b.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\223\001\n\027ModifyPu" + + "shConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v" + + "1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022!\n\022return_immediatel" + + "y\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A" + + "\002\"Q\n\014PullResponse\022A\n\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB" + + "\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A" + + "\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022" + + "AcknowledgeRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Streaming" + + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_s" + + "econds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack" + + "_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_s" + + "econds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A" + + "\001\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001" + + "\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025StreamingPullResponse\022A\n\021received_messa" + + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" + + "sageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 " + + "\001(\0132?.google.pubsub.v1.StreamingPullResp" + + "onse.AcknowledgeConfirmationB\003\340A\001\022t\n mod" + + "ify_ack_deadline_confirmation\030\003 \001(\0132E.go" + + "ogle.pubsub.v1.StreamingPullResponse.Mod" + + "ifyAckDeadlineConfirmationB\003\340A\001\022d\n\027subsc" + + "ription_properties\030\004 \001(\0132>.google.pubsub" + + ".v1.StreamingPullResponse.SubscriptionPr" + + "opertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmatio" + + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" + + "ds\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\t" + + "B\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB" + + "\003\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002" + + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 " + + "\003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035ex" + + "actly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%" + + "\n\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002" + + "\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340" + + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n" + + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022H\n\006labels\030\003 \003(\0132" + + "3.google.pubsub.v1.CreateSnapshotRequest" + + ".LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnaps" + + "hotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pu" + + "bsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010" + + "Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001" + + "(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "4\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.p" + + "ubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" + + "projects/{project}/snapshots/{snapshot}\"" + + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" + + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" + + "\215\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshots" + + "Response\0222\n\tsnapshots\030\001 \003(\0132\032.google.pub" + + "sub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030" + + "\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010s" + + "napshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis" + + ".com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscri" + + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c" + + "om/Subscription\022/\n\004time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001" + + "(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsh" + + "otH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPubli" + + "sher\022q\n\013CreateTopic\022\027.google.pubsub.v1.T" + + "opic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323" + + "\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022" + + "\221\001\n\013UpdateTopic\022$.google.pubsub.v1.Updat" + + "eTopicRequest\032\027.google.pubsub.v1.Topic\"C" + + "\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.n" + + "ame=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022" + + " .google.pubsub.v1.PublishRequest\032!.goog" + + "le.pubsub.v1.PublishResponse\"C\332A\016topic,m" + + "essages\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" + + "ics/*}:publish:\001*\022w\n\010GetTopic\022!.google.p" + + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" + + ".v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pr" + + "ojects/*/topics/*}\022\212\001\n\nListTopics\022#.goog" + + "le.pubsub.v1.ListTopicsRequest\032$.google." + + "pubsub.v1.ListTopicsResponse\"1\332A\007project" + + "\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022" + + "\272\001\n\026ListTopicSubscriptions\022/.google.pubs" + + "ub.v1.ListTopicSubscriptionsRequest\0320.go" + + "ogle.pubsub.v1.ListTopicSubscriptionsRes" + + "ponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projec" + + "ts/*/topics/*}/subscriptions\022\252\001\n\022ListTop" + + "icSnapshots\022+.google.pubsub.v1.ListTopic" + + "SnapshotsRequest\032,.google.pubsub.v1.List" + + "TopicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)" + + "/v1/{topic=projects/*/topics/*}/snapshot" + + "s\022|\n\013DeleteTopic\022$.google.pubsub.v1.Dele" + + "teTopicRequest\032\026.google.protobuf.Empty\"/" + + "\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/to" + + "pics/*}\022\255\001\n\022DetachSubscription\022+.google." + + "pubsub.v1.DetachSubscriptionRequest\032,.go" + + "ogle.pubsub.v1.DetachSubscriptionRespons" + + "e\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/" + + "subscriptions/*}:detach\032p\312A\025pubsub.googl" + + "eapis.com\322AUhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Cre" + + "ateSubscription\022\036.google.pubsub.v1.Subsc" + + "ription\032\036.google.pubsub.v1.Subscription\"" + + "^\332A+name,topic,push_config,ack_deadline_" + + "seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subs" + + "criptions/*}:\001*\022\241\001\n\017GetSubscription\022(.go" + + "ogle.pubsub.v1.GetSubscriptionRequest\032\036." + + "google.pubsub.v1.Subscription\"D\332A\014subscr" + + "iption\202\323\344\223\002/\022-/v1/{subscription=projects" + + "/*/subscriptions/*}\022\273\001\n\022UpdateSubscripti" + + "on\022+.google.pubsub.v1.UpdateSubscription" + + "Request\032\036.google.pubsub.v1.Subscription\"" + + "X\332A\030subscription,update_mask\202\323\344\223\002722/v1/" + + "{subscription.name=projects/*/subscripti" + + "ons/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google" + + ".pubsub.v1.ListSubscriptionsRequest\032+.go" + + "ogle.pubsub.v1.ListSubscriptionsResponse" + + "\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=project" + + "s/*}/subscriptions\022\237\001\n\022DeleteSubscriptio" + + "n\022+.google.pubsub.v1.DeleteSubscriptionR" + + "equest\032\026.google.protobuf.Empty\"D\332A\014subsc" + + "ription\202\323\344\223\002/*-/v1/{subscription=project" + + "s/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadli" + + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" + + "equest\032\026.google.protobuf.Empty\"v\332A)subsc" + + "ription,ack_ids,ack_deadline_seconds\202\323\344\223" + + "\002D\"?/v1/{subscription=projects/*/subscri" + + "ptions/*}:modifyAckDeadline:\001*\022\250\001\n\013Ackno" + + "wledge\022$.google.pubsub.v1.AcknowledgeReq" + + "uest\032\026.google.protobuf.Empty\"[\332A\024subscri" + + "ption,ack_ids\202\323\344\223\002>\"9/v1/{subscription=p" + + "rojects/*/subscriptions/*}:acknowledge:\001" + + "*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullReques" + + "t\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,s" + + "ubscription,return_immediately,max_messa" + + "ges\332A\031subscription,max_messages\202\323\344\223\0027\"2/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:pull:\001*\022f\n\rStreamingPull\022&.google.p" + + "ubsub.v1.StreamingPullRequest\032\'.google.p" + + "ubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.Mod" + + "ifyPushConfigRequest\032\026.google.protobuf.E" + + "mpty\"d\332A\030subscription,push_config\202\323\344\223\002C\"" + + ">/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsh" + + "ot\022$.google.pubsub.v1.GetSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"8\332A\010snapsho" + + "t\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\022\226\001\n\rListSnapshots\022&.google.pubsub" + + ".v1.ListSnapshotsRequest\032\'.google.pubsub" + + ".v1.ListSnapshotsResponse\"4\332A\007project\202\323\344" + + "\223\002$\022\"/v1/{project=projects/*}/snapshots\022" + + "\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cr" + + "eateSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1" + + "/{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Up" + + "dateSnapshot\022\'.google.pubsub.v1.UpdateSn" + + "apshotRequest\032\032.google.pubsub.v1.Snapsho" + + "t\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{s" + + "napshot.name=projects/*/snapshots/*}:\001*\022" + + "\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" + + "leteSnapshotRequest\032\026.google.protobuf.Em" + + "pty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pr" + + "ojects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google." + + "pubsub.v1.SeekRequest\032\036.google.pubsub.v1" + + ".SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription" + + "=projects/*/subscriptions/*}:seek:\001*\032p\312A" + + "\025pubsub.googleapis.com\322AUhttps://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/pubsubB\252\001\n\024com.g" + + "oogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.go" + + "ogle.com/go/pubsub/apiv1/pubsubpb;pubsub" + + "pb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\" + + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7375cea5d..49e0f1204 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -136,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4f2b226c5..bcc0846fa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PullRequestOrBuilder @@ -71,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 2b6824183..f63d9e26b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 39112729e..dd54132aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 074068dc4..01c977f88 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -53,7 +54,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -2759,7 +2761,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -2769,7 +2772,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableAttributes(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index b39c32241..6fa337bfd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 8fd798b36..c29968fa1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ReceivedMessage.Builder.class); } + private int bitField0_; public static final int ACK_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { */ @java.lang.Override public boolean hasMessage() { - return message_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -212,7 +214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); } - if (message_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMessage()); } if (deliveryAttempt_ != 0) { @@ -230,7 +232,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } - if (message_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); } if (deliveryAttempt_ != 0) { @@ -404,10 +406,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } } @java.lang.Override @@ -459,12 +470,15 @@ private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.ackId_ = ackId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deliveryAttempt_ = deliveryAttempt_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -799,8 +813,10 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { } else { messageBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (message_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index e8b2c0622..c264dbcff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 31375806d..1d732b864 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class); } + private int bitField0_; public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1; private com.google.protobuf.Duration minimumBackoff_; /** @@ -85,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasMinimumBackoff() { - return minimumBackoff_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -142,7 +144,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { */ @java.lang.Override public boolean hasMaximumBackoff() { - return maximumBackoff_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -197,10 +199,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minimumBackoff_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMinimumBackoff()); } - if (maximumBackoff_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMaximumBackoff()); } getUnknownFields().writeTo(output); @@ -212,10 +214,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (minimumBackoff_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff()); } - if (maximumBackoff_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff()); } size += getUnknownFields().getSerializedSize(); @@ -398,10 +400,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMinimumBackoffFieldBuilder(); + getMaximumBackoffFieldBuilder(); + } } @java.lang.Override @@ -453,14 +465,18 @@ public com.google.pubsub.v1.RetryPolicy buildPartial() { private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.minimumBackoff_ = minimumBackoffBuilder_ == null ? minimumBackoff_ : minimumBackoffBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maximumBackoff_ = maximumBackoffBuilder_ == null ? maximumBackoff_ : maximumBackoffBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -688,8 +704,10 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { } else { minimumBackoffBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (minimumBackoff_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -903,8 +921,10 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { } else { maximumBackoffBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (maximumBackoff_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 42cfa2210..243fada30 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 3b9f46ddc..c35c26333 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 992986674..4ee8574d4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 1eef47c39..3966a39d4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -220,6 +221,7 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Schema.Type) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -434,7 +436,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { */ @java.lang.Override public boolean hasRevisionCreateTime() { - return revisionCreateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -499,7 +501,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); } - if (revisionCreateTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getRevisionCreateTime()); } getUnknownFields().writeTo(output); @@ -523,7 +525,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } - if (revisionCreateTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -698,10 +700,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.Schema.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRevisionCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -763,12 +774,15 @@ private void buildPartial0(com.google.pubsub.v1.Schema result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.revisionId_ = revisionId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null ? revisionCreateTime_ : revisionCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1457,8 +1471,10 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { } else { revisionCreateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (revisionCreateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index 2d8968ddf..d4bb6fa5f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index d16516796..10e502b33 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index d04c35cb0..a9aa77211 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public final class SchemaProto { @@ -101,107 +102,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" + "roto\032\033google/protobuf/empty.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\276\002\n\006Schema\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\004type\030\002 \001(\0162\035.google" - + ".pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001" - + "(\t\022\032\n\013revision_id\030\004 \001(\tB\005\342A\002\005\003\022>\n\024revisi" + + "e/protobuf/timestamp.proto\"\275\002\n\006Schema\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035.google." + + "pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001(" + + "\t\022\033\n\013revision_id\030\004 \001(\tB\006\340A\005\340A\003\022=\n\024revisi" + "on_create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFI" - + "ED\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC" - + "\n\034pubsub.googleapis.com/Schema\022#projects" - + "/{project}/schemas/{schema}\"\217\001\n\023CreateSc" - + "hemaRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\022\034pu" - + "bsub.googleapis.com/Schema\022.\n\006schema\030\002 \001" - + "(\0132\030.google.pubsub.v1.SchemaB\004\342A\001\002\022\021\n\tsc" - + "hema_id\030\003 \001(\t\"s\n\020GetSchemaRequest\0223\n\004nam" - + "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/" - + "Schema\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1." - + "SchemaView\"\255\001\n\022ListSchemasRequest\022D\n\006par" - + "ent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager" - + ".googleapis.com/Project\022*\n\004view\030\002 \001(\0162\034." - + "google.pubsub.v1.SchemaView\022\021\n\tpage_size" - + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchema" - + "sResponse\022)\n\007schemas\030\001 \003(\0132\030.google.pubs" - + "ub.v1.Schema\022\027\n\017next_page_token\030\002 \001(\t\"\244\001" - + "\n\032ListSchemaRevisionsRequest\0223\n\004name\030\001 \001" - + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" - + "a\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Schem" - + "aView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" - + " \001(\t\"a\n\033ListSchemaRevisionsResponse\022)\n\007s" - + "chemas\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027" - + "\n\017next_page_token\030\002 \001(\t\"z\n\023CommitSchemaR" - + "equest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.go" - + "ogleapis.com/Schema\022.\n\006schema\030\002 \001(\0132\030.go" - + "ogle.pubsub.v1.SchemaB\004\342A\001\002\"g\n\025RollbackS" - + "chemaRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pub" - + "sub.googleapis.com/Schema\022\031\n\013revision_id" - + "\030\002 \001(\tB\004\342A\001\002\"o\n\033DeleteSchemaRevisionRequ" - + "est\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022\033\n\013revision_id\030\002 \001(\tB\006\030" - + "\001\342A\001\001\"J\n\023DeleteSchemaRequest\0223\n\004name\030\001 \001" - + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" - + "a\"\215\001\n\025ValidateSchemaRequest\022D\n\006parent\030\001 " - + "\001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.googl" - + "eapis.com/Project\022.\n\006schema\030\002 \001(\0132\030.goog" - + "le.pubsub.v1.SchemaB\004\342A\001\002\"\030\n\026ValidateSch" - + "emaResponse\"\213\002\n\026ValidateMessageRequest\022D" - + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\0221\n\004name\030\002 \001" - + "(\tB!\372A\036\n\034pubsub.googleapis.com/SchemaH\000\022" - + "*\n\006schema\030\003 \001(\0132\030.google.pubsub.v1.Schem" - + "aH\000\022\017\n\007message\030\004 \001(\014\022,\n\010encoding\030\005 \001(\0162\032" - + ".google.pubsub.v1.EncodingB\r\n\013schema_spe" - + "c\"\031\n\027ValidateMessageResponse*>\n\nSchemaVi" - + "ew\022\033\n\027SCHEMA_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" - + "\020\001\022\010\n\004FULL\020\002*:\n\010Encoding\022\030\n\024ENCODING_UNS" - + "PECIFIED\020\000\022\010\n\004JSON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSch" - + "emaService\022\232\001\n\014CreateSchema\022%.google.pub" - + "sub.v1.CreateSchemaRequest\032\030.google.pubs" - + "ub.v1.Schema\"I\332A\027parent,schema,schema_id" - + "\202\323\344\223\002)\"\037/v1/{parent=projects/*}/schemas:" - + "\006schema\022y\n\tGetSchema\022\".google.pubsub.v1." - + "GetSchemaRequest\032\030.google.pubsub.v1.Sche" - + "ma\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=projects/*/" - + "schemas/*}\022\214\001\n\013ListSchemas\022$.google.pubs" - + "ub.v1.ListSchemasRequest\032%.google.pubsub" - + ".v1.ListSchemasResponse\"0\332A\006parent\202\323\344\223\002!" - + "\022\037/v1/{parent=projects/*}/schemas\022\260\001\n\023Li" - + "stSchemaRevisions\022,.google.pubsub.v1.Lis" - + "tSchemaRevisionsRequest\032-.google.pubsub." - + "v1.ListSchemaRevisionsResponse\"<\332A\004name\202" - + "\323\344\223\002/\022-/v1/{name=projects/*/schemas/*}:l" - + "istRevisions\022\220\001\n\014CommitSchema\022%.google.p" - + "ubsub.v1.CommitSchemaRequest\032\030.google.pu" - + "bsub.v1.Schema\"?\332A\013name,schema\202\323\344\223\002+\"&/v" - + "1/{name=projects/*/schemas/*}:commit:\001*\022" - + "\233\001\n\016RollbackSchema\022\'.google.pubsub.v1.Ro" - + "llbackSchemaRequest\032\030.google.pubsub.v1.S" - + "chema\"F\332A\020name,revision_id\202\323\344\223\002-\"(/v1/{n" - + "ame=projects/*/schemas/*}:rollback:\001*\022\252\001" - + "\n\024DeleteSchemaRevision\022-.google.pubsub.v" - + "1.DeleteSchemaRevisionRequest\032\030.google.p" - + "ubsub.v1.Schema\"I\332A\020name,revision_id\202\323\344\223" - + "\0020*./v1/{name=projects/*/schemas/*}:dele" - + "teRevision\022}\n\014DeleteSchema\022%.google.pubs" - + "ub.v1.DeleteSchemaRequest\032\026.google.proto" - + "buf.Empty\".\332A\004name\202\323\344\223\002!*\037/v1/{name=proj" - + "ects/*/schemas/*}\022\250\001\n\016ValidateSchema\022\'.g" - + "oogle.pubsub.v1.ValidateSchemaRequest\032(." - + "google.pubsub.v1.ValidateSchemaResponse\"" - + "C\332A\rparent,schema\202\323\344\223\002-\"(/v1/{parent=pro" - + "jects/*}/schemas:validate:\001*\022\242\001\n\017Validat" - + "eMessage\022(.google.pubsub.v1.ValidateMess" - + "ageRequest\032).google.pubsub.v1.ValidateMe" - + "ssageResponse\":\202\323\344\223\0024\"//v1/{parent=proje" - + "cts/*}/schemas:validateMessage:\001*\032p\312A\025pu" - + "bsub.googleapis.com\322AUhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" - + "le.pubsub.v1B\013SchemaProtoP\001Z2cloud.googl" - + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" - + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" - + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - + "b\006proto3" + + "imestampB\003\340A\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n" + + "\034pubsub.googleapis.com/Schema\022#projects/" + + "{project}/schemas/{schema}\"\215\001\n\023CreateSch" + + "emaRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubs" + + "ub.googleapis.com/Schema\022-\n\006schema\030\002 \001(\013" + + "2\030.google.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschem" + + "a_id\030\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001" + + " \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/Sche" + + "ma\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Sche" + + "maView\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022*\n\004view\030\002 \001(\0162\034.googl" + + "e.pubsub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchemasResp" + + "onse\022)\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1" + + ".Schema\022\027\n\017next_page_token\030\002 \001(\t\"\243\001\n\032Lis" + + "tSchemaRevisionsRequest\0222\n\004name\030\001 \001(\tB$\340" + + "A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n\004v" + + "iew\030\002 \001(\0162\034.google.pubsub.v1.SchemaView\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a" + + "\n\033ListSchemaRevisionsResponse\022)\n\007schemas" + + "\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027\n\017next" + + "_page_token\030\002 \001(\t\"x\n\023CommitSchemaRequest" + + "\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapi" + + "s.com/Schema\022-\n\006schema\030\002 \001(\0132\030.google.pu" + + "bsub.v1.SchemaB\003\340A\002\"e\n\025RollbackSchemaReq" + + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022\030\n\013revision_id\030\002 \001(\tB\003\340" + + "A\002\"m\n\033DeleteSchemaRevisionRequest\0222\n\004nam" + + "e\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/S" + + "chema\022\032\n\013revision_id\030\002 \001(\tB\005\030\001\340A\001\"I\n\023Del" + + "eteSchemaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034" + + "pubsub.googleapis.com/Schema\"\213\001\n\025Validat" + + "eSchemaRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022-\n\006schema\030\002 \001(\0132\030.google.pubsub.v1.S" + + "chemaB\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n" + + "\026ValidateMessageRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub." + + "googleapis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132" + + "\030.google.pubsub.v1.SchemaH\000\022\017\n\007message\030\004" + + " \001(\014\022,\n\010encoding\030\005 \001(\0162\032.google.pubsub.v" + + "1.EncodingB\r\n\013schema_spec\"\031\n\027ValidateMes" + + "sageResponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIE" + + "W_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010" + + "Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JS" + + "ON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSchemaService\022\232\001\n\014C" + + "reateSchema\022%.google.pubsub.v1.CreateSch" + + "emaRequest\032\030.google.pubsub.v1.Schema\"I\332A" + + "\027parent,schema,schema_id\202\323\344\223\002)\"\037/v1/{par" + + "ent=projects/*}/schemas:\006schema\022y\n\tGetSc" + + "hema\022\".google.pubsub.v1.GetSchemaRequest" + + "\032\030.google.pubsub.v1.Schema\".\332A\004name\202\323\344\223\002" + + "!\022\037/v1/{name=projects/*/schemas/*}\022\214\001\n\013L" + + "istSchemas\022$.google.pubsub.v1.ListSchema" + + "sRequest\032%.google.pubsub.v1.ListSchemasR" + + "esponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=pr" + + "ojects/*}/schemas\022\260\001\n\023ListSchemaRevision" + + "s\022,.google.pubsub.v1.ListSchemaRevisions" + + "Request\032-.google.pubsub.v1.ListSchemaRev" + + "isionsResponse\"<\332A\004name\202\323\344\223\002/\022-/v1/{name" + + "=projects/*/schemas/*}:listRevisions\022\220\001\n" + + "\014CommitSchema\022%.google.pubsub.v1.CommitS" + + "chemaRequest\032\030.google.pubsub.v1.Schema\"?" + + "\332A\013name,schema\202\323\344\223\002+\"&/v1/{name=projects" + + "/*/schemas/*}:commit:\001*\022\233\001\n\016RollbackSche" + + "ma\022\'.google.pubsub.v1.RollbackSchemaRequ" + + "est\032\030.google.pubsub.v1.Schema\"F\332A\020name,r" + + "evision_id\202\323\344\223\002-\"(/v1/{name=projects/*/s" + + "chemas/*}:rollback:\001*\022\252\001\n\024DeleteSchemaRe" + + "vision\022-.google.pubsub.v1.DeleteSchemaRe" + + "visionRequest\032\030.google.pubsub.v1.Schema\"" + + "I\332A\020name,revision_id\202\323\344\223\0020*./v1/{name=pr" + + "ojects/*/schemas/*}:deleteRevision\022}\n\014De" + + "leteSchema\022%.google.pubsub.v1.DeleteSche" + + "maRequest\032\026.google.protobuf.Empty\".\332A\004na" + + "me\202\323\344\223\002!*\037/v1/{name=projects/*/schemas/*" + + "}\022\250\001\n\016ValidateSchema\022\'.google.pubsub.v1." + + "ValidateSchemaRequest\032(.google.pubsub.v1" + + ".ValidateSchemaResponse\"C\332A\rparent,schem" + + "a\202\323\344\223\002-\"(/v1/{parent=projects/*}/schemas" + + ":validate:\001*\022\242\001\n\017ValidateMessage\022(.googl" + + "e.pubsub.v1.ValidateMessageRequest\032).goo" + + "gle.pubsub.v1.ValidateMessageResponse\":\202" + + "\323\344\223\0024\"//v1/{parent=projects/*}/schemas:v" + + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + + "com\322AUhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" + + "apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index fdf613987..6542c6f6a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 19823f45f..22df58e9d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 80ca623eb..83354637b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 6e6d5f347..732adf8b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 54a98d0d9..0b5968b3e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index de422ae44..e7ff73bf5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 0ad90788f..78d0e1c4c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index ac68f828d..61ed093bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -58,7 +59,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -209,7 +212,7 @@ public com.google.protobuf.ByteString getTopicBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -386,7 +389,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getExpireTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -406,7 +409,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); } for (java.util.Map.Entry entry : @@ -585,7 +588,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -595,7 +599,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 4: return internalGetMutableLabels(); @@ -614,10 +619,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Snapshot.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -672,13 +686,16 @@ private void buildPartial0(com.google.pubsub.v1.Snapshot result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.topic_ = topic_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1195,8 +1212,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 4642f2323..4e3ee0846 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 44cb3d516..d304660a8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index cca885333..fb0b8c4cd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -216,7 +217,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; + private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); /** * * @@ -846,7 +847,6 @@ public com.google.pubsub.v1.StreamingPullRequest build() { public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -854,14 +854,6 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullRequest result) { - if (((bitField0_ & 0x00000004) != 0)) { - modifyDeadlineSeconds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; - } - private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -871,6 +863,10 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { ackIds_.makeImmutable(); result.ackIds_ = ackIds_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_.makeImmutable(); + result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; + } if (((from_bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_.makeImmutable(); result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; @@ -952,7 +948,8 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineSeconds_.isEmpty()) { if (modifyDeadlineSeconds_.isEmpty()) { modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; - bitField0_ = (bitField0_ & ~0x00000004); + modifyDeadlineSeconds_.makeImmutable(); + bitField0_ |= 0x00000004; } else { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); @@ -1443,10 +1440,10 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); private void ensureModifyDeadlineSecondsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); - bitField0_ |= 0x00000004; + if (!modifyDeadlineSeconds_.isModifiable()) { + modifyDeadlineSeconds_ = makeMutableCopy(modifyDeadlineSeconds_); } + bitField0_ |= 0x00000004; } /** * @@ -1471,9 +1468,8 @@ private void ensureModifyDeadlineSecondsIsMutable() { * @return A list containing the modifyDeadlineSeconds. */ public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000004) != 0) - ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) - : modifyDeadlineSeconds_; + modifyDeadlineSeconds_.makeImmutable(); + return modifyDeadlineSeconds_; } /** * @@ -1554,6 +1550,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.setInt(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1584,6 +1581,7 @@ public Builder addModifyDeadlineSeconds(int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addInt(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1614,6 +1612,7 @@ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { ensureModifyDeadlineSecondsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineSeconds_); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 4a35dfcb9..392a3b401 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 98c34b9fd..fc79cb7f8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -4073,6 +4074,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4173,7 +4175,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde */ @java.lang.Override public boolean hasAcknowledgeConfirmation() { - return acknowledgeConfirmation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -4235,7 +4237,7 @@ public boolean hasAcknowledgeConfirmation() { */ @java.lang.Override public boolean hasModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -4297,7 +4299,7 @@ public boolean hasModifyAckDeadlineConfirmation() { */ @java.lang.Override public boolean hasSubscriptionProperties() { - return subscriptionProperties_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4355,13 +4357,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } - if (modifyAckDeadlineConfirmation_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getModifyAckDeadlineConfirmation()); } - if (subscriptionProperties_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSubscriptionProperties()); } - if (acknowledgeConfirmation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getAcknowledgeConfirmation()); } getUnknownFields().writeTo(output); @@ -4376,16 +4378,16 @@ public int getSerializedSize() { for (int i = 0; i < receivedMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } - if (modifyAckDeadlineConfirmation_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getModifyAckDeadlineConfirmation()); } - if (subscriptionProperties_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); } - if (acknowledgeConfirmation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); } @@ -4577,10 +4579,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceivedMessagesFieldBuilder(); + getAcknowledgeConfirmationFieldBuilder(); + getModifyAckDeadlineConfirmationFieldBuilder(); + getSubscriptionPropertiesFieldBuilder(); + } } @java.lang.Override @@ -4658,24 +4672,29 @@ private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullRespon private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.acknowledgeConfirmation_ = acknowledgeConfirmationBuilder_ == null ? acknowledgeConfirmation_ : acknowledgeConfirmationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmationBuilder_ == null ? modifyAckDeadlineConfirmation_ : modifyAckDeadlineConfirmationBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.subscriptionProperties_ = subscriptionPropertiesBuilder_ == null ? subscriptionProperties_ : subscriptionPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5354,8 +5373,10 @@ public Builder mergeAcknowledgeConfirmation( } else { acknowledgeConfirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (acknowledgeConfirmation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -5576,8 +5597,10 @@ public Builder mergeModifyAckDeadlineConfirmation( } else { modifyAckDeadlineConfirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (modifyAckDeadlineConfirmation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -5791,8 +5814,10 @@ public Builder mergeSubscriptionProperties( } else { subscriptionPropertiesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (subscriptionProperties_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e8968c231..38c37b680 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index f8a13c5f0..8aae021aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 9: return internalGetLabels(); @@ -239,6 +241,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Subscription.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -376,7 +379,7 @@ public com.google.protobuf.ByteString getTopicBytes() { */ @java.lang.Override public boolean hasPushConfig() { - return pushConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -429,7 +432,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { */ @java.lang.Override public boolean hasBigqueryConfig() { - return bigqueryConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -488,7 +491,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() */ @java.lang.Override public boolean hasCloudStorageConfig() { - return cloudStorageConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -610,7 +613,7 @@ public boolean getRetainAckedMessages() { */ @java.lang.Override public boolean hasMessageRetentionDuration() { - return messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -807,7 +810,7 @@ public boolean getEnableMessageOrdering() { */ @java.lang.Override public boolean hasExpirationPolicy() { - return expirationPolicy_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -941,7 +944,7 @@ public com.google.protobuf.ByteString getFilterBytes() { */ @java.lang.Override public boolean hasDeadLetterPolicy() { - return deadLetterPolicy_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1017,7 +1020,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild */ @java.lang.Override public boolean hasRetryPolicy() { - return retryPolicy_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1141,7 +1144,7 @@ public boolean getEnableExactlyOnceDelivery() { */ @java.lang.Override public boolean hasTopicMessageRetentionDuration() { - return topicMessageRetentionDuration_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1251,7 +1254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { @@ -1260,7 +1263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retainAckedMessages_ != false) { output.writeBool(7, retainAckedMessages_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -1268,16 +1271,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); } - if (expirationPolicy_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_); } - if (deadLetterPolicy_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getDeadLetterPolicy()); } - if (retryPolicy_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(14, getRetryPolicy()); } if (detached_ != false) { @@ -1286,16 +1289,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableExactlyOnceDelivery_ != false) { output.writeBool(16, enableExactlyOnceDelivery_); } - if (topicMessageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(17, getTopicMessageRetentionDuration()); } - if (bigqueryConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(18, getBigqueryConfig()); } if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(19, state_); } - if (cloudStorageConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(22, getCloudStorageConfig()); } getUnknownFields().writeTo(output); @@ -1313,7 +1316,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { @@ -1322,7 +1325,7 @@ public int getSerializedSize() { if (retainAckedMessages_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); @@ -1340,16 +1343,16 @@ public int getSerializedSize() { if (enableMessageOrdering_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); } - if (expirationPolicy_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); } - if (deadLetterPolicy_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } - if (retryPolicy_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); } if (detached_ != false) { @@ -1358,18 +1361,18 @@ public int getSerializedSize() { if (enableExactlyOnceDelivery_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableExactlyOnceDelivery_); } - if (topicMessageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getTopicMessageRetentionDuration()); } - if (bigqueryConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getBigqueryConfig()); } if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); } - if (cloudStorageConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } size += getUnknownFields().getSerializedSize(); @@ -1616,7 +1619,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 9: return internalGetLabels(); @@ -1626,7 +1630,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 9: return internalGetMutableLabels(); @@ -1646,10 +1651,26 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Subscription.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPushConfigFieldBuilder(); + getBigqueryConfigFieldBuilder(); + getCloudStorageConfigFieldBuilder(); + getMessageRetentionDurationFieldBuilder(); + getExpirationPolicyFieldBuilder(); + getDeadLetterPolicyFieldBuilder(); + getRetryPolicyFieldBuilder(); + getTopicMessageRetentionDurationFieldBuilder(); + } } @java.lang.Override @@ -1747,18 +1768,22 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.topic_ = topic_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bigqueryConfig_ = bigqueryConfigBuilder_ == null ? bigqueryConfig_ : bigqueryConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cloudStorageConfig_ = cloudStorageConfigBuilder_ == null ? cloudStorageConfig_ : cloudStorageConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.ackDeadlineSeconds_ = ackDeadlineSeconds_; @@ -1771,6 +1796,7 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { messageRetentionDurationBuilder_ == null ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); @@ -1782,6 +1808,7 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00000400) != 0)) { result.expirationPolicy_ = expirationPolicyBuilder_ == null ? expirationPolicy_ : expirationPolicyBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000800) != 0)) { result.filter_ = filter_; @@ -1789,10 +1816,12 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.deadLetterPolicy_ = deadLetterPolicyBuilder_ == null ? deadLetterPolicy_ : deadLetterPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00002000) != 0)) { result.retryPolicy_ = retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00004000) != 0)) { result.detached_ = detached_; @@ -1805,10 +1834,12 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { topicMessageRetentionDurationBuilder_ == null ? topicMessageRetentionDuration_ : topicMessageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00020000) != 0)) { result.state_ = state_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2448,8 +2479,10 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } else { pushConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (pushConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2654,8 +2687,10 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { } else { bigqueryConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (bigqueryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -2866,8 +2901,10 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v } else { cloudStorageConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (cloudStorageConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -3270,8 +3307,10 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } else { messageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (messageRetentionDuration_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -3750,8 +3789,10 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value } else { expirationPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (expirationPolicy_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** @@ -4137,8 +4178,10 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value } else { deadLetterPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (deadLetterPolicy_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** @@ -4396,8 +4439,10 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { } else { retryPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; - onChanged(); + if (retryPolicy_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** @@ -4802,8 +4847,10 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v } else { topicMessageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; - onChanged(); + if (topicMessageRetentionDuration_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index ad49b90dd..a8731d5c9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 7aea7c12d..6b57f92f8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 760ec1fa6..e8ecc6fd2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -234,6 +236,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Topic.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -420,7 +423,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasMessageStoragePolicy() { - return messageStoragePolicy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -537,7 +540,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasSchemaSettings() { - return schemaSettings_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -620,7 +623,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasMessageRetentionDuration() { - return messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -717,8 +720,7 @@ public com.google.pubsub.v1.Topic.State getState() { * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * @@ -729,14 +731,13 @@ public com.google.pubsub.v1.Topic.State getState() { */ @java.lang.Override public boolean hasIngestionDataSourceSettings() { - return ingestionDataSourceSettings_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * @@ -755,8 +756,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * @@ -790,25 +790,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (messageStoragePolicy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMessageStoragePolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_); } - if (schemaSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getSchemaSettings()); } if (satisfiesPzs_ != false) { output.writeBool(7, satisfiesPzs_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } - if (ingestionDataSourceSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getIngestionDataSourceSettings()); } getUnknownFields().writeTo(output); @@ -833,20 +833,20 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - if (messageStoragePolicy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); } - if (schemaSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); @@ -854,7 +854,7 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } - if (ingestionDataSourceSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getIngestionDataSourceSettings()); @@ -1052,7 +1052,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -1062,7 +1063,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1081,10 +1083,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Topic.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageStoragePolicyFieldBuilder(); + getSchemaSettingsFieldBuilder(); + getMessageRetentionDurationFieldBuilder(); + getIngestionDataSourceSettingsFieldBuilder(); + } } @java.lang.Override @@ -1157,11 +1171,13 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.messageStoragePolicy_ = messageStoragePolicyBuilder_ == null ? messageStoragePolicy_ : messageStoragePolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kmsKeyName_ = kmsKeyName_; @@ -1169,6 +1185,7 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.schemaSettings_ = schemaSettingsBuilder_ == null ? schemaSettings_ : schemaSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; @@ -1178,6 +1195,7 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { messageRetentionDurationBuilder_ == null ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -1187,7 +1205,9 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { ingestionDataSourceSettingsBuilder_ == null ? ingestionDataSourceSettings_ : ingestionDataSourceSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1798,8 +1818,10 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli } else { messageStoragePolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (messageStoragePolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2128,8 +2150,10 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { } else { schemaSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (schemaSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -2426,8 +2450,10 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } else { messageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (messageRetentionDuration_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2651,8 +2677,7 @@ public Builder clearState() { * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2668,8 +2693,7 @@ public boolean hasIngestionDataSourceSettings() { * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2691,8 +2715,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2717,8 +2740,7 @@ public Builder setIngestionDataSourceSettings( * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2740,8 +2762,7 @@ public Builder setIngestionDataSourceSettings( * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2762,16 +2783,17 @@ public Builder mergeIngestionDataSourceSettings( } else { ingestionDataSourceSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (ingestionDataSourceSettings_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2792,8 +2814,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2810,8 +2831,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * @@ -2832,8 +2852,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
-     * Optional. Settings for managed ingestion from a data source into this
-     * topic.
+     * Optional. Settings for ingestion from a data source into this topic.
      * 
* * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 6fc356a2b..abae4f031 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index a644cc313..0e44025b4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface TopicOrBuilder @@ -350,8 +351,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * @@ -365,8 +365,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * @@ -380,8 +379,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Settings for managed ingestion from a data source into this
-   * topic.
+   * Optional. Settings for ingestion from a data source into this topic.
    * 
* * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 19b2ed7aa..69e80a838 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } + private int bitField0_; public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSnapshot() { - return snapshot_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -123,7 +125,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -172,10 +174,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (snapshot_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSnapshot()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -187,10 +189,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (snapshot_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -365,10 +367,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSnapshotFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -421,12 +433,16 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -642,8 +658,10 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { } else { snapshotBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (snapshot_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -837,8 +855,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 442f147ed..daf1d090a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 744e91a07..7f71bf3ac 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } + private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; /** @@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSubscription() { - return subscription_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -133,7 +135,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -182,10 +184,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (subscription_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubscription()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -197,10 +199,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (subscription_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -375,10 +377,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSubscriptionFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -431,13 +443,17 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.subscription_ = subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -660,8 +676,10 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { } else { subscriptionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (subscription_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -861,8 +879,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index d812038a4..9904952bf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 415a8fa8f..5ce3a927d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } + private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasTopic() { - return topic_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -126,7 +128,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -181,10 +183,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (topic_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTopic()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -196,10 +198,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (topic_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -373,10 +375,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopicFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -429,12 +441,16 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -645,8 +661,10 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { } else { topicBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (topic_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -850,8 +868,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 825ab31fd..024f90ccc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index fb823741c..8b0bc262a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index f4d4702b2..18436cb2d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index e56de6312..77c2d1c4d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index b20450cb4..2cb87b7fe 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 8a55996d7..d4f978e33 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,7 +136,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } getUnknownFields().writeTo(output); @@ -197,7 +199,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); @@ -367,10 +369,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -422,9 +433,12 @@ private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -758,8 +772,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 751ea98d5..0f3cf4413 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 99c7e1d36..3d801baa3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 9879319b9..f31accde5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index c548b2680..93e1e84a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -183,7 +183,7 @@ message SchemaSettings { message IngestionDataSourceSettings { // Ingestion settings for Amazon Kinesis Data Streams. message AwsKinesis { - // Possible states for managed ingestion from Amazon Kinesis Data Streams. + // Possible states for ingestion from Amazon Kinesis Data Streams. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; @@ -312,8 +312,7 @@ message Topic { // Output only. An output-only field indicating the state of the topic. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Settings for managed ingestion from a data source into this - // topic. + // Optional. Settings for ingestion from a data source into this topic. IngestionDataSourceSettings ingestion_data_source_settings = 10 [(google.api.field_behavior) = OPTIONAL]; } From b8846f9dbf71854af1379c40669e017dd4e005d1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 04:03:07 +0100 Subject: [PATCH 060/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 (#1918) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 53cd42567..bbe7f5291 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.1 + 2.37.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bc2430778..74b8cc3e0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.1 + 2.37.2 com.google.cloud From dd244d751432bf108f379dfd44713c2d15575fa4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 04:05:35 +0100 Subject: [PATCH 061/656] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.1 (#1927) From 0148223905f64f6c85457c7af3b4a0a0fbcc60bc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 23:42:07 +0100 Subject: [PATCH 062/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.33.0 (#1929) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.33.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 53cd42194..f5b1c982a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.32.0') +implementation platform('com.google.cloud:libraries-bom:26.33.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 5646266c7..93d38c764 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 41c2b38a8..926c8afce 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import From 3e0be525dbcb6b2c317926996331071562a63e37 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 23 Feb 2024 15:18:16 -0500 Subject: [PATCH 063/656] ci: setting up samples_build.yaml (2) (#1930) Enhancing the sample_build.yaml gradually. Current status: - AdminIT failed - DeadLetterQueueIT succeeded - PublisherIT succeeded - SchemaIT succeeded - SubscriberIT succeeded Merging this for now as this has good progress itself. We'll address AdminIT in a subsequent pull request. --- .cloudbuild/samples_build.yaml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.cloudbuild/samples_build.yaml b/.cloudbuild/samples_build.yaml index 1c3ed5366..2d4a498e3 100644 --- a/.cloudbuild/samples_build.yaml +++ b/.cloudbuild/samples_build.yaml @@ -1,17 +1,31 @@ steps: -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: ls args: [ '-alt', ] -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: curl + args: [ + '--header', + 'Metadata-Flavor: Google', + 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email' + ] +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: pwd -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: bash args: [ - './kokoro/build.sh' + '.kokoro/build.sh' ] env: - 'JOB_TYPE=samples' - -timeout: 300m + - 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample' +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: echo + args: [ + 'Sample job succeeded', + ] +timeout: 3600s +options: + defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET From 255d8bca3509e9a9dc2d82c95fabb32590423565 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 28 Feb 2024 15:18:35 +0000 Subject: [PATCH 064/656] feat: next release from main branch is 1.126.0 (#1933) --- .github/release-please.yml | 4 ++++ .github/sync-repo-settings.yaml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index c6976da6a..43fa6c78a 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -34,3 +34,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.123.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.125.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 2cd50ab00..875095277 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -152,6 +152,23 @@ branchProtectionRules: - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' + - pattern: 1.125.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc permissionRules: - team: yoshi-admins permission: admin From 1e316d33d2b7c87f6b76580cd9f905fe90a664c7 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 28 Feb 2024 13:26:35 -0500 Subject: [PATCH 065/656] feat: Add universe domain support for Java (#1904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * feat: Add setUniverseDomain option for Publisher and Subscriber * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Set default endpoint as null for Subscribers and Publishers * chore: Remove unneeded sample snippet --------- Co-authored-by: Owl Bot --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 10 +++++++++- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index d0437cb58..efaba6cf1 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -185,6 +185,7 @@ private Publisher(Builder builder) throws IOException { .setExecutorProvider(FixedExecutorProvider.create(executor)) .setTransportChannelProvider(builder.channelProvider) .setEndpoint(builder.endpoint) + .setUniverseDomain(builder.universeDomain) .setHeaderProvider(builder.headerProvider); stubSettings .publishSettings() @@ -717,7 +718,8 @@ public static final class Builder { static final long DEFAULT_COMPRESSION_BYTES_THRESHOLD = 240L; String topicName; - private String endpoint = PublisherStubSettings.getDefaultEndpoint(); + private String endpoint = null; + private String universeDomain = null; // Batching options BatchingSettings batchingSettings = DEFAULT_BATCHING_SETTINGS; @@ -857,6 +859,12 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Gives the ability to override the universe domain. */ + public Builder setUniverseDomain(String universeDomain) { + this.universeDomain = universeDomain; + return this; + } + /** Gives the ability to enable transport compression. */ public Builder setEnableCompression(boolean enableCompression) { this.enableCompression = enableCompression; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 1d1017dd4..1723c72b1 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -192,6 +192,7 @@ private Subscriber(Builder builder) { .setTransportChannelProvider(channelProvider) .setHeaderProvider(builder.headerProvider) .setEndpoint(builder.endpoint) + .setUniverseDomain(builder.universeDomain) .build(); // TODO(pongad): what about internal header?? } catch (Exception e) { @@ -491,7 +492,8 @@ public static final class Builder { SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build(); private Optional clock = Optional.absent(); private int parallelPullCount = 1; - private String endpoint = SubscriberStubSettings.getDefaultEndpoint(); + private String endpoint = null; + private String universeDomain = null; Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; @@ -670,6 +672,12 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Gives the ability to override the universe domain. */ + public Builder setUniverseDomain(String universeDomain) { + this.universeDomain = universeDomain; + return this; + } + /** Gives the ability to set a custom clock. */ Builder setClock(ApiClock clock) { this.clock = Optional.of(clock); From 0d06d7cbd19f443905d238277d289f27040f2863 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:45:51 -0500 Subject: [PATCH 066/656] chore(main): release 1.127.0 (#1926) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 17 +++++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 35 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78e67849a..5f5740f5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.127.0](https://github.com/googleapis/java-pubsub/compare/v1.126.6...v1.127.0) (2024-02-28) + + +### Features + +* Add an API method for reordering firewall policies ([#1868](https://github.com/googleapis/java-pubsub/issues/1868)) ([2039f7e](https://github.com/googleapis/java-pubsub/commit/2039f7e9bee9db1991fae1118e4a6b8ad88ea30c)) +* Add universe domain support for Java ([#1904](https://github.com/googleapis/java-pubsub/issues/1904)) ([1e316d3](https://github.com/googleapis/java-pubsub/commit/1e316d33d2b7c87f6b76580cd9f905fe90a664c7)) +* Next release from main branch is 1.126.0 ([#1933](https://github.com/googleapis/java-pubsub/issues/1933)) ([255d8bc](https://github.com/googleapis/java-pubsub/commit/255d8bca3509e9a9dc2d82c95fabb32590423565)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 ([#1918](https://github.com/googleapis/java-pubsub/issues/1918)) ([b8846f9](https://github.com/googleapis/java-pubsub/commit/b8846f9dbf71854af1379c40669e017dd4e005d1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.34.0 ([#1917](https://github.com/googleapis/java-pubsub/issues/1917)) ([4a7d6b9](https://github.com/googleapis/java-pubsub/commit/4a7d6b971f0d16d867c56679d1e7bfbba4e4a67a)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.25.3 ([#1919](https://github.com/googleapis/java-pubsub/issues/1919)) ([4bf13bb](https://github.com/googleapis/java-pubsub/commit/4bf13bb5f346a53ecf8e1e73e5f3b6d1c99ddf93)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#1923](https://github.com/googleapis/java-pubsub/issues/1923)) ([cd704bd](https://github.com/googleapis/java-pubsub/commit/cd704bd57b2596d82f2f791476a109a771995b4d)) + ## [1.126.6](https://github.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 83a67875d..058dd438b 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.7-SNAPSHOT + 1.127.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index f6d9c47d5..685a4fa20 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 79bd99cb3..d69da8167 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/pom.xml b/pom.xml index 45588af16..e513fdceb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.7-SNAPSHOT + 1.127.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 7914373f1..13584b013 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 74b8cc3e0..35f328423 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/versions.txt b/versions.txt index 931417aaa..b644f710a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.6:1.126.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT +google-cloud-pubsub:1.127.0:1.127.0 +grpc-google-cloud-pubsub-v1:1.109.0:1.109.0 +proto-google-cloud-pubsub-v1:1.109.0:1.109.0 From 75fb4df13ade90a4b046b968f5e155c678b86bfd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:02:18 +0000 Subject: [PATCH 067/656] chore(main): release 1.127.1-SNAPSHOT (#1934) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 058dd438b..fa3bfe31b 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.0 + 1.127.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 685a4fa20..cd3cfe185 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index d69da8167..6a3ba8220 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index e513fdceb..53792a02c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.0 + 1.127.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 13584b013..03fc0d62c 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 35f328423..bc297f89c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index b644f710a..29079cbd3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.0:1.127.0 -grpc-google-cloud-pubsub-v1:1.109.0:1.109.0 -proto-google-cloud-pubsub-v1:1.109.0:1.109.0 +google-cloud-pubsub:1.127.0:1.127.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT From 7456d606f46dd3fb53c4f19a45ef268c822b9d61 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Feb 2024 20:07:45 +0100 Subject: [PATCH 068/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.0 (#1935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f5b1c982a..70e7b9caa 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.6 + 1.127.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.0" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bbe7f5291..032c84239 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.127.0 From 75e7e5e9eede53e87a6bc8ccda957990ea9b0673 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:10:07 +0100 Subject: [PATCH 069/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 (#1937) --- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 5e86d37f0..56db68092 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 8e8cded78..628318477 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 53792a02c..78f83277d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.25.0 + 3.27.0 From e1fc9460540948a2ed8290fec7b5f1331438410c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:10:49 +0100 Subject: [PATCH 070/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.4 (#1932) --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index fa3bfe31b..6bdc2ef98 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.1 + 1.7.4 Google Cloud pubsub BOM From 785e6d1e4f2234d2c49183fc06d3f73de537171b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:12:42 +0100 Subject: [PATCH 071/656] deps: update dependency com.google.cloud:google-cloud-core to v2.35.0 (#1936) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 032c84239..661908dec 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bc297f89c..bda5c4528 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 926c8afce..2c9d39079 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests From 357c901029a8bc5fb9800a7fae6f3d93080c0a0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:13:22 +0100 Subject: [PATCH 072/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 (#1931) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 661908dec..d7c4132b3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.2 + 2.38.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bda5c4528..59ec7a69f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.2 + 2.38.0 com.google.cloud From b4ff190bfbc111e0caca0a038dd0b15b63bb89c2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:28:17 +0000 Subject: [PATCH 073/656] chore(main): release 1.127.1 (#1939) :robot: I have created a release *beep* *boop* --- ## [1.127.1](https://togithub.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://togithub.com/googleapis/java-pubsub/issues/1931)) ([357c901](https://togithub.com/googleapis/java-pubsub/commit/357c901029a8bc5fb9800a7fae6f3d93080c0a0d)) * Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://togithub.com/googleapis/java-pubsub/issues/1936)) ([785e6d1](https://togithub.com/googleapis/java-pubsub/commit/785e6d1e4f2234d2c49183fc06d3f73de537171b)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://togithub.com/googleapis/java-pubsub/issues/1937)) ([75e7e5e](https://togithub.com/googleapis/java-pubsub/commit/75e7e5e9eede53e87a6bc8ccda957990ea9b0673)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f5740f5f..afd36bfec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.127.1](https://github.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://github.com/googleapis/java-pubsub/issues/1931)) ([357c901](https://github.com/googleapis/java-pubsub/commit/357c901029a8bc5fb9800a7fae6f3d93080c0a0d)) +* Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://github.com/googleapis/java-pubsub/issues/1936)) ([785e6d1](https://github.com/googleapis/java-pubsub/commit/785e6d1e4f2234d2c49183fc06d3f73de537171b)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://github.com/googleapis/java-pubsub/issues/1937)) ([75e7e5e](https://github.com/googleapis/java-pubsub/commit/75e7e5e9eede53e87a6bc8ccda957990ea9b0673)) + ## [1.127.0](https://github.com/googleapis/java-pubsub/compare/v1.126.6...v1.127.0) (2024-02-28) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 6bdc2ef98..eec78be7b 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.1-SNAPSHOT + 1.127.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index cd3cfe185..c7a8e188d 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 6a3ba8220..eab2eaf2d 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/pom.xml b/pom.xml index 78f83277d..f4e6aa8b7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.1-SNAPSHOT + 1.127.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 03fc0d62c..8a5feb8ef 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 59ec7a69f..556c52990 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/versions.txt b/versions.txt index 29079cbd3..15e405fcb 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.0:1.127.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT +google-cloud-pubsub:1.127.1:1.127.1 +grpc-google-cloud-pubsub-v1:1.109.1:1.109.1 +proto-google-cloud-pubsub-v1:1.109.1:1.109.1 From 54762a914b1af74b50425422d24161eb84e39d7f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:42:43 +0000 Subject: [PATCH 074/656] chore(main): release 1.127.2-SNAPSHOT (#1940) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index eec78be7b..ab0076423 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.1 + 1.127.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c7a8e188d..1ee822317 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index eab2eaf2d..2590e388b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index f4e6aa8b7..08e7b3c07 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.1 + 1.127.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 8a5feb8ef..a83884381 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 556c52990..1d48c6e7c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 15e405fcb..32abe1742 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.1:1.127.1 -grpc-google-cloud-pubsub-v1:1.109.1:1.109.1 -proto-google-cloud-pubsub-v1:1.109.1:1.109.1 +google-cloud-pubsub:1.127.1:1.127.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT From 3780815ebc96a1814fbe8308e0e5265d1b720635 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 7 Mar 2024 12:57:21 -0500 Subject: [PATCH 075/656] test: Change policy member in SetPolicy examples (#1943) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: Change policy member in SetTopicPolicyExample * test: Change policy member in SetSubscriptionPolicyExample * style: Format SetTopic/SubscriptionPolicyExample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- .../src/main/java/pubsub/SetSubscriptionPolicyExample.java | 5 ++++- .../src/main/java/pubsub/SetTopicPolicyExample.java | 5 ++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 70e7b9caa..b94a1cb89 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.1" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java b/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java index f0a449de8..f5b19f685 100644 --- a/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java +++ b/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java @@ -46,7 +46,10 @@ public static void setSubscriptionPolicyExample(String projectId, String subscri // Create new role -> members binding Binding binding = - Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + Binding.newBuilder() + .setRole("roles/pubsub.editor") + .addMembers("domain:google.com") + .build(); // Add new binding to updated policy Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); diff --git a/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java b/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java index 7e987c218..6a2359e8c 100644 --- a/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java +++ b/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java @@ -44,7 +44,10 @@ public static void setTopicPolicyExample(String projectId, String topicId) throw // Create new role -> members binding Binding binding = - Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + Binding.newBuilder() + .setRole("roles/pubsub.editor") + .addMembers("domain:google.com") + .build(); // Add new binding to updated policy Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); From 1435c4e4d25d789fadbfc2c54c2f90b138693b40 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 13:19:52 -0500 Subject: [PATCH 076/656] fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0 (#1938) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0 PiperOrigin-RevId: 611816371 Source-Link: https://github.com/googleapis/googleapis/commit/2a40f63ea714c7f4c6856a5db4d1f3cc7d4c4b18 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d30ff0767777b381fb1617f67a90e3abd3bdc6dc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/cloud/pubsub/v1/SchemaServiceSettings.java | 2 -- .../google/cloud/pubsub/v1/SubscriptionAdminSettings.java | 2 -- .../java/com/google/cloud/pubsub/v1/TopicAdminSettings.java | 2 -- .../pubsub/v1/stub/HttpJsonPublisherCallableFactory.java | 4 ---- .../google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java | 2 -- .../v1/stub/HttpJsonSchemaServiceCallableFactory.java | 4 ---- .../cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java | 2 -- .../pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java | 4 ---- .../google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java | 2 -- .../src/main/java/com/google/pubsub/v1/TopicName.java | 6 ------ 10 files changed, 30 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 152cb4fb9..e2dd281e0 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -217,7 +217,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -259,7 +258,6 @@ private static Builder createDefault() { return new Builder(SchemaServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(SchemaServiceStubSettings.newHttpJsonBuilder()); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a306bf2b9..306237dcb 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -256,7 +256,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -298,7 +297,6 @@ private static Builder createDefault() { return new Builder(SubscriberStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(SubscriberStubSettings.newHttpJsonBuilder()); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index c4db6a8d5..9c82ebce0 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -216,7 +216,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -258,7 +257,6 @@ private static Builder createDefault() { return new Builder(PublisherStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(PublisherStubSettings.newHttpJsonBuilder()); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index bf26ec9df..3d2309c69 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonPublisherCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index cc52e0132..3c129b6ed 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -20,7 +20,6 @@ import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -69,7 +68,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonPublisherStub extends PublisherStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index 049e3978e..c4dedadb0 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSchemaServiceCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 0d63ad825..1d797dc71 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -69,7 +68,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSchemaServiceStub extends SchemaServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 6ed7053d5..ec35b3dfe 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSubscriberCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index ea305a938..53559f580 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -77,7 +76,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSubscriberStub extends SubscriberStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index abae4f031..8fe96fcb8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -16,7 +16,6 @@ package com.google.pubsub.v1; -import com.google.api.core.BetaApi; import com.google.api.pathtemplate.PathTemplate; import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; @@ -71,7 +70,6 @@ public static Builder newBuilder() { return new Builder(); } - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static Builder newProjectTopicBuilder() { return new Builder(); } @@ -84,12 +82,10 @@ public static TopicName of(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build(); } - @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofProjectTopicName(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build(); } - @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofDeletedTopicName() { return new TopicName("_deleted-topic_"); } @@ -98,12 +94,10 @@ public static String format(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build().toString(); } - @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectTopicName(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build().toString(); } - @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatDeletedTopicName() { return "_deleted-topic_"; } From 18924abdddbd2d53f5a4d535dcad40f28853c65b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:20:07 +0100 Subject: [PATCH 077/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.1 (#1941) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b94a1cb89..cb7a71391 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d7c4132b3..c644ee3c4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1 From 8bc75f736239deab05d0778ec5b74c275ba5f384 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:25:42 +0100 Subject: [PATCH 078/656] test(deps): update dependency com.google.truth:truth to v1.4.2 (#1928) --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 08e7b3c07..70b26ce4a 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c644ee3c4..ca4bb38b6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 93d38c764..54ff22453 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1d48c6e7c..4070f7cf6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2c9d39079..572a18e0b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test From 989f7bac5bada7ac5d6e68c742af0290cb757e4b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:25:50 +0100 Subject: [PATCH 079/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.35.0 (#1942) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ca4bb38b6..907219d8b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.34.0 + 2.35.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4070f7cf6..f531d8d51 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.34.0 + 2.35.0 From 76317e1fe60467b4bbe9b4867d0a29e983ce687f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:26:22 +0100 Subject: [PATCH 080/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 (#1944) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 907219d8b..1e9b582c7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.0 + 2.38.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f531d8d51..00c8bbded 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.0 + 2.38.1 com.google.cloud From b94989df6c5ae6f62e648016cef2e008a3b9ed05 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 20:01:47 +0100 Subject: [PATCH 081/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.35.0 (#1946) From ab6060672b2c5546072a829a9e65014ddca011d1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 10 Mar 2024 22:30:42 +0100 Subject: [PATCH 082/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.34.0 (#1948) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.34.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb7a71391..ccdfe4296 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.33.0') +implementation platform('com.google.cloud:libraries-bom:26.34.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 54ff22453..9c3e31530 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 572a18e0b..06c30c203 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import From 316706d9674f1ecc34d987a06a13b1acc4d90756 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sun, 10 Mar 2024 23:43:04 -0400 Subject: [PATCH 083/656] chore(main): release 1.127.2 (#1945) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afd36bfec..6b05ff1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.127.2](https://github.com/googleapis/java-pubsub/compare/v1.127.1...v1.127.2) (2024-03-10) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.37.0 ([#1938](https://github.com/googleapis/java-pubsub/issues/1938)) ([1435c4e](https://github.com/googleapis/java-pubsub/commit/1435c4e4d25d789fadbfc2c54c2f90b138693b40)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 ([#1944](https://github.com/googleapis/java-pubsub/issues/1944)) ([76317e1](https://github.com/googleapis/java-pubsub/commit/76317e1fe60467b4bbe9b4867d0a29e983ce687f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1942](https://github.com/googleapis/java-pubsub/issues/1942)) ([989f7ba](https://github.com/googleapis/java-pubsub/commit/989f7bac5bada7ac5d6e68c742af0290cb757e4b)) +* Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1946](https://github.com/googleapis/java-pubsub/issues/1946)) ([b94989d](https://github.com/googleapis/java-pubsub/commit/b94989df6c5ae6f62e648016cef2e008a3b9ed05)) + ## [1.127.1](https://github.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ab0076423..a46409e24 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.2-SNAPSHOT + 1.127.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1ee822317..086988a45 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 2590e388b..f87f0df91 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/pom.xml b/pom.xml index 70b26ce4a..c2f753a0a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.2-SNAPSHOT + 1.127.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index a83884381..3d92eb24b 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 00c8bbded..1db26815c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/versions.txt b/versions.txt index 32abe1742..3564d176c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.1:1.127.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT +google-cloud-pubsub:1.127.2:1.127.2 +grpc-google-cloud-pubsub-v1:1.109.2:1.109.2 +proto-google-cloud-pubsub-v1:1.109.2:1.109.2 From 20099510c647bd8292711976d6eaeceef98bbed8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 03:58:17 +0000 Subject: [PATCH 084/656] chore(main): release 1.127.3-SNAPSHOT (#1949) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index a46409e24..eba10745f 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.2 + 1.127.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 086988a45..241406772 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index f87f0df91..2238f0d54 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index c2f753a0a..6f21aadb3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.2 + 1.127.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3d92eb24b..509101f6d 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1db26815c..01ce3c8e7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3564d176c..722ecb457 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.2:1.127.2 -grpc-google-cloud-pubsub-v1:1.109.2:1.109.2 -proto-google-cloud-pubsub-v1:1.109.2:1.109.2 +google-cloud-pubsub:1.127.2:1.127.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT From 91a37b5bdb0c6245cb12712a713ae5efacc31677 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:43:17 +0100 Subject: [PATCH 085/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.2 (#1950) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ccdfe4296..9dbc0de33 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.2" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1e9b582c7..d1ed4a285 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2 From 183df2caeed8e0df53ef9668232e4949ec4719a9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:56:39 +0100 Subject: [PATCH 086/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 (#1956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 56db68092..6d7671930 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 628318477..61792471c 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 6f21aadb3..5f2f794d7 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.27.0 + 3.28.0 From b917a822f0be1649c996313c888823d54e708e1f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:57:04 -0400 Subject: [PATCH 087/656] chore: update requirements.txt to address dependabot security alerts. (#1936) (#1953) Created by running: pip-compile requirements.in --generate-hashes --upgrade within synthtool/gcp/templates/java_library/.kokoro and synthtool/docker/owlbot/java/src/ Source-Link: https://github.com/googleapis/synthtool/commit/853dbcd49ea3598fd896007dc48dc97175ee88f1 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b49924db5..db1099bec 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 -# created: 2024-02-05T19:43:08.106031548Z \ No newline at end of file + digest: sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 +# created: 2024-03-15T14:33:32.257974519Z From fc82382da2556b01e591d4c65aacb0fec0a7b24b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:57:21 +0100 Subject: [PATCH 088/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.5 (#1952) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index eba10745f..2d5b3be5a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.4 + 1.7.5 Google Cloud pubsub BOM From 243ec9ab47212bbe701b16882c92a9b3d5d4aeaa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:57:42 +0100 Subject: [PATCH 089/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4 (#1951) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d1ed4a285..ba830b96c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 01ce3c8e7..56aabd95f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 06c30c203..4a2bd5da0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 From d25d14ad4694c5a914f9d07018cb0f6b9af4f9aa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 18:46:04 +0100 Subject: [PATCH 090/656] deps: update dependency com.google.cloud:google-cloud-core to v2.36.0 (#1955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.36.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ba830b96c..cb0697411 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 56aabd95f..59ca14a97 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4a2bd5da0..00554120f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests From 0d8c182653ea1ffd429465e91075760c1501eb34 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:24:48 +0100 Subject: [PATCH 091/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.36.0 (#1957) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.36.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index cb0697411..8eb6dcd88 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.35.0 + 2.36.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 59ca14a97..f798db0f9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.35.0 + 2.36.0 From 96c1c971fa4dced85cb2ed4e9db3e3fb47eb82c6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:24:57 +0100 Subject: [PATCH 092/656] deps: update dependency com.google.cloud:google-cloud-core to v2.36.1 (#1962) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8eb6dcd88..c394454f9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f798db0f9..2ec1b0c45 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 00554120f..d0a14bd26 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests From 235c5d747944d732b5e3ad46de281ca1eeac3e37 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:25:04 +0100 Subject: [PATCH 093/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.6 (#1961) --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2d5b3be5a..a28554564 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.5 + 1.7.6 Google Cloud pubsub BOM From faa45a4efeaee5b45f9a4cc89dc2917f56a66797 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:25:34 +0100 Subject: [PATCH 094/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 (#1960) --- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 6d7671930..c2a88196e 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 61792471c..94e00cbaa 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1" } env_vars: { diff --git a/pom.xml b/pom.xml index 5f2f794d7..525dae547 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.28.0 + 3.28.1 From e49cdc442fbd99c8b41a709d2044f14d505ef67e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:46:16 +0000 Subject: [PATCH 095/656] chore(main): release 1.127.3 (#1959) :robot: I have created a release *beep* *boop* --- ## [1.127.3](https://togithub.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://togithub.com/googleapis/java-pubsub/issues/1955)) ([d25d14a](https://togithub.com/googleapis/java-pubsub/commit/d25d14ad4694c5a914f9d07018cb0f6b9af4f9aa)) * Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://togithub.com/googleapis/java-pubsub/issues/1962)) ([96c1c97](https://togithub.com/googleapis/java-pubsub/commit/96c1c971fa4dced85cb2ed4e9db3e3fb47eb82c6)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://togithub.com/googleapis/java-pubsub/issues/1957)) ([0d8c182](https://togithub.com/googleapis/java-pubsub/commit/0d8c182653ea1ffd429465e91075760c1501eb34)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([183df2c](https://togithub.com/googleapis/java-pubsub/commit/183df2caeed8e0df53ef9668232e4949ec4719a9)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://togithub.com/googleapis/java-pubsub/issues/1960)) ([faa45a4](https://togithub.com/googleapis/java-pubsub/commit/faa45a4efeaee5b45f9a4cc89dc2917f56a66797)) * Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://togithub.com/googleapis/java-pubsub/issues/1951)) ([243ec9a](https://togithub.com/googleapis/java-pubsub/commit/243ec9ab47212bbe701b16882c92a9b3d5d4aeaa)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b05ff1bd..68581690d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.127.3](https://github.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://github.com/googleapis/java-pubsub/issues/1955)) ([d25d14a](https://github.com/googleapis/java-pubsub/commit/d25d14ad4694c5a914f9d07018cb0f6b9af4f9aa)) +* Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://github.com/googleapis/java-pubsub/issues/1962)) ([96c1c97](https://github.com/googleapis/java-pubsub/commit/96c1c971fa4dced85cb2ed4e9db3e3fb47eb82c6)) +* Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://github.com/googleapis/java-pubsub/issues/1957)) ([0d8c182](https://github.com/googleapis/java-pubsub/commit/0d8c182653ea1ffd429465e91075760c1501eb34)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://github.com/googleapis/java-pubsub/issues/1956)) ([183df2c](https://github.com/googleapis/java-pubsub/commit/183df2caeed8e0df53ef9668232e4949ec4719a9)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://github.com/googleapis/java-pubsub/issues/1960)) ([faa45a4](https://github.com/googleapis/java-pubsub/commit/faa45a4efeaee5b45f9a4cc89dc2917f56a66797)) +* Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://github.com/googleapis/java-pubsub/issues/1951)) ([243ec9a](https://github.com/googleapis/java-pubsub/commit/243ec9ab47212bbe701b16882c92a9b3d5d4aeaa)) + ## [1.127.2](https://github.com/googleapis/java-pubsub/compare/v1.127.1...v1.127.2) (2024-03-10) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index a28554564..33edff3a9 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.3-SNAPSHOT + 1.127.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 241406772..d7cf97351 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 2238f0d54..1805c4e14 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/pom.xml b/pom.xml index 525dae547..215476329 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.3-SNAPSHOT + 1.127.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 509101f6d..9a79ebaff 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2ec1b0c45..e0b4e56f4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/versions.txt b/versions.txt index 722ecb457..448f60b81 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.2:1.127.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT +google-cloud-pubsub:1.127.3:1.127.3 +grpc-google-cloud-pubsub-v1:1.109.3:1.109.3 +proto-google-cloud-pubsub-v1:1.109.3:1.109.3 From ac8c2424728bb6566837b427b7b106f3357ced28 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:00:20 +0000 Subject: [PATCH 096/656] chore(main): release 1.127.4-SNAPSHOT (#1964) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 33edff3a9..c306409f1 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.3 + 1.127.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d7cf97351..b1766243f 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 1805c4e14..8a15fef01 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 215476329..10dc42a8b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.3 + 1.127.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 9a79ebaff..e19772765 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e0b4e56f4..c98fcf26f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 448f60b81..15b2b7d00 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.3:1.127.3 -grpc-google-cloud-pubsub-v1:1.109.3:1.109.3 -proto-google-cloud-pubsub-v1:1.109.3:1.109.3 +google-cloud-pubsub:1.127.3:1.127.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT From d5fe708e791a6d15eec681e1feba64fbd819f508 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Mar 2024 16:41:36 +0100 Subject: [PATCH 097/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.3 (#1966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9dbc0de33..7169cd7ad 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.3" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c394454f9..275714ca6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3 From 5b5c14ba31636c037c2b8d6a166bd48670e23688 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 21 Mar 2024 13:21:35 -0400 Subject: [PATCH 098/656] docs: Add Kinesis ingestion samples (#1947) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Adding samples for creating and updating Kinesis ingestion topics * style: Format AdmitIT * style: Re-format AdmitIT * docs: Fix ingestion topic deletion in test * docs: Add test for updating existing ingestion settings and verify the actual results of topic creation and updating * docs: Use response to verify ingestion settings update * style: fix formatting in tests * docs: Update AdminIT test to check for correct topic name * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 + ...reateTopicWithKinesisIngestionExample.java | 74 ++++++++++++++++ .../java/pubsub/UpdateTopicTypeExample.java | 86 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 50 +++++++++++ 4 files changed, 212 insertions(+) create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java create mode 100644 samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java diff --git a/README.md b/README.md index 7169cd7ad..62f999a1e 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | | Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | @@ -307,6 +308,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | | Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | +| Update Topic Type Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | | Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | | State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | | State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java new file mode 100644 index 000000000..6f79ef6b7 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java @@ -0,0 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_kinesis_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithKinesisIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Kinesis ingestion settings. + String streamArn = "stream-arn"; + String consumerArn = "consumer-arn"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithKinesisIngestionExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + } + + public static void createTopicWithKinesisIngestionExample( + String projectId, + String topicId, + String streamArn, + String consumerArn, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsKinesis awsKinesis = + IngestionDataSourceSettings.AwsKinesis.newBuilder() + .setStreamArn(streamArn) + .setConsumerArn(consumerArn) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsKinesis(awsKinesis).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println("Created topic with Kinesis ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_kinesis_ingestion] diff --git a/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java b/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java new file mode 100644 index 000000000..6b8497ea7 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_update_topic_type] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; + +public class UpdateTopicTypeExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Kinesis ingestion settings. + String streamArn = "stream-arn"; + String consumerArn = "consumer-arn"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + } + + public static void updateTopicTypeExample( + String projectId, + String topicId, + String streamArn, + String consumerArn, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsKinesis awsKinesis = + IngestionDataSourceSettings.AwsKinesis.newBuilder() + .setStreamArn(streamArn) + .setConsumerArn(consumerArn) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsKinesis(awsKinesis).build(); + + // Construct the topic with Kinesis ingestion settings. + Topic topic = + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build(); + + // Construct a field mask to indicate which field to update in the topic. + FieldMask updateMask = + FieldMask.newBuilder().addPaths("ingestion_data_source_settings").build(); + + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + + Topic response = topicAdminClient.updateTopic(request); + + System.out.println( + "Updated topic with Kinesis ingestion settings: " + response.getAllFields()); + } + } +} +// [END pubsub_update_topic_type] diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index e42c81290..a2eb7ebfd 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -52,6 +52,7 @@ public class AdminIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); private static final String topicId = "iam-topic-" + _suffix; + private static final String ingestionTopicId = "ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -63,8 +64,20 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String streamArn = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name"; + private static final String consumerArn = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + + "consumer/consumer-1:1111111111"; + private static final String consumerArn2 = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + + "consumer/consumer-2:2222222222"; + private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; + private static final String gcpServiceAccount = + "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; private static final TopicName topicName = TopicName.of(projectId, topicId); + private static final TopicName ingestionTopicName = TopicName.of(projectId, ingestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -273,9 +286,46 @@ public void testAdmin() throws Exception { DeleteSubscriptionExample.deleteSubscriptionExample(projectId, bigquerySubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); + bout.reset(); + // Update topic type to Kinesis ingestion. + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()).contains("google.pubsub.v1.Topic.name=" + topicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + bout.reset(); // Test delete topic. DeleteTopicExample.deleteTopicExample(projectId, topicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Kinesis ingestion settings. + CreateTopicWithKinesisIngestionExample.createTopicWithKinesisIngestionExample( + projectId, ingestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test update existing Kinesis ingestion settings. + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, ingestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn2); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Kinesis ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, ingestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); } } From e4246c10b4d1148a9df735787bd5cd85f03943cf Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 20:59:06 -0400 Subject: [PATCH 099/656] chore: add regex to match unmanaged dependency check (#1941) (#1969) Source-Link: https://github.com/googleapis/synthtool/commit/ca7a71650b000f900236f54a0f9bd322fd1b2adf Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- renovate.json | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index db1099bec..d7b8a2d87 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 -# created: 2024-03-15T14:33:32.257974519Z + digest: sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 +# created: 2024-03-25T17:31:37.187420732Z diff --git a/renovate.json b/renovate.json index bd4ed7ef1..6d24ffd87 100644 --- a/renovate.json +++ b/renovate.json @@ -23,6 +23,15 @@ "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" + }, + { + "customType": "regex", + "fileMatch": [ + "^.github/workflows/unmanaged_dependency_check.yaml$" + ], + "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], + "depNameTemplate": "com.google.cloud:sdk-platform-java-config", + "datasourceTemplate": "maven" } ], "packageRules": [ From 524109c1afc5118c79fd97769e194a1325322107 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 26 Mar 2024 02:01:22 +0100 Subject: [PATCH 100/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.36.1 (#1968) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 275714ca6..8f2ba2e4a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.36.0 + 2.36.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c98fcf26f..2bb6b7d8a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.36.0 + 2.36.1 From ec3b38665ddc6336f975d597d27c4aa25732c474 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 26 Mar 2024 02:36:45 +0100 Subject: [PATCH 101/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 (#1965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8f2ba2e4a..d84d3c3de 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.1 + 2.38.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2bb6b7d8a..a1429a46e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.1 + 2.38.2 com.google.cloud From 7113f065973bb8b56ab811e0589ffb7975873679 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:13:00 -0400 Subject: [PATCH 102/656] feat: add custom datetime format for Cloud Storage subscriptions (#1970) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add custom datetime format for Cloud Storage subscriptions PiperOrigin-RevId: 619178723 Source-Link: https://github.com/googleapis/googleapis/commit/811a857dd5e5a500127d0470f16c2caca366435d Source-Link: https://github.com/googleapis/googleapis-gen/commit/768fb44d4daaea946a291f6795a50af26a515488 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzY4ZmI0NGQ0ZGFhZWE5NDZhMjkxZjY3OTVhNTBhZjI2YTUxNTQ4OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/pubsub/v1/CloudStorageConfig.java | 232 ++++++++- .../v1/CloudStorageConfigOrBuilder.java | 29 ++ .../v1/IngestionDataSourceSettings.java | 4 +- .../com/google/pubsub/v1/PubsubProto.java | 442 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 7 +- 7 files changed, 478 insertions(+), 246 deletions(-) diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index def2b0461..1d1cbaf18 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -42,6 +42,7 @@ private CloudStorageConfig() { bucket_ = ""; filenamePrefix_ = ""; filenameSuffix_ = ""; + filenameDatetimeFormat_ = ""; state_ = 0; } @@ -1478,6 +1479,61 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { } } + public static final int FILENAME_DATETIME_FORMAT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object filenameDatetimeFormat_ = ""; + /** + * + * + *

+   * Optional. User-provided format string specifying how to represent datetimes
+   * in Cloud Storage filenames. See the [datetime format
+   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+   * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + @java.lang.Override + public java.lang.String getFilenameDatetimeFormat() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameDatetimeFormat_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User-provided format string specifying how to represent datetimes
+   * in Cloud Storage filenames. See the [datetime format
+   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+   * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameDatetimeFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TEXT_CONFIG_FIELD_NUMBER = 4; /** * @@ -1752,6 +1808,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, filenameDatetimeFormat_); + } getUnknownFields().writeTo(output); } @@ -1789,6 +1848,9 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, filenameDatetimeFormat_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1807,6 +1869,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBucket().equals(other.getBucket())) return false; if (!getFilenamePrefix().equals(other.getFilenamePrefix())) return false; if (!getFilenameSuffix().equals(other.getFilenameSuffix())) return false; + if (!getFilenameDatetimeFormat().equals(other.getFilenameDatetimeFormat())) return false; if (hasMaxDuration() != other.hasMaxDuration()) return false; if (hasMaxDuration()) { if (!getMaxDuration().equals(other.getMaxDuration())) return false; @@ -1841,6 +1904,8 @@ public int hashCode() { hash = (53 * hash) + getFilenamePrefix().hashCode(); hash = (37 * hash) + FILENAME_SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getFilenameSuffix().hashCode(); + hash = (37 * hash) + FILENAME_DATETIME_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFilenameDatetimeFormat().hashCode(); if (hasMaxDuration()) { hash = (37 * hash) + MAX_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxDuration().hashCode(); @@ -2012,6 +2077,7 @@ public Builder clear() { bucket_ = ""; filenamePrefix_ = ""; filenameSuffix_ = ""; + filenameDatetimeFormat_ = ""; if (textConfigBuilder_ != null) { textConfigBuilder_.clear(); } @@ -2073,16 +2139,19 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.filenameSuffix_ = filenameSuffix_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filenameDatetimeFormat_ = filenameDatetimeFormat_; + } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.maxDuration_ = maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.maxBytes_ = maxBytes_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -2159,6 +2228,11 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilenameDatetimeFormat().isEmpty()) { + filenameDatetimeFormat_ = other.filenameDatetimeFormat_; + bitField0_ |= 0x00000008; + onChanged(); + } if (other.hasMaxDuration()) { mergeMaxDuration(other.getMaxDuration()); } @@ -2243,21 +2317,27 @@ public Builder mergeFrom( case 50: { input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 56: { maxBytes_ = input.readInt64(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 56 case 72: { state_ = input.readEnum(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 72 + case 82: + { + filenameDatetimeFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2639,6 +2719,122 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filenameDatetimeFormat_ = ""; + /** + * + * + *
+     * Optional. User-provided format string specifying how to represent datetimes
+     * in Cloud Storage filenames. See the [datetime format
+     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+     * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + public java.lang.String getFilenameDatetimeFormat() { + java.lang.Object ref = filenameDatetimeFormat_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameDatetimeFormat_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User-provided format string specifying how to represent datetimes
+     * in Cloud Storage filenames. See the [datetime format
+     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+     * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameDatetimeFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User-provided format string specifying how to represent datetimes
+     * in Cloud Storage filenames. See the [datetime format
+     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+     * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filenameDatetimeFormat to set. + * @return This builder for chaining. + */ + public Builder setFilenameDatetimeFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filenameDatetimeFormat_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided format string specifying how to represent datetimes
+     * in Cloud Storage filenames. See the [datetime format
+     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+     * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilenameDatetimeFormat() { + filenameDatetimeFormat_ = getDefaultInstance().getFilenameDatetimeFormat(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided format string specifying how to represent datetimes
+     * in Cloud Storage filenames. See the [datetime format
+     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+     * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filenameDatetimeFormat to set. + * @return This builder for chaining. + */ + public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filenameDatetimeFormat_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, @@ -3134,7 +3330,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * @return Whether the maxDuration field is set. */ public boolean hasMaxDuration() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3180,7 +3376,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { } else { maxDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3202,7 +3398,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal } else { maxDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3220,7 +3416,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && maxDuration_ != null && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDurationBuilder().mergeFrom(value); @@ -3231,7 +3427,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { maxDurationBuilder_.mergeFrom(value); } if (maxDuration_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3249,7 +3445,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { *
*/ public Builder clearMaxDuration() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); maxDuration_ = null; if (maxDurationBuilder_ != null) { maxDurationBuilder_.dispose(); @@ -3271,7 +3467,7 @@ public Builder clearMaxDuration() { *
*/ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getMaxDurationFieldBuilder().getBuilder(); } @@ -3360,7 +3556,7 @@ public long getMaxBytes() { public Builder setMaxBytes(long value) { maxBytes_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3378,7 +3574,7 @@ public Builder setMaxBytes(long value) { * @return This builder for chaining. */ public Builder clearMaxBytes() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); maxBytes_ = 0L; onChanged(); return this; @@ -3420,7 +3616,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3463,7 +3659,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3483,7 +3679,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 8b561caf3..d643ff50a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -111,6 +111,35 @@ public interface CloudStorageConfigOrBuilder */ com.google.protobuf.ByteString getFilenameSuffixBytes(); + /** + * + * + *
+   * Optional. User-provided format string specifying how to represent datetimes
+   * in Cloud Storage filenames. See the [datetime format
+   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+   * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + java.lang.String getFilenameDatetimeFormat(); + /** + * + * + *
+   * Optional. User-provided format string specifying how to represent datetimes
+   * in Cloud Storage filenames. See the [datetime format
+   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
+   * 
+ * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + com.google.protobuf.ByteString getFilenameDatetimeFormatBytes(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 1e2f25b46..ec2faf3c1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -310,7 +310,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
        * Permission denied encountered while publishing to the topic. This can
-       * happen due to Pub/Sub SA has not been granted the [appropriate publish
+       * happen if the Pub/Sub SA has not been granted the [appropriate publish
        * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
        * 
* @@ -383,7 +383,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
        * Permission denied encountered while publishing to the topic. This can
-       * happen due to Pub/Sub SA has not been granted the [appropriate publish
+       * happen if the Pub/Sub SA has not been granted the [appropriate publish
        * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
        * 
* diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 687428395..84afba3bf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -426,229 +426,230 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" - + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\316\004\n\022Clou" + + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\365\004\n\022Clou" + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" - + "ffix\030\003 \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.g" - + "oogle.pubsub.v1.CloudStorageConfig.TextC" - + "onfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.goog" - + "le.pubsub.v1.CloudStorageConfig.AvroConf" - + "igB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google" - + ".protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001" - + "(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v" - + "1.CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextC" - + "onfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 " - + "\001(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tN" - + "OT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRI" - + "CTION\020\004B\017\n\routput_format\"|\n\017ReceivedMess" - + "age\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(" - + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022" - + "\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSub" - + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" - + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" - + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscr" - + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Pro" - + "ject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" - + "en\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespon" - + "se\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsu" - + "b.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\"\223\001\n\027ModifyPu" - + "shConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "ffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_for" + + "mat\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.TextCo" + + "nfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.googl" + + "e.pubsub.v1.CloudStorageConfig.AvroConfi" + + "gB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(" + + "\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1" + + ".CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextCo" + + "nfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + + "T_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRIC" + + "TION\020\004B\017\n\routput_format\"|\n\017ReceivedMessa" + + "ge\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035" + + "\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubs" + + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v" - + "1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022!\n\022return_immediatel" - + "y\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A" - + "\002\"Q\n\014PullResponse\022A\n\021received_messages\030\001" - + " \003(\0132!.google.pubsub.v1.ReceivedMessageB" - + "\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A" - + "\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022" - + "AcknowledgeRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Streaming" - + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022\024\n" - + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_s" - + "econds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack" - + "_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_s" - + "econds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A" - + "\001\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001" - + "\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" - + "\025StreamingPullResponse\022A\n\021received_messa" - + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" - + "sageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 " - + "\001(\0132?.google.pubsub.v1.StreamingPullResp" - + "onse.AcknowledgeConfirmationB\003\340A\001\022t\n mod" - + "ify_ack_deadline_confirmation\030\003 \001(\0132E.go" - + "ogle.pubsub.v1.StreamingPullResponse.Mod" - + "ifyAckDeadlineConfirmationB\003\340A\001\022d\n\027subsc" - + "ription_properties\030\004 \001(\0132>.google.pubsub" - + ".v1.StreamingPullResponse.SubscriptionPr" - + "opertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmatio" - + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" - + "ds\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\t" - + "B\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB" - + "\003\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n" - + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002" - + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 " - + "\003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035ex" - + "actly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%" - + "\n\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002" - + "\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340" - + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n" - + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022H\n\006labels\030\003 \003(\0132" - + "3.google.pubsub.v1.CreateSnapshotRequest" - + ".LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnaps" - + "hotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pu" - + "bsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010" - + "Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001" - + "(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "4\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.p" - + "ubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" - + "projects/{project}/snapshots/{snapshot}\"" - + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" - + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" - + "\215\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" - + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshots" - + "Response\0222\n\tsnapshots\030\001 \003(\0132\032.google.pub" - + "sub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010s" - + "napshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis" - + ".com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscri" - + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c" - + "om/Subscription\022/\n\004time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001" - + "(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsh" - + "otH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPubli" - + "sher\022q\n\013CreateTopic\022\027.google.pubsub.v1.T" - + "opic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323" - + "\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022" - + "\221\001\n\013UpdateTopic\022$.google.pubsub.v1.Updat" - + "eTopicRequest\032\027.google.pubsub.v1.Topic\"C" - + "\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.n" - + "ame=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022" - + " .google.pubsub.v1.PublishRequest\032!.goog" - + "le.pubsub.v1.PublishResponse\"C\332A\016topic,m" - + "essages\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" - + "ics/*}:publish:\001*\022w\n\010GetTopic\022!.google.p" - + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" - + ".v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pr" - + "ojects/*/topics/*}\022\212\001\n\nListTopics\022#.goog" - + "le.pubsub.v1.ListTopicsRequest\032$.google." - + "pubsub.v1.ListTopicsResponse\"1\332A\007project" - + "\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022" - + "\272\001\n\026ListTopicSubscriptions\022/.google.pubs" - + "ub.v1.ListTopicSubscriptionsRequest\0320.go" - + "ogle.pubsub.v1.ListTopicSubscriptionsRes" - + "ponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projec" - + "ts/*/topics/*}/subscriptions\022\252\001\n\022ListTop" - + "icSnapshots\022+.google.pubsub.v1.ListTopic" - + "SnapshotsRequest\032,.google.pubsub.v1.List" - + "TopicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)" - + "/v1/{topic=projects/*/topics/*}/snapshot" - + "s\022|\n\013DeleteTopic\022$.google.pubsub.v1.Dele" - + "teTopicRequest\032\026.google.protobuf.Empty\"/" - + "\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/to" - + "pics/*}\022\255\001\n\022DetachSubscription\022+.google." - + "pubsub.v1.DetachSubscriptionRequest\032,.go" - + "ogle.pubsub.v1.DetachSubscriptionRespons" - + "e\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/" - + "subscriptions/*}:detach\032p\312A\025pubsub.googl" - + "eapis.com\322AUhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Cre" - + "ateSubscription\022\036.google.pubsub.v1.Subsc" - + "ription\032\036.google.pubsub.v1.Subscription\"" - + "^\332A+name,topic,push_config,ack_deadline_" - + "seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subs" - + "criptions/*}:\001*\022\241\001\n\017GetSubscription\022(.go" - + "ogle.pubsub.v1.GetSubscriptionRequest\032\036." - + "google.pubsub.v1.Subscription\"D\332A\014subscr" - + "iption\202\323\344\223\002/\022-/v1/{subscription=projects" - + "/*/subscriptions/*}\022\273\001\n\022UpdateSubscripti" - + "on\022+.google.pubsub.v1.UpdateSubscription" - + "Request\032\036.google.pubsub.v1.Subscription\"" - + "X\332A\030subscription,update_mask\202\323\344\223\002722/v1/" - + "{subscription.name=projects/*/subscripti" - + "ons/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google" - + ".pubsub.v1.ListSubscriptionsRequest\032+.go" - + "ogle.pubsub.v1.ListSubscriptionsResponse" - + "\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=project" - + "s/*}/subscriptions\022\237\001\n\022DeleteSubscriptio" - + "n\022+.google.pubsub.v1.DeleteSubscriptionR" - + "equest\032\026.google.protobuf.Empty\"D\332A\014subsc" - + "ription\202\323\344\223\002/*-/v1/{subscription=project" - + "s/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadli" - + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" - + "equest\032\026.google.protobuf.Empty\"v\332A)subsc" - + "ription,ack_ids,ack_deadline_seconds\202\323\344\223" - + "\002D\"?/v1/{subscription=projects/*/subscri" - + "ptions/*}:modifyAckDeadline:\001*\022\250\001\n\013Ackno" - + "wledge\022$.google.pubsub.v1.AcknowledgeReq" - + "uest\032\026.google.protobuf.Empty\"[\332A\024subscri" - + "ption,ack_ids\202\323\344\223\002>\"9/v1/{subscription=p" - + "rojects/*/subscriptions/*}:acknowledge:\001" - + "*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullReques" - + "t\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,s" - + "ubscription,return_immediately,max_messa" - + "ges\332A\031subscription,max_messages\202\323\344\223\0027\"2/" - + "v1/{subscription=projects/*/subscription" - + "s/*}:pull:\001*\022f\n\rStreamingPull\022&.google.p" - + "ubsub.v1.StreamingPullRequest\032\'.google.p" - + "ubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.Mod" - + "ifyPushConfigRequest\032\026.google.protobuf.E" - + "mpty\"d\332A\030subscription,push_config\202\323\344\223\002C\"" - + ">/v1/{subscription=projects/*/subscripti" - + "ons/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsh" - + "ot\022$.google.pubsub.v1.GetSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"8\332A\010snapsho" - + "t\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" - + "ots/*}\022\226\001\n\rListSnapshots\022&.google.pubsub" - + ".v1.ListSnapshotsRequest\032\'.google.pubsub" - + ".v1.ListSnapshotsResponse\"4\332A\007project\202\323\344" - + "\223\002$\022\"/v1/{project=projects/*}/snapshots\022" - + "\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cr" - + "eateSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1" - + "/{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Up" - + "dateSnapshot\022\'.google.pubsub.v1.UpdateSn" - + "apshotRequest\032\032.google.pubsub.v1.Snapsho" - + "t\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{s" - + "napshot.name=projects/*/snapshots/*}:\001*\022" - + "\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" - + "leteSnapshotRequest\032\026.google.protobuf.Em" - + "pty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pr" - + "ojects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google." - + "pubsub.v1.SeekRequest\032\036.google.pubsub.v1" - + ".SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription" - + "=projects/*/subscriptions/*}:seek:\001*\032p\312A" - + "\025pubsub.googleapis.com\322AUhttps://www.goo" - + "gleapis.com/auth/cloud-platform,https://" - + "www.googleapis.com/auth/pubsubB\252\001\n\024com.g" - + "oogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.go" - + "ogle.com/go/pubsub/apiv1/pubsubpb;pubsub" - + "pb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\" - + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:" - + ":V1b\006proto3" + + "n\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subsc" + + "ription\030\001 \001(\0132\036.google.pubsub.v1.Subscri" + + "ptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscri" + + "ptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespons" + + "e\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" + + ".v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\"\223\001\n\027ModifyPus" + + "hConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1" + + ".PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022!\n\022return_immediately" + + "\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002" + + "\"Q\n\014PullResponse\022A\n\021received_messages\030\001 " + + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003" + + "\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002" + + "\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022A" + + "cknowledgeRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingP" + + "ullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007" + + "ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_se" + + "conds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_" + + "ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_se" + + "conds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001" + + "\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022" + + "\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025" + + "StreamingPullResponse\022A\n\021received_messag" + + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" + + "ageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001" + + "(\0132?.google.pubsub.v1.StreamingPullRespo" + + "nse.AcknowledgeConfirmationB\003\340A\001\022t\n modi" + + "fy_ack_deadline_confirmation\030\003 \001(\0132E.goo" + + "gle.pubsub.v1.StreamingPullResponse.Modi" + + "fyAckDeadlineConfirmationB\003\340A\001\022d\n\027subscr" + + "iption_properties\030\004 \001(\0132>.google.pubsub." + + "v1.StreamingPullResponse.SubscriptionPro" + + "pertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation" + + "\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_id" + + "s\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB" + + "\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003" + + "\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007" + + "ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 " + + "\003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003" + + "(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exa" + + "ctly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A" + + "\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014" + + "subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022H\n\006labels\030\003 \003(\01323" + + ".google.pubsub.v1.CreateSnapshotRequest." + + "LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsh" + + "otRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pub" + + "sub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010S" + + "napshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(" + + "\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224" + + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pu" + + "bsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'p" + + "rojects/{project}/snapshots/{snapshot}\"N" + + "\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" + + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\215" + + "\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsR" + + "esponse\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubs" + + "ub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002" + + " \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010sn" + + "apshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis." + + "com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022/\n\004time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(" + + "\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsho" + + "tH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublis" + + "her\022q\n\013CreateTopic\022\027.google.pubsub.v1.To" + + "pic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344" + + "\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221" + + "\001\n\013UpdateTopic\022$.google.pubsub.v1.Update" + + "TopicRequest\032\027.google.pubsub.v1.Topic\"C\332" + + "A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.na" + + "me=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 " + + ".google.pubsub.v1.PublishRequest\032!.googl" + + "e.pubsub.v1.PublishResponse\"C\332A\016topic,me" + + "ssages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + + "cs/*}:publish:\001*\022w\n\010GetTopic\022!.google.pu" + + "bsub.v1.GetTopicRequest\032\027.google.pubsub." + + "v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pro" + + "jects/*/topics/*}\022\212\001\n\nListTopics\022#.googl" + + "e.pubsub.v1.ListTopicsRequest\032$.google.p" + + "ubsub.v1.ListTopicsResponse\"1\332A\007project\202" + + "\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272" + + "\001\n\026ListTopicSubscriptions\022/.google.pubsu" + + "b.v1.ListTopicSubscriptionsRequest\0320.goo" + + "gle.pubsub.v1.ListTopicSubscriptionsResp" + + "onse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=project" + + "s/*/topics/*}/subscriptions\022\252\001\n\022ListTopi" + + "cSnapshots\022+.google.pubsub.v1.ListTopicS" + + "napshotsRequest\032,.google.pubsub.v1.ListT" + + "opicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/" + + "v1/{topic=projects/*/topics/*}/snapshots" + + "\022|\n\013DeleteTopic\022$.google.pubsub.v1.Delet" + + "eTopicRequest\032\026.google.protobuf.Empty\"/\332" + + "A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/top" + + "ics/*}\022\255\001\n\022DetachSubscription\022+.google.p" + + "ubsub.v1.DetachSubscriptionRequest\032,.goo" + + "gle.pubsub.v1.DetachSubscriptionResponse" + + "\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/s" + + "ubscriptions/*}:detach\032p\312A\025pubsub.google" + + "apis.com\322AUhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Crea" + + "teSubscription\022\036.google.pubsub.v1.Subscr" + + "iption\032\036.google.pubsub.v1.Subscription\"^" + + "\332A+name,topic,push_config,ack_deadline_s" + + "econds\202\323\344\223\002*\032%/v1/{name=projects/*/subsc" + + "riptions/*}:\001*\022\241\001\n\017GetSubscription\022(.goo" + + "gle.pubsub.v1.GetSubscriptionRequest\032\036.g" + + "oogle.pubsub.v1.Subscription\"D\332A\014subscri" + + "ption\202\323\344\223\002/\022-/v1/{subscription=projects/" + + "*/subscriptions/*}\022\273\001\n\022UpdateSubscriptio" + + "n\022+.google.pubsub.v1.UpdateSubscriptionR" + + "equest\032\036.google.pubsub.v1.Subscription\"X" + + "\332A\030subscription,update_mask\202\323\344\223\002722/v1/{" + + "subscription.name=projects/*/subscriptio" + + "ns/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google." + + "pubsub.v1.ListSubscriptionsRequest\032+.goo" + + "gle.pubsub.v1.ListSubscriptionsResponse\"" + + "8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects" + + "/*}/subscriptions\022\237\001\n\022DeleteSubscription" + + "\022+.google.pubsub.v1.DeleteSubscriptionRe" + + "quest\032\026.google.protobuf.Empty\"D\332A\014subscr" + + "iption\202\323\344\223\002/*-/v1/{subscription=projects" + + "/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadlin" + + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" + + "quest\032\026.google.protobuf.Empty\"v\332A)subscr" + + "iption,ack_ids,ack_deadline_seconds\202\323\344\223\002" + + "D\"?/v1/{subscription=projects/*/subscrip" + + "tions/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknow" + + "ledge\022$.google.pubsub.v1.AcknowledgeRequ" + + "est\032\026.google.protobuf.Empty\"[\332A\024subscrip" + + "tion,ack_ids\202\323\344\223\002>\"9/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:acknowledge:\001*" + + "\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRequest" + + "\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,su" + + "bscription,return_immediately,max_messag" + + "es\332A\031subscription,max_messages\202\323\344\223\0027\"2/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" + + "bsub.v1.StreamingPullRequest\032\'.google.pu" + + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020" + + "ModifyPushConfig\022).google.pubsub.v1.Modi" + + "fyPushConfigRequest\032\026.google.protobuf.Em" + + "pty\"d\332A\030subscription,push_config\202\323\344\223\002C\">" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsho" + + "t\022$.google.pubsub.v1.GetSnapshotRequest\032" + + "\032.google.pubsub.v1.Snapshot\"8\332A\010snapshot" + + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\022\226\001\n\rListSnapshots\022&.google.pubsub." + + "v1.ListSnapshotsRequest\032\'.google.pubsub." + + "v1.ListSnapshotsResponse\"4\332A\007project\202\323\344\223" + + "\002$\022\"/v1/{project=projects/*}/snapshots\022\227" + + "\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cre" + + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" + + "apshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/" + + "{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Upd" + + "ateSnapshot\022\'.google.pubsub.v1.UpdateSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{sn" + + "apshot.name=projects/*/snapshots/*}:\001*\022\213" + + "\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.Del" + + "eteSnapshotRequest\032\026.google.protobuf.Emp" + + "ty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pro" + + "jects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.p" + + "ubsub.v1.SeekRequest\032\036.google.pubsub.v1." + + "SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=" + + "projects/*/subscriptions/*}:seek:\001*\032p\312A\025" + + "pubsub.googleapis.com\322AUhttps://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/pubsubB\252\001\n\024com.go" + + "ogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.goo" + + "gle.com/go/pubsub/apiv1/pubsubpb;pubsubp" + + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" + + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -962,6 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", "FilenamePrefix", "FilenameSuffix", + "FilenameDatetimeFormat", "TextConfig", "AvroConfig", "MaxDuration", diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 49e0f1204..37e6cb313 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bcc0846fa..93dce1877 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 93e1e84a7..c3a90cd40 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -203,7 +203,7 @@ message IngestionDataSourceSettings { KINESIS_PERMISSION_DENIED = 2; // Permission denied encountered while publishing to the topic. This can - // happen due to Pub/Sub SA has not been granted the [appropriate publish + // happen if the Pub/Sub SA has not been granted the [appropriate publish // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) PUBLISH_PERMISSION_DENIED = 3; @@ -1197,6 +1197,11 @@ message CloudStorageConfig { // Must not end in "/". string filename_suffix = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. User-provided format string specifying how to represent datetimes + // in Cloud Storage filenames. See the [datetime format + // guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names). + string filename_datetime_format = 10 [(google.api.field_behavior) = OPTIONAL]; + // Defaults to text format. oneof output_format { // Optional. If set, message data will be written to Cloud Storage in text From 53c112033dc721cf91aceddfc1eeb3c6daddb45e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 4 Apr 2024 00:11:12 +0200 Subject: [PATCH 103/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.26.1 (#1972) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d84d3c3de..741044ca5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a1429a46e..360d9bc58 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d0a14bd26..396be5afb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 From 1837776a4cd5fe57e7941820b5fb526a52b16254 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 4 Apr 2024 00:11:34 +0200 Subject: [PATCH 104/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.35.0 (#1973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.35.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 62f999a1e..552268905 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.34.0') +implementation platform('com.google.cloud:libraries-bom:26.35.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 9c3e31530..2d623770f 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 396be5afb..2fd97a0d1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import From 468ff6cc2759d7a774f6c16b98cfd90eb6addcae Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:11:53 -0400 Subject: [PATCH 105/656] chore: update ignore paths in renovate config (#1945) (#1971) Source-Link: https://github.com/googleapis/synthtool/commit/571a0916913e0aff0f66ca513514072893d534eb Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- renovate.json | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index d7b8a2d87..6167135e9 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 -# created: 2024-03-25T17:31:37.187420732Z + digest: sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 +# created: 2024-03-27T17:59:25.436353226Z diff --git a/renovate.json b/renovate.json index 6d24ffd87..58c97664e 100644 --- a/renovate.json +++ b/renovate.json @@ -12,7 +12,10 @@ ], "ignorePaths": [ ".kokoro/requirements.txt", - ".github/workflows/**" + ".github/workflows/approve-readme.yaml", + ".github/workflows/ci.yaml", + ".github/workflows/renovate_config_check.yaml", + ".github/workflows/samples.yaml" ], "customManagers": [ { From fd86b39406df0dc37db6bccdc65e281bcfe1e0bb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:56:34 -0400 Subject: [PATCH 106/656] chore(main): release 1.128.0 (#1967) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 1.128.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- CHANGELOG.md | 19 +++++++++++++++++++ README.md | 4 ++-- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- versions.txt | 6 +++--- 11 files changed, 41 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68581690d..9497564bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.128.0](https://github.com/googleapis/java-pubsub/compare/v1.127.3...v1.128.0) (2024-04-03) + + +### Features + +* Add custom datetime format for Cloud Storage subscriptions ([#1970](https://github.com/googleapis/java-pubsub/issues/1970)) ([7113f06](https://github.com/googleapis/java-pubsub/commit/7113f065973bb8b56ab811e0589ffb7975873679)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 ([#1965](https://github.com/googleapis/java-pubsub/issues/1965)) ([ec3b386](https://github.com/googleapis/java-pubsub/commit/ec3b38665ddc6336f975d597d27c4aa25732c474)) +* Update dependency com.google.cloud:google-cloud-storage to v2.36.1 ([#1968](https://github.com/googleapis/java-pubsub/issues/1968)) ([524109c](https://github.com/googleapis/java-pubsub/commit/524109c1afc5118c79fd97769e194a1325322107)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.26.1 ([#1972](https://github.com/googleapis/java-pubsub/issues/1972)) ([53c1120](https://github.com/googleapis/java-pubsub/commit/53c112033dc721cf91aceddfc1eeb3c6daddb45e)) + + +### Documentation + +* Add Kinesis ingestion samples ([#1947](https://github.com/googleapis/java-pubsub/issues/1947)) ([5b5c14b](https://github.com/googleapis/java-pubsub/commit/5b5c14ba31636c037c2b8d6a166bd48670e23688)) + ## [1.127.3](https://github.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) diff --git a/README.md b/README.md index 552268905..069947cbf 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.35.0') +implementation platform('com.google.cloud:libraries-bom:26.36.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c306409f1..ee13a6f05 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.4-SNAPSHOT + 1.128.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index b1766243f..f1c57e859 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 8a15fef01..99490c619 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/pom.xml b/pom.xml index 10dc42a8b..9c10f67c6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.4-SNAPSHOT + 1.128.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e19772765..3b1dc1da2 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 2d623770f..9c3e31530 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 360d9bc58..28b930472 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2fd97a0d1..396be5afb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import diff --git a/versions.txt b/versions.txt index 15b2b7d00..2851c93c4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.3:1.127.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT +google-cloud-pubsub:1.128.0:1.128.0 +grpc-google-cloud-pubsub-v1:1.110.0:1.110.0 +proto-google-cloud-pubsub-v1:1.110.0:1.110.0 From a84f9d0d55234a43b8ac1a3450fcab46d1afdfb3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:12:16 +0000 Subject: [PATCH 107/656] chore(main): release 1.128.1-SNAPSHOT (#1979) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ee13a6f05..c08a1914a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.0 + 1.128.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index f1c57e859..dd26d5082 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 99490c619..3dee4d32c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 9c10f67c6..32bf26597 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.0 + 1.128.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3b1dc1da2..16d41d135 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 28b930472..925ea64c9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 2851c93c4..f6bc47ca3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.0:1.128.0 -grpc-google-cloud-pubsub-v1:1.110.0:1.110.0 -proto-google-cloud-pubsub-v1:1.110.0:1.110.0 +google-cloud-pubsub:1.128.0:1.128.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT From 6169074c62b85819e4ab27a2b28faf92ef02ad13 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:26:46 +0000 Subject: [PATCH 108/656] chore: change version of unmanaged dependency check (#1982) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change version of unmanaged dependency check * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 62c5fa4a0..a29e78535 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@unmanaged-dependencies-check-latest + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.28.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/README.md b/README.md index 069947cbf..b4ed5d367 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.128.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 618abdd44dd9670a5d6a1ca3c923e3d0621c6248 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 00:58:27 +0200 Subject: [PATCH 109/656] deps: update actions/checkout action to v4 (#1975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/checkout action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index a29e78535..9bddc3663 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-java@v3 with: distribution: temurin From c8361722544ec4170b94651e77b02634938c7883 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:05:59 +0200 Subject: [PATCH 110/656] deps: update actions/github-script action to v7 (#1976) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/github-script action to v7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/auto-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 7a106d007..18d92e5a2 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From e7227fe96e5a28c21a0ec85e8555792fa0679d43 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:07:55 -0400 Subject: [PATCH 111/656] chore: owlbot-java adding the Docker tag in images section (#1949) (#1983) Source-Link: https://github.com/googleapis/synthtool/commit/4b49307944160a308513a34f73dbd6b00b6617d2 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 6167135e9..6983bb263 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 -# created: 2024-03-27T17:59:25.436353226Z + digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 +# created: 2024-04-05T19:12:34.133475268Z diff --git a/README.md b/README.md index b4ed5d367..710dccef5 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.36.0') +implementation platform('com.google.cloud:libraries-bom:26.37.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` From e7b8366938193ce119bcc91f7a004c2e6a8d8744 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:08:23 +0200 Subject: [PATCH 112/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.37.0 (#1977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 710dccef5..7a01ab081 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 9c3e31530..8f67bcb4b 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 396be5afb..d74d3d3c4 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import From 422543ab16cdb834a0a94812f92f38a60476649d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:09:56 +0200 Subject: [PATCH 113/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.0 (#1980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a01ab081..d03aa337b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.3 + 1.128.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 741044ca5..662208e90 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.128.0 From 22a85668f4e31ade47313054b3291d850dc82d05 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:22:16 +0000 Subject: [PATCH 114/656] chore(main): release 1.128.1 (#1985) :robot: I have created a release *beep* *boop* --- ## [1.128.1](https://togithub.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) ### Dependencies * Update actions/checkout action to v4 ([#1975](https://togithub.com/googleapis/java-pubsub/issues/1975)) ([618abdd](https://togithub.com/googleapis/java-pubsub/commit/618abdd44dd9670a5d6a1ca3c923e3d0621c6248)) * Update actions/github-script action to v7 ([#1976](https://togithub.com/googleapis/java-pubsub/issues/1976)) ([c836172](https://togithub.com/googleapis/java-pubsub/commit/c8361722544ec4170b94651e77b02634938c7883)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9497564bd..4d43870f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.128.1](https://github.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) + + +### Dependencies + +* Update actions/checkout action to v4 ([#1975](https://github.com/googleapis/java-pubsub/issues/1975)) ([618abdd](https://github.com/googleapis/java-pubsub/commit/618abdd44dd9670a5d6a1ca3c923e3d0621c6248)) +* Update actions/github-script action to v7 ([#1976](https://github.com/googleapis/java-pubsub/issues/1976)) ([c836172](https://github.com/googleapis/java-pubsub/commit/c8361722544ec4170b94651e77b02634938c7883)) + ## [1.128.0](https://github.com/googleapis/java-pubsub/compare/v1.127.3...v1.128.0) (2024-04-03) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c08a1914a..8852d7925 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.1-SNAPSHOT + 1.128.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index dd26d5082..8a9725bf1 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 3dee4d32c..42b35b97f 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/pom.xml b/pom.xml index 32bf26597..599808adc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.1-SNAPSHOT + 1.128.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 16d41d135..d2a2c7fc1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 925ea64c9..4c0cf6301 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/versions.txt b/versions.txt index f6bc47ca3..09a7d537f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.0:1.128.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT +google-cloud-pubsub:1.128.1:1.128.1 +grpc-google-cloud-pubsub-v1:1.110.1:1.110.1 +proto-google-cloud-pubsub-v1:1.110.1:1.110.1 From 3f1d779d3fb7ca860f5a195f8e6825100ce9634e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:36:16 +0000 Subject: [PATCH 115/656] chore(main): release 1.128.2-SNAPSHOT (#1986) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 8852d7925..bc5527b59 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.1 + 1.128.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8a9725bf1..42c1c7ce2 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 42b35b97f..2ff39998d 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 599808adc..3ad44b12b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.1 + 1.128.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d2a2c7fc1..92eed2238 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4c0cf6301..c784b1204 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 09a7d537f..f582e1cf9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.1:1.128.1 -grpc-google-cloud-pubsub-v1:1.110.1:1.110.1 -proto-google-cloud-pubsub-v1:1.110.1:1.110.1 +google-cloud-pubsub:1.128.1:1.128.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT From 374c18ce217a6079a7ec9a95b11b4c358494384c Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:44:22 -0400 Subject: [PATCH 116/656] chore: include recommended_package in repo-metadata.json (#1991) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: include recommended_package in repo-metadata.json * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .repo-metadata.json | 3 ++- README.md | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 6cb07ab00..f30706ceb 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -14,5 +14,6 @@ "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", - "requires_billing": true + "requires_billing": true, + "recommended_package": "com.google.cloud.pubsub.v1" } \ No newline at end of file diff --git a/README.md b/README.md index d03aa337b..2d051fe2a 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.128.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.128.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 8cf53c29a8bd94910e0c1f993208e4bf25263ef3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 17 Apr 2024 23:31:00 +0200 Subject: [PATCH 117/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.1 (#1987) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d051fe2a..ff535f071 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 662208e90..a440be51f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1 From f445e8bb2517b4a740c36bc971a6ebf4958cfcc3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:31:08 -0400 Subject: [PATCH 118/656] build: Update protobuf to 25.3 in WORKSPACE (#1989) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build: Update protobuf to 25.3 in WORKSPACE PiperOrigin-RevId: 624989428 Source-Link: https://github.com/googleapis/googleapis/commit/caf600abae856335abbfcfa6d978bca051c2bc8c Source-Link: https://github.com/googleapis/googleapis-gen/commit/cc580b8ea4c07f774093d0f8c4afedd2eae6e856 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2M1ODBiOGVhNGMwN2Y3NzQwOTNkMGY4YzRhZmVkZDJlYWU2ZTg1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../src/main/java/com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListSchemasResponse.java | 2 +- .../java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicSubscriptionsResponse.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PublishRequest.java | 2 +- .../main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PublishResponse.java | 2 +- .../java/com/google/pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../src/main/java/com/google/pubsub/v1/PullRequest.java | 2 +- .../main/java/com/google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PullResponse.java | 2 +- .../main/java/com/google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PushConfig.java | 2 +- .../src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Schema.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaSettings.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaView.java | 2 +- .../src/main/java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/StreamingPullRequest.java | 2 +- .../com/google/pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/StreamingPullResponse.java | 2 +- .../com/google/pubsub/v1/StreamingPullResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Subscription.java | 2 +- .../main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Topic.java | 2 +- .../src/main/java/com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateMessageResponse.java | 2 +- .../com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java | 2 +- 128 files changed, 128 insertions(+), 128 deletions(-) diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 7d02c1dae..668794506 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 47b7ef171..c63597264 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 4ada79896..67b06239d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1162f9931..a2420175d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 1d1cbaf18..5d3704a7d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d643ff50a..19eab21ab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index b0cd68691..cdad41598 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 638f15d98..cfa087dc3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index ab23cc3db..76fd2dae7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index b72efe40c..a23e7a3b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 48f0131c2..3c7da99ab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ecd2d5d2f..74ddf5910 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index a5b1e0132..57afeb96a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ef589a2a7..4a1978e9b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index d6b1e3c58..c0ea4a8a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 9faabb2bc..076450f41 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 5d17ea9f2..6ac40de58 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index c795a1e1d..722f7dd48 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 6ce385f7e..96ede82bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index fa454e735..9663ebc95 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6dd193063..2cd4d03f2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 22525f2bd..17ceb01cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 6691a8e02..60dc14c02 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 236ae63cc..4d2c3f90d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index ed63937e3..91f13786d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 0fa26b570..fe853552a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 8974d658a..159c368d3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 0d50e273c..1bc2d75a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 5fa8f2e58..546992aee 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index cf5dfe323..3af85ffe3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 39d5d21b7..14c7afe7d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index a849d24bc..e7ecb8c7e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 09647ffce..efa1fed5b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 5e453d1f7..781abb305 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 24afcaa92..325bb59bb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index b46914346..496f0a163 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index b9fd18e9c..c314020a8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 237a22107..1ac15ed4b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 423d0053c..b1ea21ae5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index ec2faf3c1..b56f85ee0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 7191edd93..bb6b772b6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3c3ae0b53..a6642f752 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 9fc4c6771..8204f3f74 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index f48aabaef..9dd8d251a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 03a233f0b..2641ad810 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index cea16a7e6..fe78eaca6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 0b8eb8c94..ac55a2d81 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index eb6b7c8cd..4cb9c7f3f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 4a7c6da09..320b026c7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index e375b2312..648cca2f0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 6add8724c..f8d56aa72 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 5fa3caa84..811a06f76 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 3a0fc2f18..13e847234 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 0d1033830..9a5ca2f39 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index cf0a23a85..cfaa15b95 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 38bcdaa7b..257a763d0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 9702ee6a8..02232e020 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 04d59ac07..c7777e123 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index ed7e3b6ba..6d92bdbfb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 9e0ddfe5a..520b7a7c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index d8fa52928..22d479638 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 1cd0ec4d9..cc1c7ba0e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index f566e81cf..cb3a4e419 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 3b1394a94..2750b4256 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index b1d983699..f884bb44b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 49f2b04d7..355aef97b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 2207da516..87b88fc63 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 1ddab4ffe..30120c6ec 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fa0fc598b..fdeff7d84 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 8b59c4383..fbf890547 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 50763bc80..e836d0653 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 58c76b3cb..297e93e50 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 3286db14c..19520abd3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 8cb3d6f3b..8f8a5dceb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 15f80a19b..341a6ff83 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 0c0b2828a..dfbe0db2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 46faa9c93..8c91821c1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 2d8fc0182..ca6ed68dd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 1d7365285..c59d86e61 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 493f01cce..9ac71c1b2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 1509232e7..0f829d666 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 84afba3bf..8fff960ed 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 37e6cb313..9d0f93c99 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 93dce1877..08a7576aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index f63d9e26b..ad8af3436 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index dd54132aa..be0759de0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 01c977f88..f8ab6fe90 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 6fa337bfd..1959de88a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index c29968fa1..2e3758f8a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index c264dbcff..76d5c4833 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 1d732b864..aad00e999 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 243fada30..ffb8b81ca 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index c35c26333..7e03f82b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 4ee8574d4..3e7d17566 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 3966a39d4..162fe2c55 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 10e502b33..d37cbd043 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index a9aa77211..c37d55563 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 6542c6f6a..0b80c5d00 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 22df58e9d..9bb24f70e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 83354637b..6e1d01c15 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 732adf8b5..dcf3bc41a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 0b5968b3e..57ba5547f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index e7ff73bf5..38470ccca 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 78d0e1c4c..bfddc8482 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 61ed093bc..7b1997373 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index d304660a8..7475a57bb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index fb0b8c4cd..c86a6f371 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 392a3b401..f745c1ce9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index fc79cb7f8..43fb79840 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 38c37b680..e088dd987 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 8aae021aa..111ce505f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 6b57f92f8..15a06889d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e8ecc6fd2..e02ddfb68 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 0e44025b4..5b06555e3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 69e80a838..7a906c423 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index daf1d090a..45d85d152 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 7f71bf3ac..b91bfd8aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 9904952bf..02025fe17 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 5ce3a927d..356606555 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 024f90ccc..1767d2f3d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 8b0bc262a..fe2e281e2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 18436cb2d..99e1e670c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 77c2d1c4d..ed1c7f8d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 2cb87b7fe..331fb6465 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index d4f978e33..2f62e4de3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 0f3cf4413..f73e4b74b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 3d801baa3..8b9256410 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index f31accde5..4d673913d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder From 64a0df337c91f965e4d8960801e10f90f78c46cd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 17 Apr 2024 23:31:17 +0200 Subject: [PATCH 119/656] deps: update actions/setup-java action to v4 (#1978) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/setup-java action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 9bddc3663..b0843491c 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 11 From 18cfa73208bdf9b6a1a597bac740056abfcb03ef Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:31:30 -0400 Subject: [PATCH 120/656] feat: add `libraries_bom_version` in metadata (#1956) (#1990) * feat: add libraries_bom_version * add unit tests * remove isfile * add tempdir * restore * add current dir * restore template * remove unit test * restore templates Source-Link: https://github.com/googleapis/synthtool/commit/63cc541da2c45fcfca2136c43e638da1fbae174d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 6983bb263..291f8e29c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 -# created: 2024-04-05T19:12:34.133475268Z + digest: sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e +# created: 2024-04-15T22:37:28.944513098Z From 5fff32ea7f3e1b475b2a15bbfff57ca163058111 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:46:16 +0000 Subject: [PATCH 121/656] chore(main): release 1.129.0 (#1993) :robot: I have created a release *beep* *boop* --- ## [1.129.0](https://togithub.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) ### Features * Add `libraries_bom_version` in metadata ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://togithub.com/googleapis/java-pubsub/issues/1990)) ([18cfa73](https://togithub.com/googleapis/java-pubsub/commit/18cfa73208bdf9b6a1a597bac740056abfcb03ef)) ### Dependencies * Update actions/setup-java action to v4 ([#1978](https://togithub.com/googleapis/java-pubsub/issues/1978)) ([64a0df3](https://togithub.com/googleapis/java-pubsub/commit/64a0df337c91f965e4d8960801e10f90f78c46cd)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d43870f5..590fed1c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.129.0](https://github.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) + + +### Features + +* Add `libraries_bom_version` in metadata ([#1956](https://github.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://github.com/googleapis/java-pubsub/issues/1990)) ([18cfa73](https://github.com/googleapis/java-pubsub/commit/18cfa73208bdf9b6a1a597bac740056abfcb03ef)) + + +### Dependencies + +* Update actions/setup-java action to v4 ([#1978](https://github.com/googleapis/java-pubsub/issues/1978)) ([64a0df3](https://github.com/googleapis/java-pubsub/commit/64a0df337c91f965e4d8960801e10f90f78c46cd)) + ## [1.128.1](https://github.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index bc5527b59..343fa290c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.2-SNAPSHOT + 1.129.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 42c1c7ce2..440cba5f2 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 2ff39998d..79a5dfb4c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/pom.xml b/pom.xml index 3ad44b12b..6b96e1405 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.2-SNAPSHOT + 1.129.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 92eed2238..cd7996651 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c784b1204..af54fc4b7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/versions.txt b/versions.txt index f582e1cf9..d72169f8b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.1:1.128.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT +google-cloud-pubsub:1.129.0:1.129.0 +grpc-google-cloud-pubsub-v1:1.111.0:1.111.0 +proto-google-cloud-pubsub-v1:1.111.0:1.111.0 From 06e00064d518a251abdcb605b6a189dbf93c8047 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:02:16 +0000 Subject: [PATCH 122/656] chore(main): release 1.129.1-SNAPSHOT (#1994) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 343fa290c..c1f9b53e1 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.0 + 1.129.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 440cba5f2..410eb0ae4 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 79a5dfb4c..b028cbc52 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6b96e1405..8944b02f9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.0 + 1.129.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index cd7996651..8b526fcf6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index af54fc4b7..03976f281 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index d72169f8b..c6d6b5e55 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.0:1.129.0 -grpc-google-cloud-pubsub-v1:1.111.0:1.111.0 -proto-google-cloud-pubsub-v1:1.111.0:1.111.0 +google-cloud-pubsub:1.129.0:1.129.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT From cff6d6a5fc297eb5254a409d495bda458dfebcd6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:46:54 +0200 Subject: [PATCH 123/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.37.0 (#1999) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff535f071..bef6ff00a 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.128.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a440be51f..36354334b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.36.1 + 2.37.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 03976f281..c1676cdd0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.36.1 + 2.37.0 From 09ee49a8304089f4388cfbde58127d46fe07a5a1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:47:05 -0400 Subject: [PATCH 124/656] fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 (#2000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 PiperOrigin-RevId: 626430774 Source-Link: https://github.com/googleapis/googleapis/commit/835b84ebfc4974ab5dcd9b31ad66c01ef3455475 Source-Link: https://github.com/googleapis/googleapis-gen/commit/43f369d90f19d09ac18720151ab106042beb811b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNmMzY5ZDkwZjE5ZDA5YWMxODcyMDE1MWFiMTA2MDQyYmViODExYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../pubsub/v1/stub/PublisherStubSettings.java | 18 ------------------ .../v1/stub/SchemaServiceStubSettings.java | 18 ------------------ .../pubsub/v1/stub/SubscriberStubSettings.java | 18 ------------------ 3 files changed, 54 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 11c0eadd7..40f03dd7f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -480,15 +480,6 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -946,15 +937,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index e63ac6d7c..9d68b251e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -340,15 +340,6 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -775,15 +766,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 85c2a53d7..30803382a 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -385,15 +385,6 @@ public SubscriberStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -959,15 +950,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public SubscriberStubSettings build() throws IOException { return new SubscriberStubSettings(this); From b4573ae6c93ca47bc802616ae3715fc10163bf2e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:47:34 +0200 Subject: [PATCH 125/656] deps: update dependency com.google.cloud:google-cloud-core to v2.37.0 (#1997) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 36354334b..2b8b3cae5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c1676cdd0..b9cf2bd6b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d74d3d3c4..3cc8e8536 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests From bb80924e55bc97db82650d4ae2bdebf406c68f98 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:47:45 +0200 Subject: [PATCH 126/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 (#1998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index b0843491c..ae38d2d7c 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.28.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.29.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index c2a88196e..326361c6b 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 94e00cbaa..1b1d4c4bf 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 8944b02f9..50aa1cd6a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.28.1 + 3.29.0 From 5e3e2cafb99c264a6fe145fb22fbe26639876173 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:48:05 +0200 Subject: [PATCH 127/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.7 (#1992) --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c1f9b53e1..0d5d9cba2 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.6 + 1.7.7 Google Cloud pubsub BOM From 46a1a2243fd2a99deae73348d9d074e39baa856d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:48:18 +0200 Subject: [PATCH 128/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.0 (#1995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bef6ff00a..1729742d5 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.128.1 + 1.129.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2b8b3cae5..af36e3377 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.129.0 From 88517fe69a7a9577aa79b693957bf56a56d0980c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Apr 2024 22:07:40 +0200 Subject: [PATCH 129/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 (#2002) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index af36e3377..8bc5b37b7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.2 + 2.39.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b9cf2bd6b..85a4bab8d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.2 + 2.39.0 com.google.cloud From 157ba65d7a7ee6fa91189df412caea38c9cb903b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 20:46:16 +0000 Subject: [PATCH 130/656] chore(main): release 1.129.1 (#2001) :robot: I have created a release *beep* *boop* --- ## [1.129.1](https://togithub.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([09ee49a](https://togithub.com/googleapis/java-pubsub/commit/09ee49a8304089f4388cfbde58127d46fe07a5a1)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([88517fe](https://togithub.com/googleapis/java-pubsub/commit/88517fe69a7a9577aa79b693957bf56a56d0980c)) * Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([b4573ae](https://togithub.com/googleapis/java-pubsub/commit/b4573ae6c93ca47bc802616ae3715fc10163bf2e)) * Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([cff6d6a](https://togithub.com/googleapis/java-pubsub/commit/cff6d6a5fc297eb5254a409d495bda458dfebcd6)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([bb80924](https://togithub.com/googleapis/java-pubsub/commit/bb80924e55bc97db82650d4ae2bdebf406c68f98)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 590fed1c1..a47d76dfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.129.1](https://github.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://github.com/googleapis/java-pubsub/issues/2000)) ([09ee49a](https://github.com/googleapis/java-pubsub/commit/09ee49a8304089f4388cfbde58127d46fe07a5a1)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://github.com/googleapis/java-pubsub/issues/2002)) ([88517fe](https://github.com/googleapis/java-pubsub/commit/88517fe69a7a9577aa79b693957bf56a56d0980c)) +* Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://github.com/googleapis/java-pubsub/issues/1997)) ([b4573ae](https://github.com/googleapis/java-pubsub/commit/b4573ae6c93ca47bc802616ae3715fc10163bf2e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://github.com/googleapis/java-pubsub/issues/1999)) ([cff6d6a](https://github.com/googleapis/java-pubsub/commit/cff6d6a5fc297eb5254a409d495bda458dfebcd6)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://github.com/googleapis/java-pubsub/issues/1998)) ([bb80924](https://github.com/googleapis/java-pubsub/commit/bb80924e55bc97db82650d4ae2bdebf406c68f98)) + ## [1.129.0](https://github.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 0d5d9cba2..d76a23929 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.1-SNAPSHOT + 1.129.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 410eb0ae4..8e92a2378 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index b028cbc52..5aafa312c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/pom.xml b/pom.xml index 50aa1cd6a..05b5b4244 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.1-SNAPSHOT + 1.129.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 8b526fcf6..9a612fb82 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 85a4bab8d..88ef681dd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/versions.txt b/versions.txt index c6d6b5e55..b211c5ee9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.0:1.129.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT +google-cloud-pubsub:1.129.1:1.129.1 +grpc-google-cloud-pubsub-v1:1.111.1:1.111.1 +proto-google-cloud-pubsub-v1:1.111.1:1.111.1 From 7d33e7891db1b2e32fd523d7655b6c11ea140a8b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:00:21 +0000 Subject: [PATCH 131/656] chore(main): release 1.129.2-SNAPSHOT (#2003) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d76a23929..4b1f4e8d4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.1 + 1.129.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8e92a2378..a49aa0fb0 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 5aafa312c..86e2b94c8 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 05b5b4244..ab830b7cc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.1 + 1.129.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 9a612fb82..b99a365f7 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 88ef681dd..e05b73441 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index b211c5ee9..38497cdd1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.1:1.129.1 -grpc-google-cloud-pubsub-v1:1.111.1:1.111.1 -proto-google-cloud-pubsub-v1:1.111.1:1.111.1 +google-cloud-pubsub:1.129.1:1.129.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT From a7f4afbc870536a7964594bc1d5b9a2eb5076cce Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 17:30:37 +0200 Subject: [PATCH 132/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 (#2006) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.39.0` -> `2.39.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery) ### [`v2.39.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2391-2024-04-29) ##### Bug Fixes - [@​Nullable](https://togithub.com/Nullable) annotations on builder methods ([#​3222](https://togithub.com/googleapis/java-bigquery/issues/3222)) ([0c5eed1](https://togithub.com/googleapis/java-bigquery/commit/0c5eed1a18409f120a1243bd5da1db2aa4f9c206)) ##### Dependencies - Update actions/checkout action ([#​3267](https://togithub.com/googleapis/java-bigquery/issues/3267)) ([c297ed2](https://togithub.com/googleapis/java-bigquery/commit/c297ed2c77e36257451b5c12e4988f3293cdbb88)) - Update actions/upload-artifact action to v4.3.3 ([#​3258](https://togithub.com/googleapis/java-bigquery/issues/3258)) ([5215235](https://togithub.com/googleapis/java-bigquery/commit/52152350a2a6218b51ebf3d7dd6beb2699064a3c)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0 ([#​3270](https://togithub.com/googleapis/java-bigquery/issues/3270)) ([ee09ab6](https://togithub.com/googleapis/java-bigquery/commit/ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f)) - Update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([e7c6201](https://togithub.com/googleapis/java-bigquery/commit/e7c620119321b673c19b99adb79247cd3c52cd67)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 ([#​3271](https://togithub.com/googleapis/java-bigquery/issues/3271)) ([3b6e0d5](https://togithub.com/googleapis/java-bigquery/commit/3b6e0d5e3d26b8e2de412aa926a638d72562d4a0)) - Update github/codeql-action action to v2.25.2 ([#​3260](https://togithub.com/googleapis/java-bigquery/issues/3260)) ([3302dc4](https://togithub.com/googleapis/java-bigquery/commit/3302dc46e3e2c6a173798ef7f1642d3d4cb20332)) - Update github/codeql-action action to v2.25.3 ([#​3268](https://togithub.com/googleapis/java-bigquery/issues/3268)) ([1cf2377](https://togithub.com/googleapis/java-bigquery/commit/1cf237702e16952029741c306aa57cb3558a663f))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1729742d5..ab2939ab2 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8bc5b37b7..7408d52bd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.39.0 + 2.39.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e05b73441..635885ae6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.39.0 + 2.39.1 com.google.cloud From 193614fa4af8c6c60addb4370ed76b21fc216315 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 17:32:32 +0200 Subject: [PATCH 133/656] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.2 (#2005) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `3.1.1` -> `3.1.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 678328275..62bf27316 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -54,7 +54,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.2 true From 7ff5c1699b7a3df407f63a370b33c2dc75898f1f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:44:24 +0000 Subject: [PATCH 134/656] chore(main): release 1.129.2 (#2007) :robot: I have created a release *beep* *boop* --- ## [1.129.2](https://togithub.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([a7f4afb](https://togithub.com/googleapis/java-pubsub/commit/a7f4afbc870536a7964594bc1d5b9a2eb5076cce)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a47d76dfc..e50b6f84a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.129.2](https://github.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://github.com/googleapis/java-pubsub/issues/2006)) ([a7f4afb](https://github.com/googleapis/java-pubsub/commit/a7f4afbc870536a7964594bc1d5b9a2eb5076cce)) + ## [1.129.1](https://github.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 4b1f4e8d4..9382cefda 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.2-SNAPSHOT + 1.129.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index a49aa0fb0..42a6d78b7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 86e2b94c8..d5ac8063e 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/pom.xml b/pom.xml index ab830b7cc..4122773aa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.2-SNAPSHOT + 1.129.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index b99a365f7..0e606ba46 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 635885ae6..64b30b5a3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/versions.txt b/versions.txt index 38497cdd1..785b30761 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.1:1.129.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT +google-cloud-pubsub:1.129.2:1.129.2 +grpc-google-cloud-pubsub-v1:1.111.2:1.111.2 +proto-google-cloud-pubsub-v1:1.111.2:1.111.2 From 4d2100a0b2bda08bb4f82afa2fe35f9c10b6349e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:00:39 +0000 Subject: [PATCH 135/656] chore(main): release 1.129.3-SNAPSHOT (#2008) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index ab2939ab2..994ce8f66 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.37.0') +implementation platform('com.google.cloud:libraries-bom:26.38.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 9382cefda..d22f2c1ab 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.2 + 1.129.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 42a6d78b7..c7e5453a5 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index d5ac8063e..22a6c1ac3 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4122773aa..07f3f4bd7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.2 + 1.129.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0e606ba46..91f26af75 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 64b30b5a3..a2ffe3475 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 785b30761..5dc95ceed 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.2:1.129.2 -grpc-google-cloud-pubsub-v1:1.111.2:1.111.2 -proto-google-cloud-pubsub-v1:1.111.2:1.111.2 +google-cloud-pubsub:1.129.2:1.129.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT From 1264678b6361138d680b66fc5cc726474bcfa35b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 19:02:21 +0200 Subject: [PATCH 136/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.1 (#2004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.129.0` -> `1.129.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.129.0/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.129.0/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.129.1`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11291-2024-04-25) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) ##### Bug Fixes - **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#​2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([09ee49a](https://togithub.com/googleapis/java-pubsub/commit/09ee49a8304089f4388cfbde58127d46fe07a5a1)) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#​2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([88517fe](https://togithub.com/googleapis/java-pubsub/commit/88517fe69a7a9577aa79b693957bf56a56d0980c)) - Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#​1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([b4573ae](https://togithub.com/googleapis/java-pubsub/commit/b4573ae6c93ca47bc802616ae3715fc10163bf2e)) - Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#​1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([cff6d6a](https://togithub.com/googleapis/java-pubsub/commit/cff6d6a5fc297eb5254a409d495bda458dfebcd6)) - Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#​1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([bb80924](https://togithub.com/googleapis/java-pubsub/commit/bb80924e55bc97db82650d4ae2bdebf406c68f98))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 994ce8f66..8424b6780 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7408d52bd..06041d919 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1 From da371777acf58d19eeba6280924a6c0c4a2ba9ac Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 22:04:21 +0200 Subject: [PATCH 137/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.38.0 (#2009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.37.0` -> `26.38.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:libraries-bom/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:libraries-bom/26.37.0/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.37.0/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-cloud-bom (com.google.cloud:libraries-bom) ### [`v26.38.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26380-2024-04-30) [Compare Source](https://togithub.com/googleapis/java-cloud-bom/compare/v26.37.0...v26.38.0) ##### Dependencies - update actions/checkout action to v4 ([#​6507](https://togithub.com/googleapis/java-cloud-bom/issues/6507)) ([5a9e817](https://togithub.com/googleapis/java-cloud-bom/commit/5a9e817b73209e40d2b55abce451d668143839c8)) - update actions/github-script action to v7 ([#​6508](https://togithub.com/googleapis/java-cloud-bom/issues/6508)) ([e2f9c9f](https://togithub.com/googleapis/java-cloud-bom/commit/e2f9c9ff3bf95206945b6aac26dd00ce0d1cf9fc)) - update actions/setup-java action to v4 ([#​6509](https://togithub.com/googleapis/java-cloud-bom/issues/6509)) ([8aae14e](https://togithub.com/googleapis/java-cloud-bom/commit/8aae14ea4fa7a113541307a2e417a1e0ed6c5001)) - update actions/setup-node action to v4 ([#​6510](https://togithub.com/googleapis/java-cloud-bom/issues/6510)) ([a20788d](https://togithub.com/googleapis/java-cloud-bom/commit/a20788dfe145e5f477d60d1ed8ea39bded1d1bfc)) - update dependency com.google.cloud:first-party-dependencies to v3.29.0 ([#​6540](https://togithub.com/googleapis/java-cloud-bom/issues/6540)) ([938cd30](https://togithub.com/googleapis/java-cloud-bom/commit/938cd303d70557abdc100cd72f33c6037a2cd62a)) - update dependency com.google.cloud:gapic-libraries-bom to v1.36.0 ([#​6549](https://togithub.com/googleapis/java-cloud-bom/issues/6549)) ([64ec4b5](https://togithub.com/googleapis/java-cloud-bom/commit/64ec4b5f8534ecf82dfca76ad0ed0e5ec88fa675)) - update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#​6541](https://togithub.com/googleapis/java-cloud-bom/issues/6541)) ([a5798fc](https://togithub.com/googleapis/java-cloud-bom/commit/a5798fc611f95d3a80d45b6e8fd4c1bf47197e4e)) - update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#​6554](https://togithub.com/googleapis/java-cloud-bom/issues/6554)) ([075716c](https://togithub.com/googleapis/java-cloud-bom/commit/075716c35b9471f00cca38bf74dfc275a54ef0dc)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([#​6551](https://togithub.com/googleapis/java-cloud-bom/issues/6551)) ([d4a55af](https://togithub.com/googleapis/java-cloud-bom/commit/d4a55afbce06fdd3a02d606ec6704886a7b551cf)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.39.0 ([#​6543](https://togithub.com/googleapis/java-cloud-bom/issues/6543)) ([107b178](https://togithub.com/googleapis/java-cloud-bom/commit/107b1780898577c56f416b38f45b93fc43c2008f)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.19.1 ([#​6536](https://togithub.com/googleapis/java-cloud-bom/issues/6536)) ([4bd9f22](https://togithub.com/googleapis/java-cloud-bom/commit/4bd9f22483b648c1d9f8246a8a61f0589172d562)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.20.2 ([#​6537](https://togithub.com/googleapis/java-cloud-bom/issues/6537)) ([5d4e4bf](https://togithub.com/googleapis/java-cloud-bom/commit/5d4e4bf0a45dfc613959767fb6f2786cb4daf0aa)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.21.0 ([#​6550](https://togithub.com/googleapis/java-cloud-bom/issues/6550)) ([a497e07](https://togithub.com/googleapis/java-cloud-bom/commit/a497e07f39b6d5babc038cedb4db146c3653f3d5)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.17.0 ([#​6544](https://togithub.com/googleapis/java-cloud-bom/issues/6544)) ([9b4fd06](https://togithub.com/googleapis/java-cloud-bom/commit/9b4fd06c039334a4c4657e08b52f6108dfcd3586)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.131.5-alpha ([#​6542](https://togithub.com/googleapis/java-cloud-bom/issues/6542)) ([8f5603b](https://togithub.com/googleapis/java-cloud-bom/commit/8f5603b9d4799a335923a871897302232f91cff9)) - update dependency com.google.cloud:google-cloud-nio to v0.127.16 ([#​6538](https://togithub.com/googleapis/java-cloud-bom/issues/6538)) ([cd70cb1](https://togithub.com/googleapis/java-cloud-bom/commit/cd70cb17201994cddada81ed4087563df5135114)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.129.0 ([#​6524](https://togithub.com/googleapis/java-cloud-bom/issues/6524)) ([c3fcf29](https://togithub.com/googleapis/java-cloud-bom/commit/c3fcf29562c4c9559adc60e3e985bb828187a447)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.129.1 ([#​6539](https://togithub.com/googleapis/java-cloud-bom/issues/6539)) ([952991e](https://togithub.com/googleapis/java-cloud-bom/commit/952991e5855cb5360f5080df7c4a78153a44b38b)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.13.3 ([#​6548](https://togithub.com/googleapis/java-cloud-bom/issues/6548)) ([20d3ebd](https://togithub.com/googleapis/java-cloud-bom/commit/20d3ebd081b431b08e1ce038cd01416ed73a8efc)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.65.0 ([#​6517](https://togithub.com/googleapis/java-cloud-bom/issues/6517)) ([c18e4a1](https://togithub.com/googleapis/java-cloud-bom/commit/c18e4a15f10046440f2b00ccf7dcfc477a4c825c)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.65.1 ([#​6555](https://togithub.com/googleapis/java-cloud-bom/issues/6555)) ([f48df36](https://togithub.com/googleapis/java-cloud-bom/commit/f48df3617749a7306b6478136c34340875c1ec47)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.17.0 ([#​6545](https://togithub.com/googleapis/java-cloud-bom/issues/6545)) ([4daf874](https://togithub.com/googleapis/java-cloud-bom/commit/4daf874c8cf7d94af80e08fbcfcbf8a84f236e9e)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.37.0 ([#​6546](https://togithub.com/googleapis/java-cloud-bom/issues/6546)) ([fa3d6b7](https://togithub.com/googleapis/java-cloud-bom/commit/fa3d6b7afd4986c02b1b554d6aa9ee92273e6b5d)) - update dependency com.google.googlejavaformat:google-java-format to v1.22.0 ([#​6518](https://togithub.com/googleapis/java-cloud-bom/issues/6518)) ([dcdaf2a](https://togithub.com/googleapis/java-cloud-bom/commit/dcdaf2a88075e1c7d8660d1fbb5180b7a23d723f)) - update dependency commons-cli:commons-cli to v1.7.0 ([#​6547](https://togithub.com/googleapis/java-cloud-bom/issues/6547)) ([7e20379](https://togithub.com/googleapis/java-cloud-bom/commit/7e203796880b9f241effdc38aae1231935c48445)) - update dependency commons-io:commons-io to v2.16.1 ([#​6513](https://togithub.com/googleapis/java-cloud-bom/issues/6513)) ([a9d7444](https://togithub.com/googleapis/java-cloud-bom/commit/a9d7444eb810d98cff1e1d5da62c7996143f5ad2))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- README.md | 8 ++++---- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8424b6780..2a55cd07f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.2" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 8f67bcb4b..6be0ef7f8 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3cc8e8536..f58b1b62c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import From e2e0dd8ab12873b6bd33fb282e2350cc61b6942e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 22:04:25 +0200 Subject: [PATCH 138/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.2 (#2010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.129.1` -> `1.129.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.129.1/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.129.1/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.129.2`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11292-2024-04-30) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#​2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([a7f4afb](https://togithub.com/googleapis/java-pubsub/commit/a7f4afbc870536a7964594bc1d5b9a2eb5076cce))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a55cd07f..2eaff9f4f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 06041d919..73962fed6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2 From 4a547d08d02f3abaf23bfb8e5ed65e40c131bb94 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 May 2024 17:01:49 +0200 Subject: [PATCH 139/656] deps: update dependency com.google.cloud:google-cloud-core to v2.38.0 (#2011) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 73962fed6..b9a367744 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a2ffe3475..7d2976d90 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f58b1b62c..d3cbd8593 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests From 811d0e609b5eb6eaf9c921828255407d9db68293 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 May 2024 17:02:22 +0200 Subject: [PATCH 140/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 (#2012) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index ae38d2d7c..c7a54af2b 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.29.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 326361c6b..b20ec8ff3 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 1b1d4c4bf..aad0db978 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 07f3f4bd7..b096d6692 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.29.0 + 3.30.0 From 54aca990a077eaecb080ba1582596ae2b6f70611 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 15:16:17 +0000 Subject: [PATCH 141/656] chore(main): release 1.129.3 (#2013) :robot: I have created a release *beep* *boop* --- ## [1.129.3](https://togithub.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://togithub.com/googleapis/java-pubsub/issues/2011)) ([4a547d0](https://togithub.com/googleapis/java-pubsub/commit/4a547d08d02f3abaf23bfb8e5ed65e40c131bb94)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://togithub.com/googleapis/java-pubsub/issues/2012)) ([811d0e6](https://togithub.com/googleapis/java-pubsub/commit/811d0e609b5eb6eaf9c921828255407d9db68293)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e50b6f84a..ca945a771 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.3](https://github.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://github.com/googleapis/java-pubsub/issues/2011)) ([4a547d0](https://github.com/googleapis/java-pubsub/commit/4a547d08d02f3abaf23bfb8e5ed65e40c131bb94)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://github.com/googleapis/java-pubsub/issues/2012)) ([811d0e6](https://github.com/googleapis/java-pubsub/commit/811d0e609b5eb6eaf9c921828255407d9db68293)) + ## [1.129.2](https://github.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d22f2c1ab..2f33de814 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.3-SNAPSHOT + 1.129.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c7e5453a5..8476bea10 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 22a6c1ac3..969734fad 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/pom.xml b/pom.xml index b096d6692..9e5454562 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.3-SNAPSHOT + 1.129.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 91f26af75..4b5c1bd99 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7d2976d90..c3d869838 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/versions.txt b/versions.txt index 5dc95ceed..9ecc0b412 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.2:1.129.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT +google-cloud-pubsub:1.129.3:1.129.3 +grpc-google-cloud-pubsub-v1:1.111.3:1.111.3 +proto-google-cloud-pubsub-v1:1.111.3:1.111.3 From 88d5968862c54327a2538e7b0fd611fd131cb6cc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 15:30:17 +0000 Subject: [PATCH 142/656] chore(main): release 1.129.4-SNAPSHOT (#2014) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2f33de814..3856a9f79 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.3 + 1.129.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8476bea10..70364b669 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 969734fad..c7fd436e0 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 9e5454562..c9e2c6cc5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.3 + 1.129.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 4b5c1bd99..eaf576f03 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c3d869838..6aa63955e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9ecc0b412..0dd77f862 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.3:1.129.3 -grpc-google-cloud-pubsub-v1:1.111.3:1.111.3 -proto-google-cloud-pubsub-v1:1.111.3:1.111.3 +google-cloud-pubsub:1.129.3:1.129.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT From 14538ed000570645e8996392e64110619daaf729 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 14:09:25 -0400 Subject: [PATCH 143/656] fix!: chore: autogen updates (#2017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: An existing method `UpdateVehicleLocation` is removed from service `VehicleService` fix: An existing method `SearchFuzzedVehicles` is removed from service `VehicleService` fix: An existing message `UpdateVehicleLocationRequest` is removed PiperOrigin-RevId: 631557549 Source-Link: https://github.com/googleapis/googleapis/commit/3d50414a7ff3f0b8ffe8ad7858257396e4f18131 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ce63d4e636a975175bde2d16c15e70dd5a81ff4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWNlNjNkNGU2MzZhOTc1MTc1YmRlMmQxNmMxNWU3MGRkNWE4MWZmNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- .../src/main/proto/google/pubsub/v1/pubsub.proto | 2 +- .../src/main/proto/google/pubsub/v1/schema.proto | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2eaff9f4f..bf766c902 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.3" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index c3a90cd40..2e606060d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index bd17cf0f8..d52c678c5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From c969620316f978602a39a2dfe57fbfa117df6d83 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 20:49:38 +0200 Subject: [PATCH 144/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.3 (#2015) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf766c902..17145cd37 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b9a367744..11c82c27c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3 From beee523ffc501a33b99a4ee82ccdb04b83391403 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 20:49:51 +0200 Subject: [PATCH 145/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 (#2016) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 11c82c27c..ff139feac 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.39.1 + 2.40.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6aa63955e..59448905c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.39.1 + 2.40.0 com.google.cloud From 0a60924807e6bdb31b445c0c40cbc6ed128fc124 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 15:07:30 -0400 Subject: [PATCH 146/656] chore: update dependency versions in java templates (#1964) (#2018) * chore: update dependency versions in java templates * update other templates Source-Link: https://github.com/googleapis/synthtool/commit/0b86c72fe652dd7e52ba05a63f61bc1399ad5d65 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 +-- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/ci.yaml | 30 ++++++++++---------- .github/workflows/renovate_config_check.yaml | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 291f8e29c..5db36a5f7 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e -# created: 2024-04-15T22:37:28.944513098Z + digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e +# created: 2024-05-09T16:31:37.168667071Z diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index f5fc7d516..59f00b8eb 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ae66b1973..b91fa381f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [11, 17, 21] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{matrix.java}} @@ -41,8 +41,8 @@ jobs: name: "units (8)" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: java-version: 8 distribution: temurin @@ -51,7 +51,7 @@ jobs: # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV shell: bash - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 17 distribution: temurin @@ -63,8 +63,8 @@ jobs: steps: - name: Support longpaths run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 8 @@ -78,8 +78,8 @@ jobs: matrix: java: [17] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{matrix.java}} @@ -88,8 +88,8 @@ jobs: javadoc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 17 @@ -100,8 +100,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 11 @@ -112,8 +112,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 8 diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml index 87d8eb2be..7c5ec7865 100644 --- a/.github/workflows/renovate_config_check.yaml +++ b/.github/workflows/renovate_config_check.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20' From ba3dffc3ac8cf173362307c24bc46e815c64db40 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 21:08:03 +0200 Subject: [PATCH 147/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.38.0 (#2019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.38.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ff139feac..7ec99fabf 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.37.0 + 2.38.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 59448905c..42fb2c531 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.37.0 + 2.38.0 From 0873594c000f470c6193ebe8b4d091701670ef06 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 21:39:43 +0200 Subject: [PATCH 148/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 (#2021) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7ec99fabf..5e7e1bf8c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.0 + 2.40.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 42fb2c531..ae21db424 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.0 + 2.40.1 com.google.cloud From a121de43cb933dfaa9db2b2515d5fdceceb427ce Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 10 May 2024 05:13:00 +0200 Subject: [PATCH 149/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.39.0 (#2022) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 17145cd37..f53076790 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.38.0') +implementation platform('com.google.cloud:libraries-bom:26.39.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 6be0ef7f8..9be5d698b 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d3cbd8593..0abb8a527 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import From 5ac6cd6920dfddcc96c7a9e1aa5b4d9ece11af9e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 23:59:36 -0400 Subject: [PATCH 150/656] chore(main): release 1.129.4 (#2020) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 9 +++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca945a771..0ff1624f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.129.4](https://github.com/googleapis/java-pubsub/compare/v1.129.3...v1.129.4) (2024-05-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 ([#2016](https://github.com/googleapis/java-pubsub/issues/2016)) ([beee523](https://github.com/googleapis/java-pubsub/commit/beee523ffc501a33b99a4ee82ccdb04b83391403)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 ([#2021](https://github.com/googleapis/java-pubsub/issues/2021)) ([0873594](https://github.com/googleapis/java-pubsub/commit/0873594c000f470c6193ebe8b4d091701670ef06)) +* Update dependency com.google.cloud:google-cloud-storage to v2.38.0 ([#2019](https://github.com/googleapis/java-pubsub/issues/2019)) ([ba3dffc](https://github.com/googleapis/java-pubsub/commit/ba3dffc3ac8cf173362307c24bc46e815c64db40)) + ## [1.129.3](https://github.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 3856a9f79..5c6c22c7a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.4-SNAPSHOT + 1.129.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 70364b669..ee2ec348e 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c7fd436e0..5f3eb8fa6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/pom.xml b/pom.xml index c9e2c6cc5..887ae5072 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.4-SNAPSHOT + 1.129.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index eaf576f03..2708ba9d8 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ae21db424..2a9352c08 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/versions.txt b/versions.txt index 0dd77f862..d94e9ac5e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.3:1.129.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT +google-cloud-pubsub:1.129.4:1.129.4 +grpc-google-cloud-pubsub-v1:1.111.4:1.111.4 +proto-google-cloud-pubsub-v1:1.111.4:1.111.4 From cc410094123a3e514c62916f517d4a72759afd81 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 04:12:17 +0000 Subject: [PATCH 151/656] chore(main): release 1.129.5-SNAPSHOT (#2023) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 5c6c22c7a..4505076d0 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.4 + 1.129.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index ee2ec348e..854d7f8ee 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 5f3eb8fa6..a65f439c4 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 887ae5072..85369933c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.4 + 1.129.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 2708ba9d8..611bb72d1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2a9352c08..858801d50 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index d94e9ac5e..1ff82af9a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.4:1.129.4 -grpc-google-cloud-pubsub-v1:1.111.4:1.111.4 -proto-google-cloud-pubsub-v1:1.111.4:1.111.4 +google-cloud-pubsub:1.129.4:1.129.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT From e0dae58a29d0ec507db03727edffc07ea4172b18 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:28:40 +0200 Subject: [PATCH 152/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.4 (#2024) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f53076790..209e04d03 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.4" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5e7e1bf8c..801d0a8d0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4 From aedcffdaedbaa30627c96f96bfa5430bd4666cf0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:52:49 +0200 Subject: [PATCH 153/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 (#2028) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index c7a54af2b..ebaa54bab 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index b20ec8ff3..532f888ec 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index aad0db978..1292cf163 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1" } env_vars: { diff --git a/pom.xml b/pom.xml index 85369933c..abb9c5868 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.30.0 + 3.30.1 From 535edf6496700bc5c5fb0b5cfa1cac6be5d62875 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:53:20 +0200 Subject: [PATCH 154/656] deps: update dependency com.google.cloud:google-cloud-core to v2.38.1 (#2027) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 801d0a8d0..aca7ad857 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 858801d50..91f855bf2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0abb8a527..d61fbb200 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests From 4132ac78e48de4981babfeb73392e90c59608dd0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 21:08:17 +0000 Subject: [PATCH 155/656] chore(main): release 1.129.5 (#2029) :robot: I have created a release *beep* *boop* --- ## [1.129.5](https://togithub.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://togithub.com/googleapis/java-pubsub/issues/2027)) ([535edf6](https://togithub.com/googleapis/java-pubsub/commit/535edf6496700bc5c5fb0b5cfa1cac6be5d62875)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://togithub.com/googleapis/java-pubsub/issues/2028)) ([aedcffd](https://togithub.com/googleapis/java-pubsub/commit/aedcffdaedbaa30627c96f96bfa5430bd4666cf0)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff1624f8..82292bbdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.5](https://github.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://github.com/googleapis/java-pubsub/issues/2027)) ([535edf6](https://github.com/googleapis/java-pubsub/commit/535edf6496700bc5c5fb0b5cfa1cac6be5d62875)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://github.com/googleapis/java-pubsub/issues/2028)) ([aedcffd](https://github.com/googleapis/java-pubsub/commit/aedcffdaedbaa30627c96f96bfa5430bd4666cf0)) + ## [1.129.4](https://github.com/googleapis/java-pubsub/compare/v1.129.3...v1.129.4) (2024-05-10) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 4505076d0..b78628e9a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.5-SNAPSHOT + 1.129.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 854d7f8ee..cbbe43bba 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index a65f439c4..cd7cf1543 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/pom.xml b/pom.xml index abb9c5868..f5ce4e879 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.5-SNAPSHOT + 1.129.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 611bb72d1..035d3c1a9 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 91f855bf2..30eff75fc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/versions.txt b/versions.txt index 1ff82af9a..a60a4ba33 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.4:1.129.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT +google-cloud-pubsub:1.129.5:1.129.5 +grpc-google-cloud-pubsub-v1:1.111.5:1.111.5 +proto-google-cloud-pubsub-v1:1.111.5:1.111.5 From 404c6b0db84bf58b8c40a405f3ea857ce3922303 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 04:24:17 +0000 Subject: [PATCH 156/656] chore(main): release 1.129.6-SNAPSHOT (#2030) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index b78628e9a..4b69d2da0 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.5 + 1.129.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index cbbe43bba..447eb24cf 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index cd7cf1543..7c1ae3c37 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index f5ce4e879..b0e924702 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.5 + 1.129.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 035d3c1a9..3ee04ae74 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 30eff75fc..712efd459 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index a60a4ba33..f3e265d3e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.5:1.129.5 -grpc-google-cloud-pubsub-v1:1.111.5:1.111.5 -proto-google-cloud-pubsub-v1:1.111.5:1.111.5 +google-cloud-pubsub:1.129.5:1.129.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT From 22d82679ed039f69fb2c6542139836a62d09f4fc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:35 +0200 Subject: [PATCH 157/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.5 (#2031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 209e04d03..ccb4826f9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.5" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index aca7ad857..c1ffbc839 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5 From 1e933a057760b9844112b5be0d479bea6c933537 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:47 +0200 Subject: [PATCH 158/656] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.2 (#2036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 9be5d698b..8f7b14d9c 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.10.1 + 0.10.2 test From daac5540718c633e2b4684900a0f930726199a15 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:54 +0200 Subject: [PATCH 159/656] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.0 (#2037) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c1ffbc839..ccf790fcc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -101,7 +101,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.5.0 + 3.6.0 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 712efd459..673c928a6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -100,7 +100,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.5.0 + 3.6.0 add-snippets-source From 40fdd7a71aa07d6c64ac6f96d7c6642af3563280 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:18:16 +0200 Subject: [PATCH 160/656] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 (#2035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 8f7b14d9c..4bef2579f 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.10.1 + 0.10.2 true pubsub.NativeImagePubSubSample From eb6bd9c559073429d8338b9d8fa83e0e3f61b8e9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 16:10:28 +0200 Subject: [PATCH 161/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.39.0 (#2040) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ccf790fcc..ea1c0901e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.38.0 + 2.39.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 673c928a6..31f105380 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.38.0 + 2.39.0 From 1f2d818bbc2c515ea2a87da5ad8314e264c64ef0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 14:26:16 +0000 Subject: [PATCH 162/656] chore(main): release 1.129.6 (#2041) :robot: I have created a release *beep* *boop* --- ## [1.129.6](https://togithub.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://togithub.com/googleapis/java-pubsub/issues/2040)) ([eb6bd9c](https://togithub.com/googleapis/java-pubsub/commit/eb6bd9c559073429d8338b9d8fa83e0e3f61b8e9)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://togithub.com/googleapis/java-pubsub/issues/2035)) ([40fdd7a](https://togithub.com/googleapis/java-pubsub/commit/40fdd7a71aa07d6c64ac6f96d7c6642af3563280)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82292bbdf..9c0c0d576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.6](https://github.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://github.com/googleapis/java-pubsub/issues/2040)) ([eb6bd9c](https://github.com/googleapis/java-pubsub/commit/eb6bd9c559073429d8338b9d8fa83e0e3f61b8e9)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://github.com/googleapis/java-pubsub/issues/2035)) ([40fdd7a](https://github.com/googleapis/java-pubsub/commit/40fdd7a71aa07d6c64ac6f96d7c6642af3563280)) + ## [1.129.5](https://github.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 4b69d2da0..fad38102e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.6-SNAPSHOT + 1.129.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 447eb24cf..becffa2d0 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 7c1ae3c37..06b30a1e4 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/pom.xml b/pom.xml index b0e924702..bf4f13acc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.6-SNAPSHOT + 1.129.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3ee04ae74..0d73bc577 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 31f105380..51a1064ab 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/versions.txt b/versions.txt index f3e265d3e..5a4d01c1f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.5:1.129.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT +google-cloud-pubsub:1.129.6:1.129.6 +grpc-google-cloud-pubsub-v1:1.111.6:1.111.6 +proto-google-cloud-pubsub-v1:1.111.6:1.111.6 From 45e8deb8b4f443b0338b07a0279244ee61de3c2c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 14:40:17 +0000 Subject: [PATCH 163/656] chore(main): release 1.129.7-SNAPSHOT (#2042) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index fad38102e..7b871ca1f 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.6 + 1.129.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index becffa2d0..45e874ef7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 06b30a1e4..0fc166f13 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index bf4f13acc..6e5bdb7ce 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.6 + 1.129.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0d73bc577..4b3698a05 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 51a1064ab..7937fd713 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5a4d01c1f..adda55808 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.6:1.129.6 -grpc-google-cloud-pubsub-v1:1.111.6:1.111.6 -proto-google-cloud-pubsub-v1:1.111.6:1.111.6 +google-cloud-pubsub:1.129.6:1.129.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT From f81c5e1b977e6da19aac6a40c1389ddcc4643e3c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:03:54 +0200 Subject: [PATCH 164/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 (#2046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ccb4826f9..df03e0e50 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.6" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ea1c0901e..ed21de338 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.1 + 2.40.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7937fd713..aaa44b9ff 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.1 + 2.40.2 com.google.cloud From 0693ee44cdac566de86c54bac282ad88c614814d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:07:09 +0200 Subject: [PATCH 165/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.6 (#2043) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df03e0e50..3c1249f40 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ed21de338..41352cc5b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6 From 0277eef1ea3cbdcbe18cdaa0565ca6b188b7d623 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:20:26 +0200 Subject: [PATCH 166/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.40.0 (#2049) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.40.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3c1249f40..e50b18a44 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.39.0') +implementation platform('com.google.cloud:libraries-bom:26.40.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 4bef2579f..f39c1e935 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d61fbb200..de6db6acb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import From 7674933aa77d7f46448f66c85b393c71a0d59202 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:23:49 +0200 Subject: [PATCH 167/656] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.14 (#2047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.14 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 62bf27316..e7195fc46 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -62,7 +62,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.13 + 1.6.14 true From 1ab45c9eaee35d4bfeb332244c74f1253b77c166 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 29 May 2024 14:11:51 -0400 Subject: [PATCH 168/656] deps: Change scope of grpc-inprocess dependency from runtime to test (#2038) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: Change scope of grpc-inprocess dependency from runtime to test * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * deps: Change scope of grpc-inprocess dependency from runtime to test --------- Co-authored-by: Owl Bot --- google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 45e874ef7..025523565 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -85,7 +85,7 @@ io.grpc grpc-inprocess - runtime + test com.google.errorprone From 37e94ce13a2998b5e3f69e9ad3d4ab68af108d64 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 20:12:22 +0200 Subject: [PATCH 169/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.0 (#2044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 41352cc5b..598c44487 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index aaa44b9ff..b62712e18 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index de6db6acb..69fbf0214 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 From 13b63857ab27cc942d858c38ee0c07807858c38d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 18:26:19 +0000 Subject: [PATCH 170/656] chore(main): release 1.129.7 (#2050) :robot: I have created a release *beep* *boop* --- ## [1.129.7](https://togithub.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) ### Dependencies * Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://togithub.com/googleapis/java-pubsub/issues/2038)) ([1ab45c9](https://togithub.com/googleapis/java-pubsub/commit/1ab45c9eaee35d4bfeb332244c74f1253b77c166)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://togithub.com/googleapis/java-pubsub/issues/2046)) ([f81c5e1](https://togithub.com/googleapis/java-pubsub/commit/f81c5e1b977e6da19aac6a40c1389ddcc4643e3c)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://togithub.com/googleapis/java-pubsub/issues/2044)) ([37e94ce](https://togithub.com/googleapis/java-pubsub/commit/37e94ce13a2998b5e3f69e9ad3d4ab68af108d64)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c0c0d576..907ab21fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.129.7](https://github.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) + + +### Dependencies + +* Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://github.com/googleapis/java-pubsub/issues/2038)) ([1ab45c9](https://github.com/googleapis/java-pubsub/commit/1ab45c9eaee35d4bfeb332244c74f1253b77c166)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://github.com/googleapis/java-pubsub/issues/2046)) ([f81c5e1](https://github.com/googleapis/java-pubsub/commit/f81c5e1b977e6da19aac6a40c1389ddcc4643e3c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://github.com/googleapis/java-pubsub/issues/2044)) ([37e94ce](https://github.com/googleapis/java-pubsub/commit/37e94ce13a2998b5e3f69e9ad3d4ab68af108d64)) + ## [1.129.6](https://github.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7b871ca1f..eb18ef1e3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.7-SNAPSHOT + 1.129.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 025523565..cf405e867 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 0fc166f13..0a67d1305 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/pom.xml b/pom.xml index 6e5bdb7ce..b039c2615 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.7-SNAPSHOT + 1.129.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 4b3698a05..c14d0d9ee 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b62712e18..1d9292d4b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/versions.txt b/versions.txt index adda55808..6302bd7de 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.6:1.129.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT +google-cloud-pubsub:1.129.7:1.129.7 +grpc-google-cloud-pubsub-v1:1.111.7:1.111.7 +proto-google-cloud-pubsub-v1:1.111.7:1.111.7 From 53a465f48081c636ad86ef325d800ed6e41f4788 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 18:42:17 +0000 Subject: [PATCH 171/656] chore(main): release 1.129.8-SNAPSHOT (#2052) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index eb18ef1e3..f47fdeb83 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.7 + 1.129.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index cf405e867..d5f60a8c6 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 0a67d1305..e35ee126c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index b039c2615..9cb49b601 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.7 + 1.129.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index c14d0d9ee..d8acd8edb 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1d9292d4b..17303ca2b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6302bd7de..1b69d7dcf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.7:1.129.7 -grpc-google-cloud-pubsub-v1:1.111.7:1.111.7 -proto-google-cloud-pubsub-v1:1.111.7:1.111.7 +google-cloud-pubsub:1.129.7:1.129.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT From 825c5f83e0fd2fd6b1f4856b9c555d71110a03e1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 16:33:50 -0400 Subject: [PATCH 172/656] feat: [java] allow passing libraries_bom_version from env (#1967) (#2033) * feat: [java] allow passing libraries_bom_version from env * reformat Source-Link: https://github.com/googleapis/synthtool/commit/e36d2f164ca698f0264fb6f79ddc4b0fa024a940 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea Co-authored-by: Owl Bot Co-authored-by: Mike Prieto --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5db36a5f7..f817c5f44 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e -# created: 2024-05-09T16:31:37.168667071Z + digest: sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea +# created: 2024-05-17T15:15:57.6714113Z From 3e5dfbae0c1b633498f6ec1c52279ea3e38a1698 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:08:29 +0200 Subject: [PATCH 173/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.7 (#2053) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e50b18a44..9ff4b1d04 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.7" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.7 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 598c44487..a13e3fe96 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7 From 670db3e1b665e6f5aec3cd7bf3639e9242f20151 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:10:32 -0400 Subject: [PATCH 174/656] feat: add service_account_email for export subscriptions (#2054) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add service_account_email for export subscriptions PiperOrigin-RevId: 638641437 Source-Link: https://github.com/googleapis/googleapis/commit/a3016a877a58aee3bef1e93871542ef79993daf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2001c330aee62a9d4e8a9852d8e5bf2662818ad4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjAwMWMzMzBhZWU2MmE5ZDRlOGE5ODUyZDhlNWJmMjY2MjgxOGFkNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/pubsub/v1/BigQueryConfig.java | 217 +++++++++ .../pubsub/v1/BigQueryConfigOrBuilder.java | 35 ++ .../google/pubsub/v1/CloudStorageConfig.java | 217 +++++++++ .../v1/CloudStorageConfigOrBuilder.java | 35 ++ .../com/google/pubsub/v1/PubsubProto.java | 456 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 16 + 8 files changed, 755 insertions(+), 231 deletions(-) diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 67b06239d..66323e6af 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -41,6 +41,7 @@ private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder private BigQueryConfig() { table_ = ""; state_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -477,6 +478,67 @@ public boolean getUseTableSchema() { return useTableSchema_; } + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+   * Optional. The service account to use to write to BigQuery. The subscription
+   * creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub [service
+   * agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The service account to use to write to BigQuery. The subscription
+   * creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub [service
+   * agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -509,6 +571,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (useTableSchema_ != false) { output.writeBool(6, useTableSchema_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -536,6 +601,9 @@ public int getSerializedSize() { if (useTableSchema_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTableSchema_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -557,6 +625,7 @@ public boolean equals(final java.lang.Object obj) { if (getDropUnknownFields() != other.getDropUnknownFields()) return false; if (state_ != other.state_) return false; if (getUseTableSchema() != other.getUseTableSchema()) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -580,6 +649,8 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + USE_TABLE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTableSchema()); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -724,6 +795,7 @@ public Builder clear() { dropUnknownFields_ = false; state_ = 0; useTableSchema_ = false; + serviceAccountEmail_ = ""; return this; } @@ -777,6 +849,9 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.useTableSchema_ = useTableSchema_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } } @java.lang.Override @@ -844,6 +919,11 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) { if (other.getUseTableSchema() != false) { setUseTableSchema(other.getUseTableSchema()); } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -906,6 +986,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1389,6 +1475,137 @@ public Builder clearUseTableSchema() { return this; } + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+     * Optional. The service account to use to write to BigQuery. The subscription
+     * creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub [service
+     * agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The service account to use to write to BigQuery. The subscription
+     * creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub [service
+     * agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The service account to use to write to BigQuery. The subscription
+     * creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub [service
+     * agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to use to write to BigQuery. The subscription
+     * creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub [service
+     * agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to use to write to BigQuery. The subscription
+     * creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub [service
+     * agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index a2420175d..958a634f2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -145,4 +145,39 @@ public interface BigQueryConfigOrBuilder * @return The useTableSchema. */ boolean getUseTableSchema(); + + /** + * + * + *
+   * Optional. The service account to use to write to BigQuery. The subscription
+   * creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub [service
+   * agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
+   * Optional. The service account to use to write to BigQuery. The subscription
+   * creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub [service
+   * agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 5d3704a7d..4f98b34b1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -44,6 +44,7 @@ private CloudStorageConfig() { filenameSuffix_ = ""; filenameDatetimeFormat_ = ""; state_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -1770,6 +1771,67 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+   * Optional. The service account to use to write to Cloud Storage. The
+   * subscription creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub
+   * [service agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The service account to use to write to Cloud Storage. The
+   * subscription creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub
+   * [service agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1811,6 +1873,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, filenameDatetimeFormat_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -1851,6 +1916,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, filenameDatetimeFormat_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1876,6 +1944,7 @@ public boolean equals(final java.lang.Object obj) { } if (getMaxBytes() != other.getMaxBytes()) return false; if (state_ != other.state_) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; switch (outputFormatCase_) { case 4: @@ -1914,6 +1983,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); switch (outputFormatCase_) { case 4: hash = (37 * hash) + TEXT_CONFIG_FIELD_NUMBER; @@ -2091,6 +2162,7 @@ public Builder clear() { } maxBytes_ = 0L; state_ = 0; + serviceAccountEmail_ = ""; outputFormatCase_ = 0; outputFormat_ = null; return this; @@ -2154,6 +2226,9 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } result.bitField0_ |= to_bitField0_; } @@ -2242,6 +2317,11 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000200; + onChanged(); + } switch (other.getOutputFormatCase()) { case TEXT_CONFIG: { @@ -2338,6 +2418,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 82 + case 90: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3685,6 +3771,137 @@ public Builder clearState() { return this; } + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+     * Optional. The service account to use to write to Cloud Storage. The
+     * subscription creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub
+     * [service agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The service account to use to write to Cloud Storage. The
+     * subscription creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub
+     * [service agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The service account to use to write to Cloud Storage. The
+     * subscription creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub
+     * [service agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to use to write to Cloud Storage. The
+     * subscription creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub
+     * [service agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to use to write to Cloud Storage. The
+     * subscription creator or updater that specifies this field must have
+     * `iam.serviceAccounts.actAs` permission on the service account. If not
+     * specified, the Pub/Sub
+     * [service agent](https://cloud.google.com/iam/docs/service-agents),
+     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+     * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 19eab21ab..11d3fa787 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -318,5 +318,40 @@ public interface CloudStorageConfigOrBuilder */ com.google.pubsub.v1.CloudStorageConfig.State getState(); + /** + * + * + *
+   * Optional. The service account to use to write to Cloud Storage. The
+   * subscription creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub
+   * [service agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
+   * Optional. The service account to use to write to Cloud Storage. The
+   * subscription creator or updater that specifies this field must have
+   * `iam.serviceAccounts.actAs` permission on the service account. If not
+   * specified, the Pub/Sub
+   * [service agent](https://cloud.google.com/iam/docs/service-agents),
+   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
+   * 
+ * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.pubsub.v1.CloudStorageConfig.OutputFormatCase getOutputFormatCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 8fff960ed..4ef81ddb7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -417,239 +417,241 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" - + "tication_methodB\t\n\007wrapper\"\352\002\n\016BigQueryC" + + "tication_methodB\t\n\007wrapper\"\216\003\n\016BigQueryC" + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" - + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" - + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" - + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\365\004\n\022Clou" - + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" - + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" - + "ffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_for" - + "mat\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.TextCo" - + "nfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.googl" - + "e.pubsub.v1.CloudStorageConfig.AvroConfi" - + "gB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(" - + "\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1" - + ".CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextCo" - + "nfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\006 \001(\010B\003\340A\001\022\"\n\025service_account_email\030\007 \001(" + + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" - + "T_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRIC" - + "TION\020\004B\017\n\routput_format\"|\n\017ReceivedMessa" - + "ge\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\013" - + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035" - + "\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubs" - + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subsc" - + "ription\030\001 \001(\0132\036.google.pubsub.v1.Subscri" - + "ptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscri" - + "ptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespons" - + "e\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" - + ".v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token" - + "\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\"\223\001\n\027ModifyPus" - + "hConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1" - + ".PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subs" + + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" + + "NSIT_LOCATION_RESTRICTION\020\005\"\231\005\n\022CloudSto" + + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" + + "\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.google" + + ".pubsub.v1.CloudStorageConfig.TextConfig" + + "B\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.google.pu" + + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" + + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" + + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" + + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" + + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032)\n\n" + + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\"" + + "u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004B\017" + + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" + + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" + + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" + + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" + + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" + + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" + + "dateSubscriptionRequest\0229\n\014subscription\030" + + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" + + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" + + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" + + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022!\n\022return_immediately" - + "\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002" - + "\"Q\n\014PullResponse\022A\n\021received_messages\030\001 " - + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003" - + "\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002" - + "\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022A" - + "cknowledgeRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingP" - + "ullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007" - + "ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_se" - + "conds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_" - + "ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_se" - + "conds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001" - + "\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022" - + "\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025" - + "StreamingPullResponse\022A\n\021received_messag" - + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" - + "ageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001" - + "(\0132?.google.pubsub.v1.StreamingPullRespo" - + "nse.AcknowledgeConfirmationB\003\340A\001\022t\n modi" - + "fy_ack_deadline_confirmation\030\003 \001(\0132E.goo" - + "gle.pubsub.v1.StreamingPullResponse.Modi" - + "fyAckDeadlineConfirmationB\003\340A\001\022d\n\027subscr" - + "iption_properties\030\004 \001(\0132>.google.pubsub." - + "v1.StreamingPullResponse.SubscriptionPro" - + "pertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation" - + "\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_id" - + "s\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB" - + "\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003" - + "\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007" - + "ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 " - + "\003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003" - + "(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exa" - + "ctly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" - + "\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A" - + "\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014" - + "subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022H\n\006labels\030\003 \003(\01323" - + ".google.pubsub.v1.CreateSnapshotRequest." - + "LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsh" - + "otRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pub" - + "sub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010S" - + "napshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(" - + "\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224" - + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pu" - + "bsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'p" - + "rojects/{project}/snapshots/{snapshot}\"N" - + "\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" - + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\215" - + "\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsR" - + "esponse\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubs" - + "ub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002" - + " \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010sn" - + "apshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis." - + "com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022/\n\004time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(" - + "\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsho" - + "tH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublis" - + "her\022q\n\013CreateTopic\022\027.google.pubsub.v1.To" - + "pic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344" - + "\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221" - + "\001\n\013UpdateTopic\022$.google.pubsub.v1.Update" - + "TopicRequest\032\027.google.pubsub.v1.Topic\"C\332" - + "A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.na" - + "me=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 " - + ".google.pubsub.v1.PublishRequest\032!.googl" - + "e.pubsub.v1.PublishResponse\"C\332A\016topic,me" - + "ssages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" - + "cs/*}:publish:\001*\022w\n\010GetTopic\022!.google.pu" - + "bsub.v1.GetTopicRequest\032\027.google.pubsub." - + "v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pro" - + "jects/*/topics/*}\022\212\001\n\nListTopics\022#.googl" - + "e.pubsub.v1.ListTopicsRequest\032$.google.p" - + "ubsub.v1.ListTopicsResponse\"1\332A\007project\202" - + "\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272" - + "\001\n\026ListTopicSubscriptions\022/.google.pubsu" - + "b.v1.ListTopicSubscriptionsRequest\0320.goo" - + "gle.pubsub.v1.ListTopicSubscriptionsResp" - + "onse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=project" - + "s/*/topics/*}/subscriptions\022\252\001\n\022ListTopi" - + "cSnapshots\022+.google.pubsub.v1.ListTopicS" - + "napshotsRequest\032,.google.pubsub.v1.ListT" - + "opicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/" - + "v1/{topic=projects/*/topics/*}/snapshots" - + "\022|\n\013DeleteTopic\022$.google.pubsub.v1.Delet" - + "eTopicRequest\032\026.google.protobuf.Empty\"/\332" - + "A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/top" - + "ics/*}\022\255\001\n\022DetachSubscription\022+.google.p" - + "ubsub.v1.DetachSubscriptionRequest\032,.goo" - + "gle.pubsub.v1.DetachSubscriptionResponse" - + "\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/s" - + "ubscriptions/*}:detach\032p\312A\025pubsub.google" - + "apis.com\322AUhttps://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis" - + ".com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Crea" - + "teSubscription\022\036.google.pubsub.v1.Subscr" - + "iption\032\036.google.pubsub.v1.Subscription\"^" - + "\332A+name,topic,push_config,ack_deadline_s" - + "econds\202\323\344\223\002*\032%/v1/{name=projects/*/subsc" - + "riptions/*}:\001*\022\241\001\n\017GetSubscription\022(.goo" - + "gle.pubsub.v1.GetSubscriptionRequest\032\036.g" - + "oogle.pubsub.v1.Subscription\"D\332A\014subscri" - + "ption\202\323\344\223\002/\022-/v1/{subscription=projects/" - + "*/subscriptions/*}\022\273\001\n\022UpdateSubscriptio" - + "n\022+.google.pubsub.v1.UpdateSubscriptionR" - + "equest\032\036.google.pubsub.v1.Subscription\"X" - + "\332A\030subscription,update_mask\202\323\344\223\002722/v1/{" - + "subscription.name=projects/*/subscriptio" - + "ns/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google." - + "pubsub.v1.ListSubscriptionsRequest\032+.goo" - + "gle.pubsub.v1.ListSubscriptionsResponse\"" - + "8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects" - + "/*}/subscriptions\022\237\001\n\022DeleteSubscription" - + "\022+.google.pubsub.v1.DeleteSubscriptionRe" - + "quest\032\026.google.protobuf.Empty\"D\332A\014subscr" - + "iption\202\323\344\223\002/*-/v1/{subscription=projects" - + "/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadlin" - + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" - + "quest\032\026.google.protobuf.Empty\"v\332A)subscr" - + "iption,ack_ids,ack_deadline_seconds\202\323\344\223\002" - + "D\"?/v1/{subscription=projects/*/subscrip" - + "tions/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknow" - + "ledge\022$.google.pubsub.v1.AcknowledgeRequ" - + "est\032\026.google.protobuf.Empty\"[\332A\024subscrip" - + "tion,ack_ids\202\323\344\223\002>\"9/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:acknowledge:\001*" - + "\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRequest" - + "\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,su" - + "bscription,return_immediately,max_messag" - + "es\332A\031subscription,max_messages\202\323\344\223\0027\"2/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" - + "bsub.v1.StreamingPullRequest\032\'.google.pu" - + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020" - + "ModifyPushConfig\022).google.pubsub.v1.Modi" - + "fyPushConfigRequest\032\026.google.protobuf.Em" - + "pty\"d\332A\030subscription,push_config\202\323\344\223\002C\">" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsho" - + "t\022$.google.pubsub.v1.GetSnapshotRequest\032" - + "\032.google.pubsub.v1.Snapshot\"8\332A\010snapshot" - + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\022\226\001\n\rListSnapshots\022&.google.pubsub." - + "v1.ListSnapshotsRequest\032\'.google.pubsub." - + "v1.ListSnapshotsResponse\"4\332A\007project\202\323\344\223" - + "\002$\022\"/v1/{project=projects/*}/snapshots\022\227" - + "\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cre" - + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" - + "apshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/" - + "{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Upd" - + "ateSnapshot\022\'.google.pubsub.v1.UpdateSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{sn" - + "apshot.name=projects/*/snapshots/*}:\001*\022\213" - + "\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.Del" - + "eteSnapshotRequest\032\026.google.protobuf.Emp" - + "ty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pro" - + "jects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.p" - + "ubsub.v1.SeekRequest\032\036.google.pubsub.v1." - + "SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=" - + "projects/*/subscriptions/*}:seek:\001*\032p\312A\025" - + "pubsub.googleapis.com\322AUhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/pubsubB\252\001\n\024com.go" - + "ogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.goo" - + "gle.com/go/pubsub/apiv1/pubsubpb;pubsubp" - + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" - + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" - + "V1b\006proto3" + + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\0226\n\013push" + + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" + + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" + + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" + + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" + + "ModifyAckDeadlineRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" + + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" + + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " + + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" + + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " + + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" + + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" + + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" + + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" + + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" + + "gle.pubsub.v1.StreamingPullResponse.Ackn" + + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" + + "eadline_confirmation\030\003 \001(\0132E.google.pubs" + + "ub.v1.StreamingPullResponse.ModifyAckDea" + + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" + + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" + + "mingPullResponse.SubscriptionPropertiesB" + + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" + + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" + + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" + + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" + + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" + + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" + + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" + + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" + + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" + + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" + + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" + + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." + + "pubsub.v1.CreateSnapshotRequest.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" + + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" + + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" + + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." + + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" + + "ubsub.googleapis.com/Snapshot\022\'projects/" + + "{project}/snapshots/{snapshot}\"N\n\022GetSna" + + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" + + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" + + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" + + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" + + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" + + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" + + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" + + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" + + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" + + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" + + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," + + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" + + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." + + "pubsub.v1.PublishRequest\032!.google.pubsub" + + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" + + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" + + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." + + "GetTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" + + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" + + "opicSubscriptions\022/.google.pubsub.v1.Lis" + + "tTopicSubscriptionsRequest\0320.google.pubs" + + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" + + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" + + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" + + "ts\022+.google.pubsub.v1.ListTopicSnapshots" + + "Request\032,.google.pubsub.v1.ListTopicSnap" + + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" + + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" + + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" + + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" + + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" + + "\001\n\022DetachSubscription\022+.google.pubsub.v1" + + ".DetachSubscriptionRequest\032,.google.pubs" + + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" + + "\"4/v1/{subscription=projects/*/subscript" + + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" + + "\322AUhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" + + "iption\022\036.google.pubsub.v1.Subscription\032\036" + + ".google.pubsub.v1.Subscription\"^\332A+name," + + "topic,push_config,ack_deadline_seconds\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" + + "ub.v1.GetSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" + + "\223\002/\022-/v1/{subscription=projects/*/subscr" + + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" + + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" + + ".google.pubsub.v1.Subscription\"X\332A\030subsc" + + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" + + "tion.name=projects/*/subscriptions/*}:\001*" + + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" + + "1.ListSubscriptionsRequest\032+.google.pubs" + + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" + + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" + + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" + + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." + + "google.protobuf.Empty\"D\332A\014subscription\202\323" + + "\344\223\002/*-/v1/{subscription=projects/*/subsc" + + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" + + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." + + "google.protobuf.Empty\"v\332A)subscription,a" + + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." + + "google.pubsub.v1.AcknowledgeRequest\032\026.go" + + "ogle.protobuf.Empty\"[\332A\024subscription,ack" + + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" + + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" + + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" + + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:pull" + + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" + + "shConfig\022).google.pubsub.v1.ModifyPushCo" + + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" + + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" + + "scription=projects/*/subscriptions/*}:mo" + + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" + + "le.pubsub.v1.GetSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" + + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" + + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" + + "napshotsRequest\032\'.google.pubsub.v1.ListS" + + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" + + "{project=projects/*}/snapshots\022\227\001\n\016Creat" + + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" + + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" + + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" + + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" + + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" + + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" + + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" + + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" + + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" + + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" + + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" + + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + + "oogleapis.com\322AUhttps://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googl" + + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" + + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" + + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -953,6 +955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DropUnknownFields", "State", "UseTableSchema", + "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = getDescriptor().getMessageTypes().get(24); @@ -969,6 +972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxDuration", "MaxBytes", "State", + "ServiceAccountEmail", "OutputFormat", }); internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 9d0f93c99..5341666eb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 08a7576aa..2dc2208a4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 2e606060d..8546dacf9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1141,6 +1141,14 @@ message BigQueryConfig { // write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be // enabled at the same time. bool use_table_schema = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to use to write to BigQuery. The subscription + // creator or updater that specifies this field must have + // `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub [service + // agent](https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 7 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a Cloud Storage subscription. @@ -1227,6 +1235,14 @@ message CloudStorageConfig { // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The service account to use to write to Cloud Storage. The + // subscription creator or updater that specifies this field must have + // `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub + // [service agent](https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 11 [(google.api.field_behavior) = OPTIONAL]; } // A message and its corresponding acknowledgment ID. From db75abb0db94c961e0760084c13fdb92df1f9a6f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:11:01 +0200 Subject: [PATCH 175/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.0 (#2055) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index f47fdeb83..400c5caa6 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.7 + 1.8.0 Google Cloud pubsub BOM From 66381e5adb23379e18225898b7e0e7f3feaab2e3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:17:56 +0200 Subject: [PATCH 176/656] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.7.0 (#2051) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.7.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index e7195fc46..742838b20 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -62,7 +62,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.14 + 1.7.0 true From a998ef5359942486ea47bfd50f154314ae37be33 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:53:32 +0200 Subject: [PATCH 177/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 (#2058) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index ebaa54bab..ca6fff388 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.31.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 532f888ec..aeafc3181 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 1292cf163..047ec1b67 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 9cb49b601..b42ef3051 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.30.1 + 3.31.0 From 43446d22ad2140f1b18fd1dde5dab03a901580bc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:53:52 +0200 Subject: [PATCH 178/656] deps: update dependency com.google.cloud:google-cloud-core to v2.39.0 (#2057) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a13e3fe96..3bb3a9c93 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 17303ca2b..2e9522627 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 69fbf0214..72467b061 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests From 09f198ed3d379a39d86c2ff3a937ac305447cc82 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:06:02 -0400 Subject: [PATCH 179/656] chore(main): release 1.130.0 (#2056) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 907ab21fa..4bc039c8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.130.0](https://github.com/googleapis/java-pubsub/compare/v1.129.7...v1.130.0) (2024-06-03) + + +### Features + +* [java] allow passing libraries_bom_version from env ([#1967](https://github.com/googleapis/java-pubsub/issues/1967)) ([#2033](https://github.com/googleapis/java-pubsub/issues/2033)) ([825c5f8](https://github.com/googleapis/java-pubsub/commit/825c5f83e0fd2fd6b1f4856b9c555d71110a03e1)) +* Add service_account_email for export subscriptions ([#2054](https://github.com/googleapis/java-pubsub/issues/2054)) ([670db3e](https://github.com/googleapis/java-pubsub/commit/670db3e1b665e6f5aec3cd7bf3639e9242f20151)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.39.0 ([#2057](https://github.com/googleapis/java-pubsub/issues/2057)) ([43446d2](https://github.com/googleapis/java-pubsub/commit/43446d22ad2140f1b18fd1dde5dab03a901580bc)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 ([#2058](https://github.com/googleapis/java-pubsub/issues/2058)) ([a998ef5](https://github.com/googleapis/java-pubsub/commit/a998ef5359942486ea47bfd50f154314ae37be33)) + ## [1.129.7](https://github.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 400c5caa6..ad1e15e06 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.8-SNAPSHOT + 1.130.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d5f60a8c6..bf301efc3 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index e35ee126c..3c29bf3d6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/pom.xml b/pom.xml index b42ef3051..445072cb0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.8-SNAPSHOT + 1.130.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d8acd8edb..ff3df5c1b 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2e9522627..fcae4946e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/versions.txt b/versions.txt index 1b69d7dcf..bf9867a87 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.7:1.129.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT +google-cloud-pubsub:1.130.0:1.130.0 +grpc-google-cloud-pubsub-v1:1.112.0:1.112.0 +proto-google-cloud-pubsub-v1:1.112.0:1.112.0 From abb2418a24c09062d9e62f289d972340ee039e68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:24:41 +0000 Subject: [PATCH 180/656] chore(main): release 1.130.1-SNAPSHOT (#2059) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ad1e15e06..d22e2aec3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.0 + 1.130.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index bf301efc3..c9f5d11cd 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 3c29bf3d6..f26b3cd13 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 445072cb0..b7c2dd5c7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.0 + 1.130.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index ff3df5c1b..e9222f582 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fcae4946e..b621c2f64 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index bf9867a87..59c5e2e25 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.0:1.130.0 -grpc-google-cloud-pubsub-v1:1.112.0:1.112.0 -proto-google-cloud-pubsub-v1:1.112.0:1.112.0 +google-cloud-pubsub:1.130.0:1.130.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT From 6baf69a99adb75fba49c2289bca3ffd08720f8f4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 7 Jun 2024 03:10:21 +0200 Subject: [PATCH 181/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.1 (#2065) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ff4b1d04..68ec57093 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.130.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.7 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3bb3a9c93..fb6b56203 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b621c2f64..c0045060c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 72467b061..bde2a8430 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 From 1a52d1731093a4ff99075ae9306d8fd87a249447 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 7 Jun 2024 03:10:44 +0200 Subject: [PATCH 182/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.0 (#2060) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68ec57093..a2ac8ae93 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.7 + 1.130.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fb6b56203..ba32ac9d3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.130.0 From e85c0a53c17fae647fdf1a39a6594155fd4a4b00 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:16:19 -0400 Subject: [PATCH 183/656] ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2064) Source-Link: https://github.com/googleapis/synthtool/commit/bd2bae89f70bad380da47fab9ec25985dfb87d67 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .github/trusted-contribution.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f817c5f44..359fe71c1 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea -# created: 2024-05-17T15:15:57.6714113Z + digest: sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 +# created: 2024-06-05T18:32:21.724930324Z diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml index a0ba1f7d9..88d3ac9bf 100644 --- a/.github/trusted-contribution.yml +++ b/.github/trusted-contribution.yml @@ -1,3 +1,9 @@ trustedContributors: - renovate-bot - gcf-owl-bot[bot] + +annotations: +- type: comment + text: "/gcbrun" +- type: label + text: "kokoro:force-run" From dfcaeb5b59466d86ac5b5bf74655ce359e7d5713 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 17:54:50 +0200 Subject: [PATCH 184/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.40.0 (#2066) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ba32ac9d3..ed1648987 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.39.0 + 2.40.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c0045060c..235f3c4c7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.39.0 + 2.40.0 From 8ef2eb74dc6b94037dc652b072b62a1fb874be4f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 17:55:09 +0200 Subject: [PATCH 185/656] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.4.0 (#2062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.4.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 742838b20..6d05e41e2 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.3.1 + 3.4.0 checkstyle-suppressions.xml From 11ccef38a5c006b3810cff03d4030bfebbff66ea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 18:30:04 +0200 Subject: [PATCH 186/656] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.7.0 (#2070) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index f39c1e935..9a8db303c 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.6.1 + 3.7.0 copy-dependencies From 0844bfb0a500ae0b4a0f63fcb45ffffeaf609e3d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Jun 2024 04:49:05 +0200 Subject: [PATCH 187/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 (#2071) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ed1648987..d518d420e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.2 + 2.40.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 235f3c4c7..cee53ba36 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.2 + 2.40.3 com.google.cloud From 7cd4d34a58390d7129c1da4ddce90e1996e24d1c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Jun 2024 06:32:00 +0200 Subject: [PATCH 188/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.41.0 (#2072) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.41.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 4 ++-- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a2ac8ae93..a2d5b8622 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.40.0') +implementation platform('com.google.cloud:libraries-bom:26.41.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 9a8db303c..0d30f984d 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index bde2a8430..60f425d54 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import From dd92aee33bf6db1ff5b3120df4155ba91fa67a20 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 07:59:09 -0400 Subject: [PATCH 189/656] chore(main): release 1.130.1 (#2067) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 1.130.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- CHANGELOG.md | 9 +++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bc039c8c..43e5ac4cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.130.1](https://github.com/googleapis/java-pubsub/compare/v1.130.0...v1.130.1) (2024-06-13) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 ([#2071](https://github.com/googleapis/java-pubsub/issues/2071)) ([0844bfb](https://github.com/googleapis/java-pubsub/commit/0844bfb0a500ae0b4a0f63fcb45ffffeaf609e3d)) +* Update dependency com.google.cloud:google-cloud-storage to v2.40.0 ([#2066](https://github.com/googleapis/java-pubsub/issues/2066)) ([dfcaeb5](https://github.com/googleapis/java-pubsub/commit/dfcaeb5b59466d86ac5b5bf74655ce359e7d5713)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.1 ([#2065](https://github.com/googleapis/java-pubsub/issues/2065)) ([6baf69a](https://github.com/googleapis/java-pubsub/commit/6baf69a99adb75fba49c2289bca3ffd08720f8f4)) + ## [1.130.0](https://github.com/googleapis/java-pubsub/compare/v1.129.7...v1.130.0) (2024-06-03) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d22e2aec3..03e5f79ed 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.1-SNAPSHOT + 1.130.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c9f5d11cd..76752a980 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index f26b3cd13..0d215dcb3 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/pom.xml b/pom.xml index b7c2dd5c7..a865beac3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.1-SNAPSHOT + 1.130.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e9222f582..942d1913f 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cee53ba36..d98c293e8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/versions.txt b/versions.txt index 59c5e2e25..b0f5a7066 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.0:1.130.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT +google-cloud-pubsub:1.130.1:1.130.1 +grpc-google-cloud-pubsub-v1:1.112.1:1.112.1 +proto-google-cloud-pubsub-v1:1.112.1:1.112.1 From 94c55d0ed398e6c21071fef67d7c1751ea8dbb1d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:14:19 +0000 Subject: [PATCH 190/656] chore(main): release 1.130.2-SNAPSHOT (#2073) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 03e5f79ed..e5342faaa 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.1 + 1.130.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 76752a980..7a5d972ea 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 0d215dcb3..59c094048 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index a865beac3..92be8d86e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.1 + 1.130.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 942d1913f..cc739747b 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d98c293e8..afc37ce64 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index b0f5a7066..7b80e922b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.1:1.130.1 -grpc-google-cloud-pubsub-v1:1.112.1:1.112.1 -proto-google-cloud-pubsub-v1:1.112.1:1.112.1 +google-cloud-pubsub:1.130.1:1.130.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT From 73b097acdc613566efe2763021c5b5489500ad67 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:06:16 +0200 Subject: [PATCH 191/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.42.0 (#2081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.42.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 10 +++++----- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a2d5b8622..61ebb1cb4 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.41.0') +implementation platform('com.google.cloud:libraries-bom:26.42.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.130.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.130.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 0d30f984d..76a88ddbf 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 60f425d54..912a95a47 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import From 11d67d44152ccca008dda071683d9932c59af41d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:06:37 -0400 Subject: [PATCH 192/656] feat: add use_topic_schema for Cloud Storage Subscriptions (#2082) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add use_topic_schema for Cloud Storage Subscriptions PiperOrigin-RevId: 643385701 Source-Link: https://github.com/googleapis/googleapis/commit/f29a82a206156fd665eaa01cb7987170ac0250f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f8f3f60ad2ab4e81fe024368ad0430900174e82b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjhmM2Y2MGFkMmFiNGU4MWZlMDI0MzY4YWQwNDMwOTAwMTc0ZTgyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/pubsub/v1/CloudStorageConfig.java | 135 ++++++ .../com/google/pubsub/v1/PubsubProto.java | 425 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 8 + 5 files changed, 361 insertions(+), 217 deletions(-) diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 4f98b34b1..f847f91d6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -130,6 +130,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ IN_TRANSIT_LOCATION_RESTRICTION(4), + /** + * + * + *
+     * Cannot write to the Cloud Storage bucket due to an incompatibility
+     * between the topic schema and subscription settings.
+     * 
+ * + * SCHEMA_MISMATCH = 5; + */ + SCHEMA_MISMATCH(5), UNRECOGNIZED(-1), ; @@ -185,6 +196,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; + /** + * + * + *
+     * Cannot write to the Cloud Storage bucket due to an incompatibility
+     * between the topic schema and subscription settings.
+     * 
+ * + * SCHEMA_MISMATCH = 5; + */ + public static final int SCHEMA_MISMATCH_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -220,6 +242,8 @@ public static State forNumber(int value) { return NOT_FOUND; case 4: return IN_TRANSIT_LOCATION_RESTRICTION; + case 5: + return SCHEMA_MISMATCH; default: return null; } @@ -721,6 +745,20 @@ public interface AvroConfigOrBuilder * @return The writeMetadata. */ boolean getWriteMetadata(); + + /** + * + * + *
+     * Optional. When true, the output Cloud Storage file will be serialized
+     * using the topic schema, if it exists.
+     * 
+ * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + boolean getUseTopicSchema(); } /** * @@ -788,6 +826,25 @@ public boolean getWriteMetadata() { return writeMetadata_; } + public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; + private boolean useTopicSchema_ = false; + /** + * + * + *
+     * Optional. When true, the output Cloud Storage file will be serialized
+     * using the topic schema, if it exists.
+     * 
+ * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -805,6 +862,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (writeMetadata_ != false) { output.writeBool(1, writeMetadata_); } + if (useTopicSchema_ != false) { + output.writeBool(2, useTopicSchema_); + } getUnknownFields().writeTo(output); } @@ -817,6 +877,9 @@ public int getSerializedSize() { if (writeMetadata_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); } + if (useTopicSchema_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useTopicSchema_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -834,6 +897,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) obj; if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (getUseTopicSchema() != other.getUseTopicSchema()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -847,6 +911,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (37 * hash) + USE_TOPIC_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTopicSchema()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -990,6 +1056,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; writeMetadata_ = false; + useTopicSchema_ = false; return this; } @@ -1029,6 +1096,9 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig.AvroConfig re if (((from_bitField0_ & 0x00000001) != 0)) { result.writeMetadata_ = writeMetadata_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useTopicSchema_ = useTopicSchema_; + } } @java.lang.Override @@ -1082,6 +1152,9 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.AvroConfig othe if (other.getWriteMetadata() != false) { setWriteMetadata(other.getWriteMetadata()); } + if (other.getUseTopicSchema() != false) { + setUseTopicSchema(other.getUseTopicSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1114,6 +1187,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + useTopicSchema_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1201,6 +1280,62 @@ public Builder clearWriteMetadata() { return this; } + private boolean useTopicSchema_; + /** + * + * + *
+       * Optional. When true, the output Cloud Storage file will be serialized
+       * using the topic schema, if it exists.
+       * 
+ * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + /** + * + * + *
+       * Optional. When true, the output Cloud Storage file will be serialized
+       * using the topic schema, if it exists.
+       * 
+ * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useTopicSchema to set. + * @return This builder for chaining. + */ + public Builder setUseTopicSchema(boolean value) { + + useTopicSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. When true, the output Cloud Storage file will be serialized
+       * using the topic schema, if it exists.
+       * 
+ * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseTopicSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + useTopicSchema_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 4ef81ddb7..a80aaa209 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -427,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\231\005\n\022CloudSto" + + "NSIT_LOCATION_RESTRICTION\020\005\"\316\005\n\022CloudSto" + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" @@ -439,219 +439,220 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" - + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032)\n\n" - + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\"" - + "u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004B\017" - + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" - + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" - + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" - + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" - + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" - + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" - + "dateSubscriptionRequest\0229\n\014subscription\030" - + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" - + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" - + "ourcemanager.googleapis.com/Project\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" - + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" - + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\0226\n\013push" - + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" - + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" - + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" - + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" - + "ModifyAckDeadlineRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" - + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" - + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " - + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" - + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " - + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" - + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" - + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" - + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" - + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" - + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" - + "gle.pubsub.v1.StreamingPullResponse.Ackn" - + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" - + "eadline_confirmation\030\003 \001(\0132E.google.pubs" - + "ub.v1.StreamingPullResponse.ModifyAckDea" - + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" - + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" - + "mingPullResponse.SubscriptionPropertiesB" - + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" - + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" - + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" - + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" - + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" - + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" - + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" - + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" - + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" - + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" - + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" - + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." - + "pubsub.v1.CreateSnapshotRequest.LabelsEn" - + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" - + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" - + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" - + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." - + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" - + "ubsub.googleapis.com/Snapshot\022\'projects/" - + "{project}/snapshots/{snapshot}\"N\n\022GetSna" - + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" - + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" - + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\n" + + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022" + + "\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" + + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_" + + "TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA" + + "_MISMATCH\020\005B\017\n\routput_format\"|\n\017Received" + + "Message\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030" + + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessageB\003" + + "\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026Ge" + + "tSubscriptionRequest\022@\n\014subscription\030\001 \001" + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" - + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" - + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" - + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" - + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" - + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" - + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" - + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," - + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" - + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." - + "pubsub.v1.PublishRequest\032!.google.pubsub" - + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" - + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" - + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." - + "GetTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" - + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" - + ".v1.ListTopicsRequest\032$.google.pubsub.v1" - + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" - + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" - + "opicSubscriptions\022/.google.pubsub.v1.Lis" - + "tTopicSubscriptionsRequest\0320.google.pubs" - + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" - + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" - + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" - + "ts\022+.google.pubsub.v1.ListTopicSnapshots" - + "Request\032,.google.pubsub.v1.ListTopicSnap" - + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" - + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" - + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" - + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" - + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" - + "\001\n\022DetachSubscription\022+.google.pubsub.v1" - + ".DetachSubscriptionRequest\032,.google.pubs" - + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" - + "\"4/v1/{subscription=projects/*/subscript" - + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" - + "\322AUhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" - + "iption\022\036.google.pubsub.v1.Subscription\032\036" - + ".google.pubsub.v1.Subscription\"^\332A+name," - + "topic,push_config,ack_deadline_seconds\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" - + "ub.v1.GetSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" - + "\223\002/\022-/v1/{subscription=projects/*/subscr" - + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" - + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" - + ".google.pubsub.v1.Subscription\"X\332A\030subsc" - + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" - + "tion.name=projects/*/subscriptions/*}:\001*" - + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" - + "1.ListSubscriptionsRequest\032+.google.pubs" - + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" - + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" - + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" - + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." - + "google.protobuf.Empty\"D\332A\014subscription\202\323" - + "\344\223\002/*-/v1/{subscription=projects/*/subsc" - + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" - + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." - + "google.protobuf.Empty\"v\332A)subscription,a" - + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." - + "google.pubsub.v1.AcknowledgeRequest\032\026.go" - + "ogle.protobuf.Empty\"[\332A\024subscription,ack" - + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" - + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" - + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" - + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:pull" - + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." - + "StreamingPullRequest\032\'.google.pubsub.v1." - + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" - + "shConfig\022).google.pubsub.v1.ModifyPushCo" - + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" - + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" - + "scription=projects/*/subscriptions/*}:mo" - + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" - + "le.pubsub.v1.GetSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" - + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" - + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" - + "napshotsRequest\032\'.google.pubsub.v1.ListS" - + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" - + "{project=projects/*}/snapshots\022\227\001\n\016Creat" - + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" - + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" - + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" - + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" - + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" - + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" - + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" - + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" - + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" - + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" - + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + + "iption\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014" + + "subscription\030\001 \001(\0132\036.google.pubsub.v1.Su" + + "bscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSu" + + "bscriptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRe" + + "sponse\022:\n\rsubscriptions\030\001 \003(\0132\036.google.p" + + "ubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_" + + "token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\"\223\001\n\027Modi" + + "fyPushConfigRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs" + + "ub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022!\n\022return_immedi" + + "ately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005" + + "B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_messag" + + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" + + "ageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" + + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" + + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Strea" + + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadli" + + "ne_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline" + + "_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadli" + + "ne_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\t" + + "B\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001(\003B" + + "\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001" + + "\"\236\006\n\025StreamingPullResponse\022A\n\021received_m" + + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" + + "dMessageB\003\340A\001\022f\n\030acknowledge_confirmatio" + + "n\030\005 \001(\0132?.google.pubsub.v1.StreamingPull" + + "Response.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132" + + "E.google.pubsub.v1.StreamingPullResponse" + + ".ModifyAckDeadlineConfirmationB\003\340A\001\022d\n\027s" + + "ubscription_properties\030\004 \001(\0132>.google.pu" + + "bsub.v1.StreamingPullResponse.Subscripti" + + "onPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirm" + + "ation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_a" + + "ck_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003" + + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 " + + "\003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirmatio" + + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" + + "ds\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_id" + + "s\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*" + + "\n\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340" + + "A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B\003\340A" + + "\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(" + + "\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snapsho" + + "t\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022H\n\006labels\030\003 " + + "\003(\01323.google.pubsub.v1.CreateSnapshotReq" + + "uest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateS" + + "napshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.googl" + + "e.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic" + + "\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/To" + + "pic\0224\n\013expire_time\030\003 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.goog" + + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh" + + "ot\022\'projects/{project}/snapshots/{snapsh" + + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 " + + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" + + "hot\"\215\001\n\024ListSnapshotsRequest\022D\n\007project\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnaps" + + "hotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.google" + + ".pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_to" + + "ken\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\022" + + "8\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.google" + + "apis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022/\n\004time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot" + + "\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Sn" + + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tP" + + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub." + + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004na" + + "me\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}" + + ":\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1.U" + + "pdateTopicRequest\032\027.google.pubsub.v1.Top" + + "ic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{top" + + "ic.name=projects/*/topics/*}:\001*\022\223\001\n\007Publ" + + "ish\022 .google.pubsub.v1.PublishRequest\032!." + + "google.pubsub.v1.PublishResponse\"C\332A\016top" + + "ic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*" + + "/topics/*}:publish:\001*\022w\n\010GetTopic\022!.goog" + + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" + + "bsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topi" + + "c=projects/*/topics/*}\022\212\001\n\nListTopics\022#." + + "google.pubsub.v1.ListTopicsRequest\032$.goo" + + "gle.pubsub.v1.ListTopicsResponse\"1\332A\007pro" + + "ject\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" + + "ics\022\272\001\n\026ListTopicSubscriptions\022/.google." + + "pubsub.v1.ListTopicSubscriptionsRequest\032" + + "0.google.pubsub.v1.ListTopicSubscription" + + "sResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=pr" + + "ojects/*/topics/*}/subscriptions\022\252\001\n\022Lis" + + "tTopicSnapshots\022+.google.pubsub.v1.ListT" + + "opicSnapshotsRequest\032,.google.pubsub.v1." + + "ListTopicSnapshotsResponse\"9\332A\005topic\202\323\344\223" + + "\002+\022)/v1/{topic=projects/*/topics/*}/snap" + + "shots\022|\n\013DeleteTopic\022$.google.pubsub.v1." + + "DeleteTopicRequest\032\026.google.protobuf.Emp" + + "ty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/" + + "*/topics/*}\022\255\001\n\022DetachSubscription\022+.goo" + + "gle.pubsub.v1.DetachSubscriptionRequest\032" + + ",.google.pubsub.v1.DetachSubscriptionRes" + + "ponse\"<\202\323\344\223\0026\"4/v1/{subscription=project" + + "s/*/subscriptions/*}:detach\032p\312A\025pubsub.g" + "oogleapis.com\322AUhttps://www.googleapis.c" + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" - + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" - + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" + + "eapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n" + + "\022CreateSubscription\022\036.google.pubsub.v1.S" + + "ubscription\032\036.google.pubsub.v1.Subscript" + + "ion\"^\332A+name,topic,push_config,ack_deadl" + + "ine_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/" + + "subscriptions/*}:\001*\022\241\001\n\017GetSubscription\022" + + "(.google.pubsub.v1.GetSubscriptionReques" + + "t\032\036.google.pubsub.v1.Subscription\"D\332A\014su" + + "bscription\202\323\344\223\002/\022-/v1/{subscription=proj" + + "ects/*/subscriptions/*}\022\273\001\n\022UpdateSubscr" + + "iption\022+.google.pubsub.v1.UpdateSubscrip" + + "tionRequest\032\036.google.pubsub.v1.Subscript" + + "ion\"X\332A\030subscription,update_mask\202\323\344\223\002722" + + "/v1/{subscription.name=projects/*/subscr" + + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go" + + "ogle.pubsub.v1.ListSubscriptionsRequest\032" + + "+.google.pubsub.v1.ListSubscriptionsResp" + + "onse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=pro" + + "jects/*}/subscriptions\022\237\001\n\022DeleteSubscri" + + "ption\022+.google.pubsub.v1.DeleteSubscript" + + "ionRequest\032\026.google.protobuf.Empty\"D\332A\014s" + + "ubscription\202\323\344\223\002/*-/v1/{subscription=pro" + + "jects/*/subscriptions/*}\022\317\001\n\021ModifyAckDe" + + "adline\022*.google.pubsub.v1.ModifyAckDeadl" + + "ineRequest\032\026.google.protobuf.Empty\"v\332A)s" + + "ubscription,ack_ids,ack_deadline_seconds" + + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" + + "scriptions/*}:modifyAckDeadline:\001*\022\250\001\n\013A" + + "cknowledge\022$.google.pubsub.v1.Acknowledg" + + "eRequest\032\026.google.protobuf.Empty\"[\332A\024sub" + + "scription,ack_ids\202\323\344\223\002>\"9/v1/{subscripti" + + "on=projects/*/subscriptions/*}:acknowled" + + "ge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRe" + + "quest\032\036.google.pubsub.v1.PullResponse\"\210\001" + + "\332A,subscription,return_immediately,max_m" + + "essages\332A\031subscription,max_messages\202\323\344\223\002" + + "7\"2/v1/{subscription=projects/*/subscrip" + + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog" + + "le.pubsub.v1.StreamingPullRequest\032\'.goog" + + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001" + + "\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v1" + + ".ModifyPushConfigRequest\032\026.google.protob" + + "uf.Empty\"d\332A\030subscription,push_config\202\323\344" + + "\223\002C\">/v1/{subscription=projects/*/subscr" + + "iptions/*}:modifyPushConfig:\001*\022\211\001\n\013GetSn" + + "apshot\022$.google.pubsub.v1.GetSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"8\332A\010sna" + + "pshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn" + + "apshots/*}\022\226\001\n\rListSnapshots\022&.google.pu" + + "bsub.v1.ListSnapshotsRequest\032\'.google.pu" + + "bsub.v1.ListSnapshotsResponse\"4\332A\007projec" + + "t\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsh" + + "ots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v" + + "1.CreateSnapshotRequest\032\032.google.pubsub." + + "v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002&\032" + + "!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001" + + "\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upda" + + "teSnapshotRequest\032\032.google.pubsub.v1.Sna" + + "pshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v" + + "1/{snapshot.name=projects/*/snapshots/*}" + + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" + + "1.DeleteSnapshotRequest\032\026.google.protobu" + + "f.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapsho" + + "t=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.goo" + + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" + + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:seek:\001*" + + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/pubsubB\252\001\n\024c" + + "om.google.pubsub.v1B\013PubsubProtoP\001Z2clou" + + "d.google.com/go/pubsub/apiv1/pubsubpb;pu" + + "bsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goo" + + "gle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::Pub" + + "Sub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -987,7 +988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, new java.lang.String[] { - "WriteMetadata", + "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = getDescriptor().getMessageTypes().get(25); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 5341666eb..a26effb78 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 2dc2208a4..94c2e0c10 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 8546dacf9..b70bda11a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1168,6 +1168,10 @@ message CloudStorageConfig { // data (for example, an ordering_key, if present) are added as entries in // the attributes map. bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When true, the output Cloud Storage file will be serialized + // using the topic schema, if it exists. + bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL]; } // Possible states for a Cloud Storage subscription. @@ -1188,6 +1192,10 @@ message CloudStorageConfig { // Cannot write to the destination because enforce_in_transit is set to true // and the destination locations are not in the allowed regions. IN_TRANSIT_LOCATION_RESTRICTION = 4; + + // Cannot write to the Cloud Storage bucket due to an incompatibility + // between the topic schema and subscription settings. + SCHEMA_MISMATCH = 5; } // Required. User-provided name for the Cloud Storage bucket. From d5993cad3075bb92cfd110a3080085e57b0ceb0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:07:19 +0200 Subject: [PATCH 193/656] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.0 (#2079) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 76a88ddbf..76119feb8 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.5 + 3.3.0 **/*IT From 438ba6faf88c07ee746ab62128468b01c52e62d1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:46:48 +0200 Subject: [PATCH 194/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.1 (#2077) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61ebb1cb4..55d765048 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d518d420e..303760aa2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1 From b4671068cc3c07d50a1147c2abbd3a09b3d79110 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:47:09 +0200 Subject: [PATCH 195/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.0 (#2080) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 92be8d86e..5c6de0bc3 100644 --- a/pom.xml +++ b/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.5.0 + 3.6.0 From 0963e0c9010fd517695ade73f4f8da17b5e4764b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 24 Jun 2024 18:34:39 +0200 Subject: [PATCH 196/656] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.7.1 (#2084) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 76119feb8..2a16d3661 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.7.0 + 3.7.1 copy-dependencies From 9621a588944d2bd03451328a969b15d3823b3f5b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 18:46:50 +0200 Subject: [PATCH 197/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.1 (#2085) --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e5342faaa..b91f40480 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.8.0 + 1.8.1 Google Cloud pubsub BOM From aebc3ed779e0847077742dedc7c2c0a9d8a1ab10 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 20:12:17 +0200 Subject: [PATCH 198/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 (#2088) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index ca6fff388..de006d9e2 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.31.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index aeafc3181..7d5ab3a25 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 047ec1b67..519c2e3ce 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 5c6de0bc3..4e5cc8478 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.31.0 + 3.32.0 From 26b01c921f2700947a1653702be0234cf84cccef Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 20:12:39 +0200 Subject: [PATCH 199/656] deps: update dependency com.google.cloud:google-cloud-core to v2.40.0 (#2087) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 303760aa2..bdb85eb83 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index afc37ce64..9b9a0e6bc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 912a95a47..6e44621f6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests From 0cb6a574f2e117c78d04b078e2e48a69c4ec6a4c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:36:29 -0400 Subject: [PATCH 200/656] chore(main): release 1.131.0 (#2083) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 13 +++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43e5ac4cd..89626575a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.131.0](https://github.com/googleapis/java-pubsub/compare/v1.130.1...v1.131.0) (2024-06-25) + + +### Features + +* Add use_topic_schema for Cloud Storage Subscriptions ([#2082](https://github.com/googleapis/java-pubsub/issues/2082)) ([11d67d4](https://github.com/googleapis/java-pubsub/commit/11d67d44152ccca008dda071683d9932c59af41d)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.40.0 ([#2087](https://github.com/googleapis/java-pubsub/issues/2087)) ([26b01c9](https://github.com/googleapis/java-pubsub/commit/26b01c921f2700947a1653702be0234cf84cccef)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 ([#2088](https://github.com/googleapis/java-pubsub/issues/2088)) ([aebc3ed](https://github.com/googleapis/java-pubsub/commit/aebc3ed779e0847077742dedc7c2c0a9d8a1ab10)) + ## [1.130.1](https://github.com/googleapis/java-pubsub/compare/v1.130.0...v1.130.1) (2024-06-13) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index b91f40480..f989772ba 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.2-SNAPSHOT + 1.131.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 7a5d972ea..785c76c06 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 59c094048..efb305931 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/pom.xml b/pom.xml index 4e5cc8478..21f3ee292 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.2-SNAPSHOT + 1.131.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index cc739747b..c08a7bb30 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9b9a0e6bc..db54cec31 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/versions.txt b/versions.txt index 7b80e922b..af4a53006 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.1:1.130.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT +google-cloud-pubsub:1.131.0:1.131.0 +grpc-google-cloud-pubsub-v1:1.113.0:1.113.0 +proto-google-cloud-pubsub-v1:1.113.0:1.113.0 From 5456b52efef7fab95a2d448d443323388c4d5b55 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:50:43 +0000 Subject: [PATCH 201/656] chore(main): release 1.131.1-SNAPSHOT (#2089) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index f989772ba..295c7717e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.131.0 + 1.131.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 785c76c06..af2d034e5 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index efb305931..9b5e7af10 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 21f3ee292..a8b0281d9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.131.0 + 1.131.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index c08a7bb30..4d6605394 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index db54cec31..632adef76 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index af4a53006..cdd8b1243 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.131.0:1.131.0 -grpc-google-cloud-pubsub-v1:1.113.0:1.113.0 -proto-google-cloud-pubsub-v1:1.113.0:1.113.0 +google-cloud-pubsub:1.131.0:1.131.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT From 53a4844f09eace777142b8cdcd06bc07cef0b432 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 1 Jul 2024 11:25:55 -0400 Subject: [PATCH 202/656] docs(samples): Optimistic subscribe sample (#2063) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(samples): Add code sample for optimistic subscribe * docs(samples): Fix formatting on test * docs(samples): Use an error listener instead of catching an exception for the OptimisticSubscribeExample * test: Add exception handler to OptimisticSubscribeExample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 7 +- .../pubsub/OptimisticSubscribeExample.java | 103 ++++++++++++++++++ .../src/test/java/pubsub/SubscriberIT.java | 19 ++++ 3 files changed, 126 insertions(+), 3 deletions(-) create mode 100644 samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java diff --git a/README.md b/README.md index 55d765048..195200dba 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.130.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.131.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.131.0" ``` @@ -275,6 +275,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | | List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Optimistic Subscribe Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | | Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | | Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | | Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | @@ -411,7 +412,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.131.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java b/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java new file mode 100644 index 000000000..fbc9a183b --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_optimistic_subscribe] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class OptimisticSubscribeExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String topicId = "your-topic-id"; + + optimisticSubscribeExample(projectId, subscriptionId, topicId); + } + + public static void optimisticSubscribeExample( + String projectId, String subscriptionId, String topicId) throws IOException { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + + // Listen for resource NOT_FOUND errors and rebuild the subscriber and restart subscribing + // when the current subscriber encounters these errors. + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + System.out.println(failure.getStackTrace()); + if (failure instanceof NotFoundException) { + try (SubscriptionAdminClient subscriptionAdminClient = + SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + // Create a pull subscription with default acknowledgement deadline of 10 seconds. + // The client library will automatically extend acknowledgement deadlines. + Subscription subscription = + subscriptionAdminClient.createSubscription( + subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); + System.out.println("Created pull subscription: " + subscription.getName()); + optimisticSubscribeExample(projectId, subscriptionId, topicId); + } catch (IOException err) { + System.out.println("Failed to create pull subscription: " + err.getMessage()); + } + } + } + }, + MoreExecutors.directExecutor()); + + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (IllegalStateException e) { + // Prevent an exception from being thrown if it is the expected NotFoundException + if (!(subscriber.failureCause() instanceof NotFoundException)) { + throw e; + } + } catch (TimeoutException e) { + subscriber.stopAsync(); + } + } +} + +// [END pubsub_optimistic_subscribe] diff --git a/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/samples/snippets/src/test/java/pubsub/SubscriberIT.java index ee4e03068..3f91a2a31 100644 --- a/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -56,12 +56,16 @@ public class SubscriberIT { private static final String subscriptionId = "subscriber-test-subscription-" + _suffix; // For a subscription with exactly once delivery enabled. private static final String subscriptionEodId = "subscriber-test-subscription-eod" + _suffix; + private static final String subscriptionOptimisticId = + "subscriber-test-subscription-optimistic" + _suffix; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName topicNameEod = TopicName.of(projectId, topicIdEod); private static final ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); private static final ProjectSubscriptionName subscriptionEodName = ProjectSubscriptionName.of(projectId, subscriptionEodId); + private static final ProjectSubscriptionName subscriptionOptimisticName = + ProjectSubscriptionName.of(projectId, subscriptionOptimisticId); private static void requireEnvVar(String varName) { assertNotNull( @@ -163,6 +167,11 @@ public void tearDown() throws Exception { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); subscriptionAdminClient.deleteSubscription(subscriptionEodName.toString()); + try { + subscriptionAdminClient.deleteSubscription(subscriptionOptimisticName.toString()); + } catch (Exception e) { + // Ignore exception. + } } try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { @@ -240,4 +249,14 @@ public void testSubscriberExactlyOnceDelivery() throws Exception { assertThat(bout.toString()).contains("Message successfully acked: " + messageId); } } + + @Test + public void testOptimisticSubscriber() throws Exception { + bout.reset(); + OptimisticSubscribeExample.optimisticSubscribeExample( + projectId, subscriptionOptimisticId, topicId); + assertThat( + bout.toString() + .contains("Created pull subscription: " + subscriptionOptimisticName.toString())); + } } From 315766dc8fa346466c153a3543c536846283f7f3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:39 +0200 Subject: [PATCH 203/656] test(deps): update dependency com.google.truth:truth to v1.4.3 (#2097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency com.google.truth:truth to v1.4.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/native-image-sample/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index a8b0281d9..2db6e3367 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bdb85eb83..708d713e7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 2a16d3661..558d6ff53 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 632adef76..849271280 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6e44621f6..c9a0eb790 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test From 42f12ed3270e66beae316deb729b445c94dcb1a8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:47 +0200 Subject: [PATCH 204/656] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 (#2096) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 558d6ff53..91bfe85e4 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.10.2 + 5.10.3 test From 0d64d6cf7799a176297ceaa1475b7cb29a64bebc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:54 +0200 Subject: [PATCH 205/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.40.1 (#2095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.40.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 708d713e7..667b69336 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.40.0 + 2.40.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 849271280..133bf05f0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.40.0 + 2.40.1 From dfc9d59666875ab44f13443ebddca552f63cf057 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:10:13 +0200 Subject: [PATCH 206/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.1 (#2094) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2db6e3367..42b2ec00d 100644 --- a/pom.xml +++ b/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.0 + 3.6.1 From 217b8a3f5419f80402d349b8873d7302eeb35e3f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:10:22 +0200 Subject: [PATCH 207/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 (#2093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 667b69336..c4ab3b629 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.3 + 2.41.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 133bf05f0..93f8e019f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.3 + 2.41.0 com.google.cloud From 81c311b9bacb07cf148086166e6d52ac31906891 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:58:38 +0200 Subject: [PATCH 208/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.131.0 (#2092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.131.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 195200dba..eb350d3d0 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.130.1 + 1.131.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c4ab3b629..4e588aeb4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.131.0 From 9859f1181a12bc683eaf4a6345bf2528a5463c59 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:58:52 +0200 Subject: [PATCH 209/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.2 (#2091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4e588aeb4..13fd9af3a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 93f8e019f..5bf9d6093 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c9a0eb790..5f9cf65b9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 From 283a5e89837071678f8dd94b8b8adfad91a6766c Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Tue, 2 Jul 2024 20:11:20 -0400 Subject: [PATCH 210/656] feat: enable hermetic library generation (#2048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: enable hermetic library generation * fix config yaml syntax * do not map runners home folder * try dummy proto_path * use copyright update comittish * correct proto_path * update protoc * preserve pr_description * update gapic_generator_version to 2.41.0 * infer image tag from config yaml * correct workflow name * update config scripts and yamls * remove old update_googleapis_committish workflow * sync config structure with that of google-cloud-java * remove quotes from config yamls * fix typo in update_generation_config.yaml * correct * quote codeowners_team in generation config * update generator version * fix library info * retrigger jobs * fix path to hermetic_library_generation * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fixes to hermetic_library_generation --------- Co-authored-by: Owl Bot --- .../{.OwlBot.yaml => .OwlBot-hermetic.yaml} | 0 .../scripts/hermetic_library_generation.sh | 117 +++++++++++++++++ .github/scripts/update_generation_config.sh | 121 ++++++++++++++++++ .../hermetic_library_generation.yaml | 40 ++++++ .../workflows/update_generation_config.yaml | 42 ++++++ generation_config.yaml | 23 ++++ 6 files changed, 343 insertions(+) rename .github/{.OwlBot.yaml => .OwlBot-hermetic.yaml} (100%) create mode 100644 .github/scripts/hermetic_library_generation.sh create mode 100644 .github/scripts/update_generation_config.sh create mode 100644 .github/workflows/hermetic_library_generation.yaml create mode 100644 .github/workflows/update_generation_config.yaml create mode 100644 generation_config.yaml diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot-hermetic.yaml similarity index 100% rename from .github/.OwlBot.yaml rename to .github/.OwlBot-hermetic.yaml diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh new file mode 100644 index 000000000..6c3f22d8f --- /dev/null +++ b/.github/scripts/hermetic_library_generation.sh @@ -0,0 +1,117 @@ +#!/bin/bash +set -e +# This script should be run at the root of the repository. +# This script is used to, when a pull request changes the generation +# configuration (generation_config.yaml by default): +# 1. Find whether the last commit in this pull request contains changes to +# the generation configuration and exit early if it doesn't have such a change +# since the generation result would be the same. +# 2. Compare generation configurations in the current branch (with which the +# pull request associated) and target branch (into which the pull request is +# merged); +# 3. Generate changed libraries using library_generation image; +# 4. Commit the changes to the pull request, if any. +# 5. Edit the PR body with generated pull request description, if applicable. + +# The following commands need to be installed before running the script: +# 1. git +# 2. gh +# 3. docker + +# The parameters of this script is: +# 1. target_branch, the branch into which the pull request is merged. +# 2. current_branch, the branch with which the pull request is associated. +# 3. [optional] generation_config, the path to the generation configuration, +# the default value is generation_config.yaml in the repository root. +while [[ $# -gt 0 ]]; do +key="$1" +case "${key}" in + --target_branch) + target_branch="$2" + shift + ;; + --current_branch) + current_branch="$2" + shift + ;; + --generation_config) + generation_config="$2" + shift + ;; + *) + echo "Invalid option: [$1]" + exit 1 + ;; +esac +shift +done + +if [ -z "${target_branch}" ]; then + echo "missing required argument --target_branch" + exit 1 +fi + +if [ -z "${current_branch}" ]; then + echo "missing required argument --current_branch" + exit 1 +fi + +if [ -z "${generation_config}" ]; then + generation_config=generation_config.yaml + echo "Using default generation config: ${generation_config}" +fi + +workspace_name="/workspace" +baseline_generation_config="baseline_generation_config.yaml" +message="chore: generate libraries at $(date)" + +git checkout "${target_branch}" +git checkout "${current_branch}" +# if the last commit doesn't contain changes to generation configuration, +# do not generate again as the result will be the same. +change_of_last_commit="$(git diff-tree --no-commit-id --name-only HEAD~1..HEAD -r)" +if [[ ! ("${change_of_last_commit}" == *"${generation_config}"*) ]]; then + echo "The last commit doesn't contain any changes to the generation_config.yaml, skipping the whole generation process." || true + exit 0 +fi +# copy generation configuration from target branch to current branch. +git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" +config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) + +# parse image tag from the generation configuration. +image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) + +# run hermetic code generation docker image. +docker run \ + --rm \ + -u "$(id -u):$(id -g)" \ + -v "$(pwd):${workspace_name}" \ + gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ + --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ + --current-generation-config-path="${workspace_name}/${generation_config}" + + +# commit the change to the pull request. +if [[ $(basename $(pwd)) == "google-cloud-java" ]]; then + git add java-* pom.xml gapic-libraries-bom/pom.xml versions.txt +else + # The image leaves intermediate folders and files it works with. Here we remove them + rm -rdf output googleapis "${baseline_generation_config}" + git add --all -- ':!pr_description.txt' +fi +changed_files=$(git diff --cached --name-only) +if [[ "${changed_files}" == "" ]]; then + echo "There is no generated code change with the generation config change ${config_diff}." + echo "Skip committing to the pull request." + exit 0 +fi + +echo "Configuration diff:" +echo "${config_diff}" +git commit -m "${message}" +git push +# set pr body if pr_description.txt is generated. +if [[ -f "pr_description.txt" ]]; then + pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") + gh pr edit "${pr_num}" --body "$(cat pr_description.txt)" +fi diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh new file mode 100644 index 000000000..561a31304 --- /dev/null +++ b/.github/scripts/update_generation_config.sh @@ -0,0 +1,121 @@ +#!/bin/bash +set -e +# This script should be run at the root of the repository. +# This script is used to update googleapis_commitish, gapic_generator_version, +# and libraries_bom_version in generation configuration at the time of running +# and create a pull request. + +# The following commands need to be installed before running the script: +# 1. git +# 2. gh +# 3. jq + +# Utility functions +# Get the latest released version of a Maven artifact. +function get_latest_released_version() { + local group_id=$1 + local artifact_id=$2 + latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) + echo "${latest}" +} + +# Update a key to a new value in the generation config. +function update_config() { + local key_word=$1 + local new_value=$2 + local file=$3 + echo "Update ${key_word} to ${new_value} in ${file}" + sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" +} + +# The parameters of this script is: +# 1. base_branch, the base branch of the result pull request. +# 2. repo, organization/repo-name, e.g., googleapis/google-cloud-java +# 3. [optional] generation_config, the path to the generation configuration, +# the default value is generation_config.yaml in the repository root. +while [[ $# -gt 0 ]]; do +key="$1" +case "${key}" in + --base_branch) + base_branch="$2" + shift + ;; + --repo) + repo="$2" + shift + ;; + --generation_config) + generation_config="$2" + shift + ;; + *) + echo "Invalid option: [$1]" + exit 1 + ;; +esac +shift +done + +if [ -z "${base_branch}" ]; then + echo "missing required argument --base_branch" + exit 1 +fi + +if [ -z "${repo}" ]; then + echo "missing required argument --repo" + exit 1 +fi + +if [ -z "${generation_config}" ]; then + generation_config="generation_config.yaml" + echo "Use default generation config: ${generation_config}" +fi + +current_branch="generate-libraries-${base_branch}" +title="chore: Update generation configuration at $(date)" + +# try to find a open pull request associated with the branch +pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") +# create a branch if there's no open pull request associated with the +# branch; otherwise checkout the pull request. +if [ -z "${pr_num}" ]; then + git checkout -b "${current_branch}" +else + gh pr checkout "${pr_num}" +fi + +mkdir tmp-googleapis +# use partial clone because only commit history is needed. +git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis +pushd tmp-googleapis +git pull +latest_commit=$(git rev-parse HEAD) +popd +rm -rf tmp-googleapis +update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" + +# update gapic-generator-java version to the latest +latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") +update_config "gapic_generator_version" "${latest_version}" "${generation_config}" + +# update libraries-bom version to the latest +latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") +update_config "libraries_bom_version" "${latest_version}" "${generation_config}" + +git add "${generation_config}" +changed_files=$(git diff --cached --name-only) +if [[ "${changed_files}" == "" ]]; then + echo "The latest generation config is not changed." + echo "Skip committing to the pull request." + exit 0 +fi +git commit -m "${title}" +if [ -z "${pr_num}" ]; then + git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git" + git fetch -q --unshallow remote_repo + git push -f remote_repo "${current_branch}" + gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" +else + git push + gh pr edit "${pr_num}" --title "${title}" --body "${title}" +fi diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml new file mode 100644 index 000000000..7146cc3dc --- /dev/null +++ b/.github/workflows/hermetic_library_generation.yaml @@ -0,0 +1,40 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# GitHub action job to test core java library features on +# downstream client libraries before they are released. +name: Hermetic library generation upon generation config change through pull requests +on: + pull_request: + +jobs: + library_generation: + # skip pull requests coming from a forked repository + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Generate changed libraries + shell: bash + run: | + set -x + [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" + [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" + bash .github/scripts/hermetic_library_generation.sh \ + --target_branch ${{ github.base_ref }} \ + --current_branch ${{ github.head_ref }} + env: + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml new file mode 100644 index 000000000..3cf773992 --- /dev/null +++ b/.github/workflows/update_generation_config.yaml @@ -0,0 +1,42 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# GitHub action job to test core java library features on +# downstream client libraries before they are released. +name: Update generation configuration +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +jobs: + update-generation-config: + runs-on: ubuntu-22.04 + env: + # the branch into which the pull request is merged + base_branch: main + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Update params in generation config to latest + shell: bash + run: | + set -x + [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" + [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" + bash .github/scripts/update_generation_config.sh \ + --base_branch "${base_branch}"\ + --repo ${{ github.repository }} + env: + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/generation_config.yaml b/generation_config.yaml new file mode 100644 index 000000000..e7b53b6d9 --- /dev/null +++ b/generation_config.yaml @@ -0,0 +1,23 @@ +gapic_generator_version: 2.42.0 +googleapis_commitish: 6f289d775912966eb0cf04bda91e5e355c998d30 +libraries_bom_version: 26.38.0 +libraries: + - api_shortname: pubsub + name_pretty: Cloud Pub/Sub + api_reference: https://cloud.google.com/pubsub/ + product_documentation: https://cloud.google.com/pubsub/docs/ + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history + api_description: is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications. + issue_tracker: https://issuetracker.google.com/savedsearches/559741 + release_level: stable + language: java + repo: googleapis/java-pubsub + repo_short: java-pubsub + distribution_name: com.google.cloud:google-cloud-pubsub + codeowner_team: '@googleapis/api-pubsub' + api_id: pubsub.googleapis.com + library_type: GAPIC_COMBO + requires_billing: true + recommended_package: com.google.cloud.pubsub.v1 + GAPICs: + - proto_path: google/pubsub/v1 From c11246bc56905d7d4c57c155185b45eaeedf1d7f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:15:07 -0400 Subject: [PATCH 211/656] chore: Update generation configuration at Fri Jul 5 02:16:12 UTC 2024 (#2103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update generation configuration at Wed Jul 3 00:13:55 UTC 2024 * chore: generate libraries at Wed Jul 3 00:14:23 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update generation configuration at Thu Jul 4 02:16:36 UTC 2024 * chore: generate libraries at Thu Jul 4 02:16:59 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update generation configuration at Fri Jul 5 02:16:12 UTC 2024 * chore: generate libraries at Fri Jul 5 02:16:34 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .repo-metadata.json | 9 +++++---- README.md | 4 ++++ generation_config.yaml | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index f30706ceb..0c8364b05 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,19 +1,20 @@ { "api_shortname": "pubsub", "name_pretty": "Cloud Pub/Sub", - "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "release_level": "stable", + "transport": "both", "language": "java", "repo": "googleapis/java-pubsub", "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", - "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", "requires_billing": true, + "api_reference": "https://cloud.google.com/pubsub/", + "codeowner_team": "@googleapis/api-pubsub", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "recommended_package": "com.google.cloud.pubsub.v1" } \ No newline at end of file diff --git a/README.md b/README.md index eb350d3d0..b446529b4 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. +## Transport + +Cloud Pub/Sub uses both gRPC and HTTP/JSON for the transport layer. + ## Supported Java Versions Java 8 or above is required for using this client. diff --git a/generation_config.yaml b/generation_config.yaml index e7b53b6d9..7f9f93bd9 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 6f289d775912966eb0cf04bda91e5e355c998d30 -libraries_bom_version: 26.38.0 +googleapis_commitish: 7976ffadc0f21ee9149708c0c97ef000e15de1eb +libraries_bom_version: 26.42.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 464e56137860e1102e5589071075e043d2531f29 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 8 Jul 2024 12:57:50 -0400 Subject: [PATCH 212/656] chore: make the owlbot postprocessor check non-required (#2104) We will soon disable the Owlbot postprocessor. This is part of the effort to enable hermetic generation in this repo ([context](https://docs.google.com/document/d/1wrpyBtphdenM3BNelcnpBKGADYrGJUo686HXvSA0h-0/edit?pli=1&tab=t.0#bookmark=kix.914gcjvdwt3u)) --- .github/sync-repo-settings.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 875095277..80d26801c 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -15,7 +15,6 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc @@ -34,7 +33,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -50,7 +48,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.114.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -66,7 +63,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.116.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -82,7 +78,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.117.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -98,7 +93,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.120.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -114,7 +108,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.121.x @@ -132,7 +125,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.123.x @@ -149,7 +141,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.125.x @@ -165,7 +156,6 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc From 68f4b01c04ba6527746c4bde8e1f0034b6b59715 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 8 Jul 2024 13:00:31 -0400 Subject: [PATCH 213/656] chore: disable the Owl Bot post-processor (#2102) --- .github/.OwlBot.lock.yaml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/.OwlBot.lock.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index 359fe71c1..000000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 -# created: 2024-06-05T18:32:21.724930324Z From 0b51cc30248329c47ac7e804f8903bde2fddedb5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 8 Jul 2024 23:09:52 +0200 Subject: [PATCH 214/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.43.0 (#2107) --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 91bfe85e4..c182ae0b9 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5f9cf65b9..5d4261825 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import From 4e17c34880d0498d2bd891ea7caa8fe095054016 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:44:54 -0400 Subject: [PATCH 215/656] chore: Update generation configuration at Wed Jul 10 02:17:03 UTC 2024 (#2109) * chore: Update generation configuration at Tue Jul 9 02:17:13 UTC 2024 * chore: Update generation configuration at Wed Jul 10 02:17:03 UTC 2024 * chore: generate libraries at Wed Jul 10 02:17:23 UTC 2024 --- README.md | 4 ++-- generation_config.yaml | 4 ++-- renovate.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b446529b4..6166c7893 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.42.0') +implementation platform('com.google.cloud:libraries-bom:26.43.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 7f9f93bd9..c644dddde 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 7976ffadc0f21ee9149708c0c97ef000e15de1eb -libraries_bom_version: 26.42.0 +googleapis_commitish: 3ce84c2ca3f3e453e62bbb9bffb62f3f8ec3f016 +libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/renovate.json b/renovate.json index 58c97664e..df71c3b5a 100644 --- a/renovate.json +++ b/renovate.json @@ -20,7 +20,7 @@ "customManagers": [ { "customType": "regex", - "fileMatch": [ + "fileMatch": [ "^.kokoro/presubmit/graalvm-native.*.cfg$" ], "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], @@ -30,7 +30,7 @@ { "customType": "regex", "fileMatch": [ - "^.github/workflows/unmanaged_dependency_check.yaml$" + "^.github/workflows/unmanaged_dependency_check.yaml$" ], "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", From c0b7ac10f60eebb177a55dd9c629837db8231522 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:10:11 -0400 Subject: [PATCH 216/656] chore: Update generation configuration at Thu Jul 11 02:18:01 UTC 2024 (#2112) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index c644dddde..c98375b66 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 3ce84c2ca3f3e453e62bbb9bffb62f3f8ec3f016 +googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub From 87ee9d0fb936891455f38e3a98518437a5c58c45 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 15 Jul 2024 17:55:00 +0200 Subject: [PATCH 217/656] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.1 (#2111) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index c182ae0b9..6f6f56c0f 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.3.0 + 3.3.1 **/*IT From 8b07974d768c55a7bbff99b8ebe5d48c72fb4a64 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:52:25 -0400 Subject: [PATCH 218/656] chore: remove native image sample in favor of sample hosted in google-cloud-java (#2105) * chore: remove native image sample in favor of sample hosted in google-cloud-java --- README.md | 2 - samples/native-image-sample/README.md | 77 ---- samples/native-image-sample/pom.xml | 169 -------- .../java/pubsub/NativeImagePubSubSample.java | 385 ------------------ .../java/utilities/PublishOperations.java | 159 -------- .../pubsub/NativeImagePubSubSampleIT.java | 139 ------- samples/pom.xml | 1 - 7 files changed, 932 deletions(-) delete mode 100644 samples/native-image-sample/README.md delete mode 100644 samples/native-image-sample/pom.xml delete mode 100644 samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java delete mode 100644 samples/native-image-sample/src/main/java/utilities/PublishOperations.java delete mode 100644 samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java diff --git a/README.md b/README.md index 6166c7893..7bba02421 100644 --- a/README.md +++ b/README.md @@ -242,8 +242,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Native Image Pub Sub Sample | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | -| Publish Operations | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | | Commit Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | | Commit Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md deleted file mode 100644 index 5f0cd31e9..000000000 --- a/samples/native-image-sample/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# Pub/Sub Sample Application with Native Image - -The Pub/Sub sample application demonstrates some common operations with Pub/Sub and is compatible with Native Image compilation. - -## Setup Instructions - -You will need to follow these prerequisite steps in order to run the samples: - -1. If you have not already, [create a Google Cloud Platform Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project). - -2. Install the [Google Cloud SDK](https://cloud.google.com/sdk/) which will allow you to run the sample with your project's credentials. - - Once installed, log in with Application Default Credentials using the following command: - - ``` - gcloud auth application-default login - ``` - - **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. - -3. Install the native image compiler. - - You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm). - After following the instructions, ensure that you install the native image extension installed by running: - - ``` - gu install native-image - ``` - - Once you finish following the instructions, verify that the default version of Java is set to the correct version by running `java -version` in a terminal. - - You will see something similar to the below output: - - ``` - $ java -version - - openjdk version "17.0.3" 2022-04-19 - OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) - OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) - ``` - -4. [Enable the Pub/Sub APIs](https://console.cloud.google.com/apis/api/pubsub.googleapis.com). - -### Sample - -Navigate to this directory in a new terminal. - -1. Compile the application using the Native Image Compiler. This step may take a few minutes. - - ``` - mvn package -P native -DskipTests - ``` - -2. Run the application: - - ``` - ./target/native-image-sample - ``` - -3. The application will create a new Pub/Sub topic, send and receive a message from it, and then delete the topic. - - ``` - Created topic: projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 under project: YOUR_PROJECT_ID - Created pull subscription: projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 - Published message with ID: 457327433078420 - Received Payload: Pub/Sub Native Image Test published message at timestamp: 2020-09-23T19:45:42.746514Z - Deleted topic projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 - Deleted subscription projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 - ``` - -## Sample Integration Test with native Image Support - -In order to run the sample integration test as a native image, call the following command: - - ``` - mvn test -Pnative - ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml deleted file mode 100644 index 6f6f56c0f..000000000 --- a/samples/native-image-sample/pom.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - 4.0.0 - com.google.cloud - native-image-sample - Native Image Sample - https://github.com/googleapis/java-pubsub - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - libraries-bom - 26.43.0 - pom - import - - - - - - - com.google.cloud - google-cloud-core - - - com.google.cloud - google-cloud-pubsub - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.4.3 - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - dependency-jars/ - pubsub.NativeImagePubSubSample - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 3.7.1 - - - copy-dependencies - package - - copy-dependencies - - - - ${project.build.directory}/dependency-jars/ - - - - - - - - - - - - native - - - - org.junit.vintage - junit-vintage-engine - 5.10.3 - test - - - org.graalvm.buildtools - junit-platform-native - 0.10.2 - test - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - 3.3.1 - - - **/*IT - - - - - org.graalvm.buildtools - native-maven-plugin - 0.10.2 - true - - pubsub.NativeImagePubSubSample - - - --no-fallback - --no-server - - - - - build-native - - build - test - - package - - - test-native - - test - - test - - - - - - - - \ No newline at end of file diff --git a/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java b/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java deleted file mode 100644 index 2e96091a6..000000000 --- a/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package pubsub; - -import com.google.api.gax.rpc.NotFoundException; -import com.google.cloud.ServiceOptions; -import com.google.cloud.pubsub.v1.AckReplyConsumer; -import com.google.cloud.pubsub.v1.MessageReceiver; -import com.google.cloud.pubsub.v1.Subscriber; -import com.google.cloud.pubsub.v1.SubscriptionAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; -import com.google.cloud.pubsub.v1.stub.SubscriberStub; -import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.FieldMask; -import com.google.pubsub.v1.AcknowledgeRequest; -import com.google.pubsub.v1.DeadLetterPolicy; -import com.google.pubsub.v1.DetachSubscriptionRequest; -import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; -import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.PullRequest; -import com.google.pubsub.v1.PullResponse; -import com.google.pubsub.v1.PushConfig; -import com.google.pubsub.v1.ReceivedMessage; -import com.google.pubsub.v1.Subscription; -import com.google.pubsub.v1.Topic; -import com.google.pubsub.v1.TopicName; -import com.google.pubsub.v1.UpdateSubscriptionRequest; -import java.io.IOException; -import java.time.Duration; -import java.time.Instant; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import utilities.PublishOperations; - -/** Pub/Sub sample application compiled with Native Image. */ -public class NativeImagePubSubSample { - - /** Driver for the Pub/Sub Sample application which publishes a message to a specified topic. */ - public static void main(String[] args) throws Exception { - Instant startTime = Instant.now(); - String projectId = ServiceOptions.getDefaultProjectId(); - - String topicId = "native-pubsub-test-" + UUID.randomUUID().toString(); - String pullSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); - String pushSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); - - try { - // Topic management operations - createTopic(projectId, topicId); - createPullSubscription(projectId, pullSubId, topicId); - createPushSubscription(projectId, pushSubId, topicId); - detachSubscription(projectId, pushSubId); - getTopicPolicy(projectId, topicId); - getSubscriptionPolicy(projectId, pullSubId); - listSubscriptionInProject(projectId); - listSubscriptionInTopic(projectId, topicId); - listTopics(projectId); - updateSubscriptionDeadLetterTopic(projectId, pushSubId, topicId, topicId); - testTopicPermissions(projectId, topicId); - testSubscriptionPermissions(projectId, pushSubId); - - // Publish Operations - PublishOperations.publishMessage(projectId, topicId); - PublishOperations.publishWithBatchSettings(projectId, topicId); - PublishOperations.publishWithCustomAttributes(projectId, topicId); - PublishOperations.publishWithErrorHandler(projectId, topicId); - - // Receive messages - subscribeSync(projectId, pullSubId); - receiveMessagesWithDeliveryAttempts(projectId, pullSubId); - } finally { - deleteTopic(projectId, topicId); - deleteSubscription(projectId, pullSubId); - deleteSubscription(projectId, pushSubId); - } - Instant endTime = Instant.now(); - Duration duration = Duration.between(startTime, endTime); - System.out.println("Duration: " + duration.toString()); - } - - static void createTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - Topic topic = topicAdminClient.createTopic(topicName); - System.out.println("Created topic: " + topic.getName() + " under project: " + projectId); - } - } - - static void createPullSubscription(String projectId, String subscriptionId, String topicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - Subscription subscription = - subscriptionAdminClient.createSubscription( - subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); - System.out.println("Created pull subscription: " + subscription.getName()); - } - } - - static void createPushSubscription(String projectId, String subscriptionId, String topicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - // Intentionally set pushEndpoint empty just to exercise API call - PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint("").build(); - - Subscription subscription = - subscriptionAdminClient.createSubscription(subscriptionName, topicName, pushConfig, 10); - System.out.println("Created push subscription: " + subscription.getName()); - } - } - - static void detachSubscription(String projectId, String subscriptionId) throws IOException { - - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - topicAdminClient.detachSubscription( - DetachSubscriptionRequest.newBuilder() - .setSubscription(subscriptionName.toString()) - .build()); - } - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName); - if (subscription.getDetached()) { - System.out.println("Subscription is detached."); - } else { - throw new RuntimeException("Subscription detachment was not successful."); - } - } - } - - static void getSubscriptionPolicy(String projectId, String subscriptionId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - GetIamPolicyRequest getIamPolicyRequest = - GetIamPolicyRequest.newBuilder().setResource(subscriptionName.toString()).build(); - Policy policy = subscriptionAdminClient.getIamPolicy(getIamPolicyRequest); - System.out.println("Subscription policy: " + policy.toString().trim()); - } - } - - static void getTopicPolicy(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - GetIamPolicyRequest getIamPolicyRequest = - GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build(); - Policy policy = topicAdminClient.getIamPolicy(getIamPolicyRequest); - System.out.println("Topic policy: " + policy.toString().trim()); - } - } - - static void listSubscriptionInProject(String projectId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectName projectName = ProjectName.of(projectId); - int count = 0; - for (Subscription subscription : - subscriptionAdminClient.listSubscriptions(projectName).iterateAll()) { - count += 1; - } - System.out.println("Subscriptions in project count: " + count); - } - } - - static void listSubscriptionInTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - int count = 0; - for (String subscription : topicAdminClient.listTopicSubscriptions(topicName).iterateAll()) { - count += 1; - } - System.out.println("Subscriptions under topic: " + count); - } - } - - static void listTopics(String projectId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - ProjectName projectName = ProjectName.of(projectId); - int count = 0; - for (Topic topic : topicAdminClient.listTopics(projectName).iterateAll()) { - count += 1; - } - System.out.println("Topic count under project: " + count); - } - } - - static void receiveMessagesWithDeliveryAttempts(String projectId, String subscriptionId) { - - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - // Instantiate an asynchronous message receiver. - MessageReceiver receiver = - new MessageReceiver() { - @Override - public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { - consumer.ack(); - } - }; - - Subscriber subscriber = null; - try { - subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); - // Start the subscriber. - subscriber.startAsync().awaitRunning(); - System.out.println("Successfully started an async message receiver."); - } finally { - // Shut down the subscriber after 10s. Stop receiving messages. - subscriber.stopAsync(); - } - } - - static void subscribeSync(String projectId, String subscriptionId) throws IOException { - SubscriberStubSettings subscriberStubSettings = - SubscriberStubSettings.newBuilder() - .setTransportChannelProvider( - SubscriberStubSettings.defaultGrpcTransportProviderBuilder() - .setMaxInboundMessageSize(20 * 1024 * 1024) // 20MB (maximum message size). - .build()) - .build(); - - try (SubscriberStub subscriber = GrpcSubscriberStub.create(subscriberStubSettings)) { - String subscriptionName = ProjectSubscriptionName.format(projectId, subscriptionId); - PullRequest pullRequest = - PullRequest.newBuilder().setMaxMessages(1).setSubscription(subscriptionName).build(); - - PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); - List ackIds = new ArrayList<>(); - for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { - String payload = message.getMessage().getData().toStringUtf8(); - ackIds.add(message.getAckId()); - System.out.println("Received Payload: " + payload); - } - - AcknowledgeRequest acknowledgeRequest = - AcknowledgeRequest.newBuilder() - .setSubscription(subscriptionName) - .addAllAckIds(ackIds) - .build(); - - subscriber.acknowledgeCallable().call(acknowledgeRequest); - } - } - - static void updateSubscriptionDeadLetterTopic( - String projectId, String subscriptionId, String topicId, String deadLetterTopicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - TopicName topicName = TopicName.of(projectId, topicId); - TopicName deadLetterTopicName = TopicName.of(projectId, deadLetterTopicId); - - DeadLetterPolicy deadLetterPolicy = - DeadLetterPolicy.newBuilder() - .setDeadLetterTopic(deadLetterTopicName.toString()) - .setMaxDeliveryAttempts(20) - .build(); - - Subscription subscription = - Subscription.newBuilder() - .setName(subscriptionName.toString()) - .setTopic(topicName.toString()) - .setDeadLetterPolicy(deadLetterPolicy) - .build(); - - FieldMask updateMask = FieldMask.newBuilder().addPaths("dead_letter_policy").build(); - - UpdateSubscriptionRequest request = - UpdateSubscriptionRequest.newBuilder() - .setSubscription(subscription) - .setUpdateMask(updateMask) - .build(); - - Subscription response = subscriptionAdminClient.updateSubscription(request); - System.out.println("Updated subscription " + response.getName()); - } - } - - static void testSubscriptionPermissions(String projectId, String subscriptionId) - throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - List permissions = new ArrayList<>(); - permissions.add("pubsub.subscriptions.consume"); - permissions.add("pubsub.subscriptions.update"); - - TestIamPermissionsRequest testIamPermissionsRequest = - TestIamPermissionsRequest.newBuilder() - .setResource(subscriptionName.toString()) - .addAllPermissions(permissions) - .build(); - - TestIamPermissionsResponse testedPermissionsResponse = - subscriptionAdminClient.testIamPermissions(testIamPermissionsRequest); - - System.out.println( - "Tested PubSub subscription permissions\n" + testedPermissionsResponse.toString().trim()); - } - } - - static void testTopicPermissions(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); - - List permissions = new ArrayList<>(); - permissions.add("pubsub.topics.attachSubscription"); - permissions.add("pubsub.topics.publish"); - permissions.add("pubsub.topics.update"); - - TestIamPermissionsRequest testIamPermissionsRequest = - TestIamPermissionsRequest.newBuilder() - .setResource(topicName.toString()) - .addAllPermissions(permissions) - .build(); - - TestIamPermissionsResponse testedPermissionsResponse = - topicAdminClient.testIamPermissions(testIamPermissionsRequest); - - System.out.println( - "Tested topic permissions\n" + testedPermissionsResponse.toString().trim()); - } - } - - static void deleteTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - try { - topicAdminClient.deleteTopic(topicName); - System.out.println("Deleted topic " + topicName); - } catch (NotFoundException e) { - System.out.println(e.getMessage()); - } - } - } - - static void deleteSubscription(String projectId, String subscriptionId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - try { - subscriptionAdminClient.deleteSubscription(subscriptionName); - System.out.println("Deleted subscription " + subscriptionName); - } catch (NotFoundException e) { - System.out.println(e.getMessage()); - } - } - } -} diff --git a/samples/native-image-sample/src/main/java/utilities/PublishOperations.java b/samples/native-image-sample/src/main/java/utilities/PublishOperations.java deleted file mode 100644 index 068312025..000000000 --- a/samples/native-image-sample/src/main/java/utilities/PublishOperations.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package utilities; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutureCallback; -import com.google.api.core.ApiFutures; -import com.google.api.gax.rpc.ApiException; -import com.google.cloud.pubsub.v1.Publisher; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.ByteString; -import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.TopicName; -import java.io.IOException; -import java.time.Instant; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.concurrent.ExecutionException; - -/** Sample methods for Publishing messages to a topic in Pub/Sub. */ -public class PublishOperations { - - public static void publishMessage(String projectId, String topicId) throws Exception { - - Publisher publisher = Publisher.newBuilder(TopicName.of(projectId, topicId)).build(); - - try { - String message = "Pub/Sub Native Image Test published message at timestamp: " + Instant.now(); - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - publisher.publish(pubsubMessage); - - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - String messageId = messageIdFuture.get(); - - System.out.println("Published message with ID: " + messageId); - } finally { - publisher.shutdown(); - } - } - - public static void publishWithCustomAttributes(String projectId, String topicId) - throws Exception { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = Publisher.newBuilder(topicName).build(); - - try { - String message = "first message"; - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = - PubsubMessage.newBuilder() - .setData(data) - .putAllAttributes(Collections.singletonMap("year", "2020")) - .build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - String messageId = messageIdFuture.get(); - System.out.println("Published a message with custom attributes: " + messageId); - } finally { - publisher.shutdown(); - } - } - - public static void publishWithBatchSettings(String projectId, String topicId) - throws IOException, ExecutionException, InterruptedException { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = Publisher.newBuilder(topicName).build(); - List> messageIdFutures = new ArrayList<>(); - - try { - // schedule publishing one message at a time : messages get automatically batched - for (int i = 0; i < 100; i++) { - String message = "message " + i; - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - messageIdFutures.add(messageIdFuture); - } - } finally { - // Wait on any pending publish requests. - List messageIds = ApiFutures.allAsList(messageIdFutures).get(); - System.out.println("Published " + messageIds.size() + " messages with batch settings."); - - publisher.shutdown(); - } - } - - public static void publishWithErrorHandler(String projectId, String topicId) throws IOException { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = null; - - try { - // Create a publisher instance with default settings bound to the topic - publisher = Publisher.newBuilder(topicName).build(); - - List messages = Arrays.asList("first message", "second message"); - - for (final String message : messages) { - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture future = publisher.publish(pubsubMessage); - - // Add an asynchronous callback to handle success / failure - ApiFutures.addCallback( - future, - new ApiFutureCallback() { - - @Override - public void onFailure(Throwable throwable) { - if (throwable instanceof ApiException) { - ApiException apiException = ((ApiException) throwable); - // details on the API exception - System.out.println(apiException.getStatusCode().getCode()); - System.out.println(apiException.isRetryable()); - } - System.out.println("Error publishing message : " + message); - } - - @Override - public void onSuccess(String messageId) { - // Once published, returns server-assigned message ids (unique within the topic) - System.out.println("Success Callback: Published message " + messageId); - } - }, - MoreExecutors.directExecutor()); - } - } finally { - if (publisher != null) { - // When finished with the publisher, shutdown to free up resources. - publisher.shutdown(); - } - } - } -} diff --git a/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java b/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java deleted file mode 100644 index c221d735a..000000000 --- a/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package pubsub; - -import static com.google.common.truth.Truth.assertThat; - -import com.google.cloud.ServiceOptions; -import com.google.pubsub.v1.SubscriptionName; -import com.google.pubsub.v1.TopicName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import utilities.PublishOperations; - -public class NativeImagePubSubSampleIT { - - private static String TOPIC_ID = "native-pubsub-test-" + UUID.randomUUID(); - private static String PULL_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); - private static String PUSH_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); - private static String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final TopicName TOPIC_NAME = TopicName.of(PROJECT_ID, TOPIC_ID); - private static final SubscriptionName PULL_SUBSCRIPTION_NAME = - SubscriptionName.of(PROJECT_ID, PULL_SUB_ID); - private static final SubscriptionName PUSH_SUBSCRIPTION_NAME = - SubscriptionName.of(PROJECT_ID, PUSH_SUB_ID); - - private ByteArrayOutputStream bout; - private PrintStream out; - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void cleanUp() throws IOException { - NativeImagePubSubSample.deleteTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PUSH_SUB_ID); - } - - @Test - public void testRunTopicManagementOperations() throws IOException { - // Topic management operations - NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); - NativeImagePubSubSample.createPushSubscription(PROJECT_ID, PUSH_SUB_ID, TOPIC_ID); - NativeImagePubSubSample.detachSubscription(PROJECT_ID, PUSH_SUB_ID); - NativeImagePubSubSample.getTopicPolicy(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.getSubscriptionPolicy(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.listSubscriptionInProject(PROJECT_ID); - NativeImagePubSubSample.listSubscriptionInTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.listTopics(PROJECT_ID); - NativeImagePubSubSample.updateSubscriptionDeadLetterTopic( - PROJECT_ID, PUSH_SUB_ID, TOPIC_ID, TOPIC_ID); - NativeImagePubSubSample.testTopicPermissions(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.testSubscriptionPermissions(PROJECT_ID, PUSH_SUB_ID); - - // Verify create topic and subscriptions - assertThat(bout.toString()) - .contains("Created topic: " + TOPIC_NAME.toString() + " under project: " + PROJECT_ID); - assertThat(bout.toString()) - .contains("Created pull subscription: " + PULL_SUBSCRIPTION_NAME.toString()); - assertThat(bout.toString()) - .contains("Created push subscription: " + PUSH_SUBSCRIPTION_NAME.toString()); - - // Verify detach subscription - assertThat(bout.toString()).contains("Subscription is detached"); - - // Verify topic and subscription IAM policy - assertThat(bout.toString()).contains("Topic policy: etag: \"\\000 \\001"); - assertThat(bout.toString()).contains("Subscription policy: etag: \"\\000 \\001\""); - - // Verify listing of subscriptions and topics - assertThat(bout.toString()).contains("Subscriptions in project count:"); - assertThat(bout.toString()).contains("Subscriptions under topic:"); - assertThat(bout.toString()).contains("Topic count under project:"); - - // Verify update of subscription - assertThat(bout.toString()).contains("Updated subscription " + PUSH_SUBSCRIPTION_NAME); - - // Verify topic permissions - assertThat(bout.toString()).contains("Tested topic permissions"); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.attachSubscription\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.publish\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.update\""); - - // Verify subscription permissions - assertThat(bout.toString()).contains("Tested PubSub subscription permissions"); - assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); - } - - @Test - public void testPublishAndSubscribe() throws Exception { - NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); - - bout.reset(); - - // Publish - PublishOperations.publishMessage(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithBatchSettings(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithCustomAttributes(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithErrorHandler(PROJECT_ID, TOPIC_ID); - - // Subscribe - NativeImagePubSubSample.subscribeSync(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.receiveMessagesWithDeliveryAttempts(PROJECT_ID, PULL_SUB_ID); - - assertThat(bout.toString()).contains("Published message with ID"); - assertThat(bout.toString()).contains("Published 100 messages with batch settings."); - assertThat(bout.toString()).contains("Published a message with custom attributes"); - assertThat(bout.toString()).contains("Success Callback: Published message"); - assertThat(bout.toString()).contains("Success Callback: Published message"); - assertThat(bout.toString()).contains("Received Payload"); - assertThat(bout.toString()).contains("Successfully started an async message receiver"); - } -} diff --git a/samples/pom.xml b/samples/pom.xml index 6d05e41e2..3f092679c 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,6 @@ install-without-bom snapshot snippets - native-image-sample From 5a7d4e5a4ba85a5fbc08e38754365b6f26b2483b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 15 Jul 2024 19:42:36 +0200 Subject: [PATCH 219/656] test(deps): update dependency com.google.truth:truth to v1.4.4 (#2114) --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 42b2ec00d..e9042b5c4 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 13fd9af3a..591ff0ee5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5bf9d6093..4bb65df74 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5d4261825..b15119c88 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test From a77e26a63534f76693984f51369e8ca32f697b85 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 16 Jul 2024 21:05:06 +0200 Subject: [PATCH 220/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.2 (#2115) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e9042b5c4..4ecd37b68 100644 --- a/pom.xml +++ b/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.1 + 3.6.2 From 2b15b0a3f43c9ccef663fedf0398375f58fd9183 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 23 Jul 2024 14:00:18 -0400 Subject: [PATCH 221/656] chore: Update generation configuration at Tue Jul 23 02:17:28 UTC 2024 (#2118) * chore: Update generation configuration at Tue Jul 23 02:17:28 UTC 2024 * chore: generate libraries at Tue Jul 23 02:17:50 UTC 2024 --- generation_config.yaml | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 117 ++++- .../v1/CloudStorageConfigOrBuilder.java | 14 + .../com/google/pubsub/v1/PubsubProto.java | 430 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 4 + 7 files changed, 347 insertions(+), 230 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index c98375b66..ba697aea4 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099 +googleapis_commitish: d44c3001960c430bc60ac1e1736cebfd8fd45e77 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index f847f91d6..69560d392 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1865,6 +1865,25 @@ public long getMaxBytes() { return maxBytes_; } + public static final int MAX_MESSAGES_FIELD_NUMBER = 8; + private long maxMessages_ = 0L; + /** + * + * + *
+   * Optional. The maximum number of messages that can be written to a Cloud
+   * Storage file before a new file is created. Min 1000 messages.
+   * 
+ * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + @java.lang.Override + public long getMaxMessages() { + return maxMessages_; + } + public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** @@ -2002,6 +2021,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxBytes_ != 0L) { output.writeInt64(7, maxBytes_); } + if (maxMessages_ != 0L) { + output.writeInt64(8, maxMessages_); + } if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } @@ -2045,6 +2067,9 @@ public int getSerializedSize() { if (maxBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxBytes_); } + if (maxMessages_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxMessages_); + } if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } @@ -2078,6 +2103,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxDuration().equals(other.getMaxDuration())) return false; } if (getMaxBytes() != other.getMaxBytes()) return false; + if (getMaxMessages() != other.getMaxMessages()) return false; if (state_ != other.state_) return false; if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; @@ -2116,6 +2142,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); + hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxMessages()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; @@ -2296,6 +2324,7 @@ public Builder clear() { maxDurationBuilder_ = null; } maxBytes_ = 0L; + maxMessages_ = 0L; state_ = 0; serviceAccountEmail_ = ""; outputFormatCase_ = 0; @@ -2359,9 +2388,12 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { result.maxBytes_ = maxBytes_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.state_ = state_; + result.maxMessages_ = maxMessages_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.serviceAccountEmail_ = serviceAccountEmail_; } result.bitField0_ |= to_bitField0_; @@ -2449,12 +2481,15 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { if (other.getMaxBytes() != 0L) { setMaxBytes(other.getMaxBytes()); } + if (other.getMaxMessages() != 0L) { + setMaxMessages(other.getMaxMessages()); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getServiceAccountEmail().isEmpty()) { serviceAccountEmail_ = other.serviceAccountEmail_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } switch (other.getOutputFormatCase()) { @@ -2541,10 +2576,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 56 + case 64: + { + maxMessages_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 64 case 72: { state_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 72 case 82: @@ -2556,7 +2597,7 @@ public Builder mergeFrom( case 90: { serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 90 default: @@ -3801,6 +3842,62 @@ public Builder clearMaxBytes() { return this; } + private long maxMessages_; + /** + * + * + *
+     * Optional. The maximum number of messages that can be written to a Cloud
+     * Storage file before a new file is created. Min 1000 messages.
+     * 
+ * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + @java.lang.Override + public long getMaxMessages() { + return maxMessages_; + } + /** + * + * + *
+     * Optional. The maximum number of messages that can be written to a Cloud
+     * Storage file before a new file is created. Min 1000 messages.
+     * 
+ * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxMessages to set. + * @return This builder for chaining. + */ + public Builder setMaxMessages(long value) { + + maxMessages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of messages that can be written to a Cloud
+     * Storage file before a new file is created. Min 1000 messages.
+     * 
+ * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxMessages() { + bitField0_ = (bitField0_ & ~0x00000100); + maxMessages_ = 0L; + onChanged(); + return this; + } + private int state_ = 0; /** * @@ -3837,7 +3934,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3880,7 +3977,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3900,7 +3997,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3983,7 +4080,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { throw new NullPointerException(); } serviceAccountEmail_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4005,7 +4102,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { */ public Builder clearServiceAccountEmail() { serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4032,7 +4129,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 11d3fa787..22e01385e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -287,6 +287,20 @@ public interface CloudStorageConfigOrBuilder */ long getMaxBytes(); + /** + * + * + *
+   * Optional. The maximum number of messages that can be written to a Cloud
+   * Storage file before a new file is created. Min 1000 messages.
+   * 
+ * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + long getMaxMessages(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index a80aaa209..f0d1612a3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -427,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\316\005\n\022CloudSto" + + "NSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022CloudSto" + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" @@ -437,222 +437,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" - + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" - + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" - + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\n" - + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022" - + "\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" - + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_" - + "TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA" - + "_MISMATCH\020\005B\017\n\routput_format\"|\n\017Received" - + "Message\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030" - + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessageB\003" - + "\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026Ge" - + "tSubscriptionRequest\022@\n\014subscription\030\001 \001" + + "A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConf" + + "ig.StateB\003\340A\003\022\"\n\025service_account_email\030\013" + + " \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_" + + "schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DEN" + + "IED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCAT" + + "ION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017" + + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" + + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" + + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" + + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" + + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" + + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" + + "dateSubscriptionRequest\0229\n\014subscription\030" + + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" + + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" + + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" + + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\0226\n\013push" + + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" + + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" + + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" + + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" + + "ModifyAckDeadlineRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" + + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" + + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " + + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" + + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " + + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" + + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" + + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" + + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" + + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" + + "gle.pubsub.v1.StreamingPullResponse.Ackn" + + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" + + "eadline_confirmation\030\003 \001(\0132E.google.pubs" + + "ub.v1.StreamingPullResponse.ModifyAckDea" + + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" + + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" + + "mingPullResponse.SubscriptionPropertiesB" + + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" + + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" + + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" + + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" + + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" + + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" + + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" + + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" + + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" + + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" + + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" + + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." + + "pubsub.v1.CreateSnapshotRequest.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" + + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" + + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" + + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." + + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" + + "ubsub.googleapis.com/Snapshot\022\'projects/" + + "{project}/snapshots/{snapshot}\"N\n\022GetSna" + + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" + + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" + + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014" - + "subscription\030\001 \001(\0132\036.google.pubsub.v1.Su" - + "bscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSu" - + "bscriptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRe" - + "sponse\022:\n\rsubscriptions\030\001 \003(\0132\036.google.p" - + "ubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_" - + "token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\"\223\001\n\027Modi" - + "fyPushConfigRequest\022@\n\014subscription\030\001 \001(" - + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" - + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs" - + "ub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022!\n\022return_immedi" - + "ately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005" - + "B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_messag" - + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" - + "ageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" - + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" - + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Strea" - + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadli" - + "ne_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline" - + "_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadli" - + "ne_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\t" - + "B\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001(\003B" - + "\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001" - + "\"\236\006\n\025StreamingPullResponse\022A\n\021received_m" - + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" - + "dMessageB\003\340A\001\022f\n\030acknowledge_confirmatio" - + "n\030\005 \001(\0132?.google.pubsub.v1.StreamingPull" - + "Response.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132" - + "E.google.pubsub.v1.StreamingPullResponse" - + ".ModifyAckDeadlineConfirmationB\003\340A\001\022d\n\027s" - + "ubscription_properties\030\004 \001(\0132>.google.pu" - + "bsub.v1.StreamingPullResponse.Subscripti" - + "onPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirm" - + "ation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_a" - + "ck_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003" - + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 " - + "\003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirmatio" - + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" - + "ds\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_id" - + "s\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*" - + "\n\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340" - + "A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B\003\340A" - + "\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(" - + "\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snapsho" - + "t\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022H\n\006labels\030\003 " - + "\003(\01323.google.pubsub.v1.CreateSnapshotReq" - + "uest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateS" - + "napshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.googl" - + "e.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" - + "\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic" - + "\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/To" - + "pic\0224\n\013expire_time\030\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.goog" - + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh" - + "ot\022\'projects/{project}/snapshots/{snapsh" - + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 " - + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" - + "hot\"\215\001\n\024ListSnapshotsRequest\022D\n\007project\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnaps" - + "hotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.google" - + ".pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_to" - + "ken\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\022" - + "8\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.google" - + "apis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022/\n\004time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot" - + "\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Sn" - + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tP" - + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub." - + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004na" - + "me\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}" - + ":\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1.U" - + "pdateTopicRequest\032\027.google.pubsub.v1.Top" - + "ic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{top" - + "ic.name=projects/*/topics/*}:\001*\022\223\001\n\007Publ" - + "ish\022 .google.pubsub.v1.PublishRequest\032!." - + "google.pubsub.v1.PublishResponse\"C\332A\016top" - + "ic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*" - + "/topics/*}:publish:\001*\022w\n\010GetTopic\022!.goog" - + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" - + "bsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topi" - + "c=projects/*/topics/*}\022\212\001\n\nListTopics\022#." - + "google.pubsub.v1.ListTopicsRequest\032$.goo" - + "gle.pubsub.v1.ListTopicsResponse\"1\332A\007pro" - + "ject\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" - + "ics\022\272\001\n\026ListTopicSubscriptions\022/.google." - + "pubsub.v1.ListTopicSubscriptionsRequest\032" - + "0.google.pubsub.v1.ListTopicSubscription" - + "sResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=pr" - + "ojects/*/topics/*}/subscriptions\022\252\001\n\022Lis" - + "tTopicSnapshots\022+.google.pubsub.v1.ListT" - + "opicSnapshotsRequest\032,.google.pubsub.v1." - + "ListTopicSnapshotsResponse\"9\332A\005topic\202\323\344\223" - + "\002+\022)/v1/{topic=projects/*/topics/*}/snap" - + "shots\022|\n\013DeleteTopic\022$.google.pubsub.v1." - + "DeleteTopicRequest\032\026.google.protobuf.Emp" - + "ty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/" - + "*/topics/*}\022\255\001\n\022DetachSubscription\022+.goo" - + "gle.pubsub.v1.DetachSubscriptionRequest\032" - + ",.google.pubsub.v1.DetachSubscriptionRes" - + "ponse\"<\202\323\344\223\0026\"4/v1/{subscription=project" - + "s/*/subscriptions/*}:detach\032p\312A\025pubsub.g" + + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" + + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" + + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" + + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" + + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" + + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" + + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" + + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," + + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" + + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." + + "pubsub.v1.PublishRequest\032!.google.pubsub" + + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" + + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" + + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." + + "GetTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" + + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" + + "opicSubscriptions\022/.google.pubsub.v1.Lis" + + "tTopicSubscriptionsRequest\0320.google.pubs" + + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" + + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" + + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" + + "ts\022+.google.pubsub.v1.ListTopicSnapshots" + + "Request\032,.google.pubsub.v1.ListTopicSnap" + + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" + + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" + + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" + + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" + + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" + + "\001\n\022DetachSubscription\022+.google.pubsub.v1" + + ".DetachSubscriptionRequest\032,.google.pubs" + + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" + + "\"4/v1/{subscription=projects/*/subscript" + + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" + + "\322AUhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" + + "iption\022\036.google.pubsub.v1.Subscription\032\036" + + ".google.pubsub.v1.Subscription\"^\332A+name," + + "topic,push_config,ack_deadline_seconds\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" + + "ub.v1.GetSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" + + "\223\002/\022-/v1/{subscription=projects/*/subscr" + + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" + + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" + + ".google.pubsub.v1.Subscription\"X\332A\030subsc" + + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" + + "tion.name=projects/*/subscriptions/*}:\001*" + + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" + + "1.ListSubscriptionsRequest\032+.google.pubs" + + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" + + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" + + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" + + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." + + "google.protobuf.Empty\"D\332A\014subscription\202\323" + + "\344\223\002/*-/v1/{subscription=projects/*/subsc" + + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" + + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." + + "google.protobuf.Empty\"v\332A)subscription,a" + + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." + + "google.pubsub.v1.AcknowledgeRequest\032\026.go" + + "ogle.protobuf.Empty\"[\332A\024subscription,ack" + + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" + + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" + + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" + + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:pull" + + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" + + "shConfig\022).google.pubsub.v1.ModifyPushCo" + + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" + + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" + + "scription=projects/*/subscriptions/*}:mo" + + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" + + "le.pubsub.v1.GetSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" + + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" + + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" + + "napshotsRequest\032\'.google.pubsub.v1.ListS" + + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" + + "{project=projects/*}/snapshots\022\227\001\n\016Creat" + + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" + + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" + + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" + + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" + + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" + + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" + + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" + + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" + + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" + + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" + + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" + + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + "oogleapis.com\322AUhttps://www.googleapis.c" + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.S" - + "ubscription\032\036.google.pubsub.v1.Subscript" - + "ion\"^\332A+name,topic,push_config,ack_deadl" - + "ine_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/" - + "subscriptions/*}:\001*\022\241\001\n\017GetSubscription\022" - + "(.google.pubsub.v1.GetSubscriptionReques" - + "t\032\036.google.pubsub.v1.Subscription\"D\332A\014su" - + "bscription\202\323\344\223\002/\022-/v1/{subscription=proj" - + "ects/*/subscriptions/*}\022\273\001\n\022UpdateSubscr" - + "iption\022+.google.pubsub.v1.UpdateSubscrip" - + "tionRequest\032\036.google.pubsub.v1.Subscript" - + "ion\"X\332A\030subscription,update_mask\202\323\344\223\002722" - + "/v1/{subscription.name=projects/*/subscr" - + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go" - + "ogle.pubsub.v1.ListSubscriptionsRequest\032" - + "+.google.pubsub.v1.ListSubscriptionsResp" - + "onse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=pro" - + "jects/*}/subscriptions\022\237\001\n\022DeleteSubscri" - + "ption\022+.google.pubsub.v1.DeleteSubscript" - + "ionRequest\032\026.google.protobuf.Empty\"D\332A\014s" - + "ubscription\202\323\344\223\002/*-/v1/{subscription=pro" - + "jects/*/subscriptions/*}\022\317\001\n\021ModifyAckDe" - + "adline\022*.google.pubsub.v1.ModifyAckDeadl" - + "ineRequest\032\026.google.protobuf.Empty\"v\332A)s" - + "ubscription,ack_ids,ack_deadline_seconds" - + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" - + "scriptions/*}:modifyAckDeadline:\001*\022\250\001\n\013A" - + "cknowledge\022$.google.pubsub.v1.Acknowledg" - + "eRequest\032\026.google.protobuf.Empty\"[\332A\024sub" - + "scription,ack_ids\202\323\344\223\002>\"9/v1/{subscripti" - + "on=projects/*/subscriptions/*}:acknowled" - + "ge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRe" - + "quest\032\036.google.pubsub.v1.PullResponse\"\210\001" - + "\332A,subscription,return_immediately,max_m" - + "essages\332A\031subscription,max_messages\202\323\344\223\002" - + "7\"2/v1/{subscription=projects/*/subscrip" - + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog" - + "le.pubsub.v1.StreamingPullRequest\032\'.goog" - + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001" - + "\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v1" - + ".ModifyPushConfigRequest\032\026.google.protob" - + "uf.Empty\"d\332A\030subscription,push_config\202\323\344" - + "\223\002C\">/v1/{subscription=projects/*/subscr" - + "iptions/*}:modifyPushConfig:\001*\022\211\001\n\013GetSn" - + "apshot\022$.google.pubsub.v1.GetSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"8\332A\010sna" - + "pshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn" - + "apshots/*}\022\226\001\n\rListSnapshots\022&.google.pu" - + "bsub.v1.ListSnapshotsRequest\032\'.google.pu" - + "bsub.v1.ListSnapshotsResponse\"4\332A\007projec" - + "t\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsh" - + "ots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v" - + "1.CreateSnapshotRequest\032\032.google.pubsub." - + "v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002&\032" - + "!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001" - + "\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upda" - + "teSnapshotRequest\032\032.google.pubsub.v1.Sna" - + "pshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v" - + "1/{snapshot.name=projects/*/snapshots/*}" - + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" - + "1.DeleteSnapshotRequest\032\026.google.protobu" - + "f.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapsho" - + "t=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.goo" - + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" - + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:seek:\001*" - + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" - + ".googleapis.com/auth/cloud-platform,http" - + "s://www.googleapis.com/auth/pubsubB\252\001\n\024c" - + "om.google.pubsub.v1B\013PubsubProtoP\001Z2clou" - + "d.google.com/go/pubsub/apiv1/pubsubpb;pu" - + "bsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goo" - + "gle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::Pub" - + "Sub::V1b\006proto3" + + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" + + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" + + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -972,6 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroConfig", "MaxDuration", "MaxBytes", + "MaxMessages", "State", "ServiceAccountEmail", "OutputFormat", diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index a26effb78..d108f51ff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 94c2e0c10..d293e9ac1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b70bda11a..b5092087a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1240,6 +1240,10 @@ message CloudStorageConfig { // be exceeded in cases where messages are larger than the limit. int64 max_bytes = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The maximum number of messages that can be written to a Cloud + // Storage file before a new file is created. Min 1000 messages. + int64 max_messages = 8 [(google.api.field_behavior) = OPTIONAL]; + // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; From 0e040cb9b1bdc1ceabe5995475368d75b49290ef Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 29 Jul 2024 21:30:18 -0400 Subject: [PATCH 222/656] chore: Update generation configuration at Sat Jul 27 02:16:29 UTC 2024 (#2119) * chore: Update generation configuration at Wed Jul 24 02:17:25 UTC 2024 * chore: Update generation configuration at Thu Jul 25 02:17:32 UTC 2024 * chore: Update generation configuration at Fri Jul 26 02:17:25 UTC 2024 * chore: Update generation configuration at Sat Jul 27 02:16:29 UTC 2024 * chore: generate libraries at Sat Jul 27 02:16:53 UTC 2024 --- generation_config.yaml | 4 ++-- .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 ++ .../cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 2 ++ .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index ba697aea4..a9b459e57 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.42.0 -googleapis_commitish: d44c3001960c430bc60ac1e1736cebfd8fd45e77 +gapic_generator_version: 2.43.0 +googleapis_commitish: 0fa9ce880be5ea7c3027015849cd4fbfb04812c5 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 40f03dd7f..bc169972d 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -23,6 +23,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -492,6 +493,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 9d68b251e..1ab1f310a 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -22,6 +22,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -352,6 +353,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 30803382a..40d5a4b54 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -22,6 +22,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -397,6 +398,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } From 7fbea6d0c922dd3485f19eafccc42869efd0e5ed Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 03:30:32 +0200 Subject: [PATCH 223/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 (#2121) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index de006d9e2..96fde5ee4 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.33.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 7d5ab3a25..7008a7215 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.33.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 519c2e3ce..931f9bb00 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.33.0" } env_vars: { diff --git a/pom.xml b/pom.xml index 4ecd37b68..4419d7423 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.32.0 + 3.33.0 From 24ebe2402fe6278348d87b5a4259c365a819877f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 03:30:47 +0200 Subject: [PATCH 224/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 (#2124) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 591ff0ee5..7e3007543 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.41.0 + 2.42.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4bb65df74..8fd69b0dc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.41.0 + 2.42.0 com.google.cloud From 1f6428a8b79369a239664b9ea7cd38e024db9724 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 04:38:43 +0200 Subject: [PATCH 225/656] deps: update dependency com.google.cloud:google-cloud-core to v2.41.0 (#2120) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7e3007543..e24cff6cf 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8fd69b0dc..ed24807f2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b15119c88..67ab4d9e9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests From dfe7739c8ceef75252cdfecdd686e3abc1b65390 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Wed, 31 Jul 2024 16:56:06 -0400 Subject: [PATCH 226/656] chore: setup 1.129.x lts branch (#2128) --- .github/release-please.yml | 4 ++++ .github/sync-repo-settings.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index 43fa6c78a..dae3c7e8a 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -38,3 +38,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.125.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.129.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 80d26801c..8f2999f82 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -159,6 +159,22 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - pattern: 1.129.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc permissionRules: - team: yoshi-admins permission: admin From 99b90aba9952237f4e13d3e8383abaa2e270ed13 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:57:06 -0400 Subject: [PATCH 227/656] chore: Update generation configuration at Thu Aug 1 02:21:32 UTC 2024 (#2125) * chore: Update generation configuration at Tue Jul 30 02:17:27 UTC 2024 * chore: Update generation configuration at Wed Jul 31 02:05:30 UTC 2024 * chore: Update generation configuration at Thu Aug 1 02:21:32 UTC 2024 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index a9b459e57..8f790ad7e 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.43.0 -googleapis_commitish: 0fa9ce880be5ea7c3027015849cd4fbfb04812c5 +googleapis_commitish: 24c5ee09178ac7d1387dfa2d6053be2fb93c8dc4 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub From 2348d2022bc400b7f187d3db7f43aff94d8884a8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Aug 2024 22:16:21 +0200 Subject: [PATCH 228/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.41.0 (#2129) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e24cff6cf..23e234307 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.40.1 + 2.41.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ed24807f2..e447ef75e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.40.1 + 2.41.0
From 58435f9026bc3958dc11705a5d319058b2ed436a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Aug 2024 22:17:03 +0200 Subject: [PATCH 229/656] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.9.1 (#2110) --- google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 295c7717e..cb218c150 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.8.1 + 1.9.1 Google Cloud pubsub BOM From 34a9bd8f5df3c9620e40a43a54529b8541b8f763 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:38:15 -0400 Subject: [PATCH 230/656] chore(main): release 1.132.0 (#2098) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 24 ++++++++++++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 42 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89626575a..4f35da2d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.132.0](https://github.com/googleapis/java-pubsub/compare/v1.131.0...v1.132.0) (2024-08-01) + + +### Features + +* Enable hermetic library generation ([#2048](https://github.com/googleapis/java-pubsub/issues/2048)) ([283a5e8](https://github.com/googleapis/java-pubsub/commit/283a5e89837071678f8dd94b8b8adfad91a6766c)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 ([#2093](https://github.com/googleapis/java-pubsub/issues/2093)) ([217b8a3](https://github.com/googleapis/java-pubsub/commit/217b8a3f5419f80402d349b8873d7302eeb35e3f)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 ([#2124](https://github.com/googleapis/java-pubsub/issues/2124)) ([24ebe24](https://github.com/googleapis/java-pubsub/commit/24ebe2402fe6278348d87b5a4259c365a819877f)) +* Update dependency com.google.cloud:google-cloud-core to v2.41.0 ([#2120](https://github.com/googleapis/java-pubsub/issues/2120)) ([1f6428a](https://github.com/googleapis/java-pubsub/commit/1f6428a8b79369a239664b9ea7cd38e024db9724)) +* Update dependency com.google.cloud:google-cloud-storage to v2.40.1 ([#2095](https://github.com/googleapis/java-pubsub/issues/2095)) ([0d64d6c](https://github.com/googleapis/java-pubsub/commit/0d64d6cf7799a176297ceaa1475b7cb29a64bebc)) +* Update dependency com.google.cloud:google-cloud-storage to v2.41.0 ([#2129](https://github.com/googleapis/java-pubsub/issues/2129)) ([2348d20](https://github.com/googleapis/java-pubsub/commit/2348d2022bc400b7f187d3db7f43aff94d8884a8)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#2121](https://github.com/googleapis/java-pubsub/issues/2121)) ([7fbea6d](https://github.com/googleapis/java-pubsub/commit/7fbea6d0c922dd3485f19eafccc42869efd0e5ed)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.2 ([#2091](https://github.com/googleapis/java-pubsub/issues/2091)) ([9859f11](https://github.com/googleapis/java-pubsub/commit/9859f1181a12bc683eaf4a6345bf2528a5463c59)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#2096](https://github.com/googleapis/java-pubsub/issues/2096)) ([42f12ed](https://github.com/googleapis/java-pubsub/commit/42f12ed3270e66beae316deb729b445c94dcb1a8)) + + +### Documentation + +* **samples:** Optimistic subscribe sample ([#2063](https://github.com/googleapis/java-pubsub/issues/2063)) ([53a4844](https://github.com/googleapis/java-pubsub/commit/53a4844f09eace777142b8cdcd06bc07cef0b432)) + ## [1.131.0](https://github.com/googleapis/java-pubsub/compare/v1.130.1...v1.131.0) (2024-06-25) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index cb218c150..184a61cd4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.131.1-SNAPSHOT + 1.132.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index af2d034e5..6b20a22fa 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 9b5e7af10..fe238a5d9 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/pom.xml b/pom.xml index 4419d7423..4988583c1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.131.1-SNAPSHOT + 1.132.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 4d6605394..3b697ce71 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e447ef75e..bba30cd51 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/versions.txt b/versions.txt index cdd8b1243..6a4c448a6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.131.0:1.131.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT +google-cloud-pubsub:1.132.0:1.132.0 +grpc-google-cloud-pubsub-v1:1.114.0:1.114.0 +proto-google-cloud-pubsub-v1:1.114.0:1.114.0 From c45f95024113e9c5fb3c6ecdf4780fb1a48ee3f2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:57:31 +0000 Subject: [PATCH 231/656] chore(main): release 1.132.1-SNAPSHOT (#2131) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 184a61cd4..9faf2d71e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.0 + 1.132.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 6b20a22fa..65f673bf4 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index fe238a5d9..7c3c1ec35 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4988583c1..e40a2b282 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.0 + 1.132.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3b697ce71..eae0f5a09 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bba30cd51..c7b67e807 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6a4c448a6..e5df1af39 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.0:1.132.0 -grpc-google-cloud-pubsub-v1:1.114.0:1.114.0 -proto-google-cloud-pubsub-v1:1.114.0:1.114.0 +google-cloud-pubsub:1.132.0:1.132.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT From 0a7f334e382fde51b9158f51c50cb5517d80e8e4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:19:23 +0200 Subject: [PATCH 232/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.0 (#2132) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 23e234307..057e72c9c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.132.0 From 8523b4f67f45ac219671c0d588bac7e9dc450dcb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:19:45 +0200 Subject: [PATCH 233/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.3 (#2127) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 057e72c9c..af54eb16d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c7b67e807..73858389a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 67ab4d9e9..9fb6e5d7d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 From 60bdbf7edd9557bba0500186c26d282aee532ed1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:27:51 -0400 Subject: [PATCH 234/656] chore: Update generation configuration at Wed Aug 14 02:18:24 UTC 2024 (#2133) * chore: Update generation configuration at Fri Aug 2 02:17:37 UTC 2024 * chore: Update generation configuration at Sat Aug 3 02:16:40 UTC 2024 * chore: Update generation configuration at Tue Aug 6 02:17:49 UTC 2024 * chore: Update generation configuration at Wed Aug 7 02:18:42 UTC 2024 * chore: Update generation configuration at Thu Aug 8 02:18:03 UTC 2024 * chore: Update generation configuration at Fri Aug 9 02:18:41 UTC 2024 * chore: Update generation configuration at Sat Aug 10 02:18:09 UTC 2024 * chore: generate libraries at Sat Aug 10 02:18:30 UTC 2024 * chore: Update generation configuration at Tue Aug 13 02:18:54 UTC 2024 * chore: Update generation configuration at Wed Aug 14 02:18:24 UTC 2024 --- README.md | 8 ++++---- generation_config.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7bba02421..c5e03e11c 100644 --- a/README.md +++ b/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.43.0') +implementation platform('com.google.cloud:libraries-bom:26.44.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.131.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.131.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.0" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.131.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/generation_config.yaml b/generation_config.yaml index 8f790ad7e..2c8133fa2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.43.0 -googleapis_commitish: 24c5ee09178ac7d1387dfa2d6053be2fb93c8dc4 -libraries_bom_version: 26.43.0 +googleapis_commitish: 906736032699b7e943ef2155edbda05470723647 +libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From e3fe2a658c5653af7d6d8622419c9454125b9155 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:51:48 +0200 Subject: [PATCH 235/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.44.0 (#2136) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9fb6e5d7d..820cd3d58 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.43.0 + 26.44.0 pom import From 102ff844594687b3bbaca1ff92e650fe9e8d3f1e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:51:55 +0200 Subject: [PATCH 236/656] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.6 (#2135) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index af54eb16d..36cb5a4a1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 73858389a..844c4d49f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 820cd3d58..fc03e7381 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 com.google.protobuf From 4126f56c2844bdc188cf5705a60d514e574c1528 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:31:35 -0400 Subject: [PATCH 237/656] chore: Update generation configuration at Sun Aug 18 02:19:28 UTC 2024 (#2139) * chore: Update generation configuration at Thu Aug 15 02:15:24 UTC 2024 * chore: Update generation configuration at Fri Aug 16 02:18:12 UTC 2024 * chore: Update generation configuration at Sat Aug 17 02:16:55 UTC 2024 * chore: Update generation configuration at Sun Aug 18 02:19:28 UTC 2024 * chore: generate libraries at Sun Aug 18 02:19:49 UTC 2024 --- README.md | 4 ++-- generation_config.yaml | 4 ++-- .../com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- .../ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../java/com/google/pubsub/v1/PullRequest.java | 2 +- .../google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PullResponse.java | 2 +- .../google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../google/pubsub/v1/StreamingPullRequest.java | 2 +- .../pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../google/pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Subscription.java | 2 +- .../google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- renovate.json | 16 +++++++++++----- 131 files changed, 143 insertions(+), 137 deletions(-) diff --git a/README.md b/README.md index c5e03e11c..bdb7167a8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.43.0 + 26.44.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.131.0 + 1.132.0 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 2c8133fa2..46bf04120 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.43.0 -googleapis_commitish: 906736032699b7e943ef2155edbda05470723647 +gapic_generator_version: 2.44.0 +googleapis_commitish: 21c206f7370ed960b1c00418cb1edbdb81e3f999 libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 668794506..4f66e8146 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index c63597264..1d48237ec 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 66323e6af..8ed6a70c0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 958a634f2..b11f601a0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 69560d392..03a1ff96d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 22e01385e..bb76b4aa1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index cdad41598..8af8ad8a1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index cfa087dc3..3feee9c44 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 76fd2dae7..19da2b62b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index a23e7a3b7..bc5cd73c5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 3c7da99ab..f75b1df94 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 74ddf5910..bfe921c62 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 57afeb96a..639fce2d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 4a1978e9b..ad73317d2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index c0ea4a8a5..8341b02b4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 076450f41..018f05f72 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 6ac40de58..993b6fbc7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 722f7dd48..659f15af1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 96ede82bd..01b9a533a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 9663ebc95..a44ce2bad 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 2cd4d03f2..101dcfb2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 17ceb01cb..a60aff79b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 60dc14c02..ae7f1d5c7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 4d2c3f90d..9968722bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 91f13786d..fefc483da 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index fe853552a..7d15bd620 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 159c368d3..f6be4bc4b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 1bc2d75a2..0c5a283e4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 546992aee..bbab1ca1f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 3af85ffe3..b6d38a700 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 14c7afe7d..5e758a97e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index e7ecb8c7e..f1fa3abf3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index efa1fed5b..1557c9b32 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 781abb305..5ab32b1b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 325bb59bb..e3cfbecae 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 496f0a163..af067371c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index c314020a8..090018fc7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 1ac15ed4b..2c88ff2d2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index b1ea21ae5..477adf413 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index b56f85ee0..8a3cfc182 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index bb6b772b6..c6692f6d7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index a6642f752..3541d809e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 8204f3f74..ec720f4a0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 9dd8d251a..5f0076d91 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 2641ad810..73ca9e9d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index fe78eaca6..228b2b8e7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index ac55a2d81..c8beb87f1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 4cb9c7f3f..e1985e768 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 320b026c7..10e0d8f72 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 648cca2f0..383e5e1bf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index f8d56aa72..311c46a99 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 811a06f76..4ee7a9731 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 13e847234..b0aeb8451 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 9a5ca2f39..1f2da3141 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index cfaa15b95..e61355550 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 257a763d0..378d58683 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 02232e020..35cb35bf2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index c7777e123..d4b4177c4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6d92bdbfb..8bab402b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 520b7a7c8..1abe84406 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 22d479638..da03f0c90 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index cc1c7ba0e..f69a0ddce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index cb3a4e419..7a0b69c80 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 2750b4256..1b4360644 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index f884bb44b..a4e5ea441 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 355aef97b..c9c87d9cc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 87b88fc63..95973fc94 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 30120c6ec..020257e5e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fdeff7d84..06f99a155 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index fbf890547..164d2c67c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index e836d0653..60f6836e7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 297e93e50..fc1736758 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 19520abd3..231ad9471 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 8f8a5dceb..b02b89d09 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 341a6ff83..ac09ebafa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index dfbe0db2c..c49e55ce5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 8c91821c1..cbf6e94e8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index ca6ed68dd..4f188d836 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index c59d86e61..550873767 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 9ac71c1b2..04dbbf6f6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 0f829d666..f5bd6a3e2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index f0d1612a3..2acb26179 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index d108f51ff..aa05afd08 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index d293e9ac1..4fb6915aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index ad8af3436..137ff8e9a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index be0759de0..af3fa138a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index f8ab6fe90..7273fef24 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 1959de88a..2065ca62a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 2e3758f8a..682c8c482 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 76d5c4833..dcc73e449 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index aad00e999..bff5aa7ef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index ffb8b81ca..664f80bc4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 7e03f82b9..0b0ee8797 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 3e7d17566..9d7f1e83d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 162fe2c55..1bf0ac5ad 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index d37cbd043..12d4bb2fb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index c37d55563..e4ea22273 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 0b80c5d00..c375beb9a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 9bb24f70e..4189cf811 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 6e1d01c15..0a10fac7e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index dcf3bc41a..a8393bb10 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 57ba5547f..a2788628c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 38470ccca..79b37b7ba 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index bfddc8482..c47b0596e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 7b1997373..bd753b6da 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 7475a57bb..2840f7849 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index c86a6f371..eecbd908f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index f745c1ce9..57c301ba9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 43fb79840..e571996f5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e088dd987..7c399b69e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 111ce505f..5c5c8519f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 15a06889d..f0aec914b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e02ddfb68..34686b53a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 5b06555e3..6d003e9f0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 7a906c423..8e7ac0c43 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 45d85d152..636f84656 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index b91bfd8aa..b1e13a170 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 02025fe17..5fba8ab02 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 356606555..f09ac1478 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 1767d2f3d..967c56743 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index fe2e281e2..0a0802f11 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 99e1e670c..7645082b0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index ed1c7f8d5..8db831a83 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 331fb6465..c5dd24535 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 2f62e4de3..f40b82c0c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index f73e4b74b..19bb6dfd0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 8b9256410..603a5d5c6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 4d673913d..13217bd5f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/renovate.json b/renovate.json index df71c3b5a..f67202e06 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,6 @@ + { + "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -20,19 +22,23 @@ "customManagers": [ { "customType": "regex", - "fileMatch": [ + "fileMatch": [ "^.kokoro/presubmit/graalvm-native.*.cfg$" ], - "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], + "matchStrings": [ + "value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\"" + ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" }, { "customType": "regex", "fileMatch": [ - "^.github/workflows/unmanaged_dependency_check.yaml$" + "^.github/workflows/unmanaged_dependency_check.yaml$" + ], + "matchStrings": [ + "uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n" ], - "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" } @@ -99,4 +105,4 @@ ], "semanticCommits": true, "dependencyDashboard": true -} +} \ No newline at end of file From 16111394650a4a5cf0c6dc94fd1d76de08c7e4aa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 19 Aug 2024 18:09:06 +0200 Subject: [PATCH 238/656] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.3 (#2142) --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 3f092679c..044ce6606 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -53,7 +53,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.2 + 3.1.3 true From 80dca35cebb1061f3d2a852ff9929519e69283cc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 19 Aug 2024 18:49:07 +0200 Subject: [PATCH 239/656] deps: update dependency com.google.cloud:google-cloud-core to v2.42.0 (#2140) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 36cb5a4a1..57310f585 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 844c4d49f..e95ee872a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fc03e7381..6979a3a79 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests From 710cfa198e9bc59103ad19f55c957c2c7746250a Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 19 Aug 2024 16:50:18 -0400 Subject: [PATCH 240/656] chore: secure hermetic_library_generation workflow (#2143) Thanks to @diogoteles08 for the inspection on our repos. This PR inlines environment variables to avoid overriding script injections. --- .github/workflows/hermetic_library_generation.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7146cc3dc..ab23b9fec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -17,10 +17,14 @@ name: Hermetic library generation upon generation config change through pull req on: pull_request: +env: + HEAD_REF: ${{ github.head_ref }} + REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} + jobs: library_generation: # skip pull requests coming from a forked repository - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.env.REPO_FULL_NAME == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,11 +34,11 @@ jobs: - name: Generate changed libraries shell: bash run: | - set -x + set -ex [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/hermetic_library_generation.sh \ --target_branch ${{ github.base_ref }} \ - --current_branch ${{ github.head_ref }} + --current_branch $HEAD_REF env: GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 6c5b9ad4f3e3841eaa839d1fbc0d84619c6e32f2 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:30:17 -0400 Subject: [PATCH 241/656] chore: use sdk-platform-java-config instead of java-shared-config (#2144) Missed updating this POM in https://togithub.com/googleapis/java-pubsub/pull/1895 Closes https://togithub.com/googleapis/java-pubsub/pull/2138 --- google-cloud-pubsub-bom/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 9faf2d71e..84171f9f9 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -7,8 +7,8 @@ pom com.google.cloud - google-cloud-shared-config - 1.9.1 + sdk-platform-java-config + 3.34.0 Google Cloud pubsub BOM From 273fbf3f752444a397b0e743c5c6de1a539291ea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 20 Aug 2024 16:16:25 +0200 Subject: [PATCH 242/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 (#2141) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 96fde5ee4..b2c99f91e 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.33.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.34.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 7008a7215..53cd15405 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.33.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.34.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 931f9bb00..e211e47fc 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.33.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.34.0" } env_vars: { diff --git a/pom.xml b/pom.xml index e40a2b282..87805d920 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.33.0 + 3.34.0 From b06ac8861ab3200da512c1d02c04ab8a522baf40 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:32:56 -0400 Subject: [PATCH 243/656] chore: Update generation configuration at Tue Aug 20 02:18:11 UTC 2024 (#2146) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 46bf04120..9324e8340 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: 21c206f7370ed960b1c00418cb1edbdb81e3f999 +googleapis_commitish: b678386866ca6ee40c84c9043beb70992309343e libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub From c597e350a5b5dba151087ca3ff36fd85866ec722 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:18:11 -0400 Subject: [PATCH 244/656] chore(main): release 1.132.1 (#2137) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 10 ++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f35da2d8..8f716500c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.132.1](https://github.com/googleapis/java-pubsub/compare/v1.132.0...v1.132.1) (2024-08-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.42.0 ([#2140](https://github.com/googleapis/java-pubsub/issues/2140)) ([80dca35](https://github.com/googleapis/java-pubsub/commit/80dca35cebb1061f3d2a852ff9929519e69283cc)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 ([#2141](https://github.com/googleapis/java-pubsub/issues/2141)) ([273fbf3](https://github.com/googleapis/java-pubsub/commit/273fbf3f752444a397b0e743c5c6de1a539291ea)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.3 ([#2127](https://github.com/googleapis/java-pubsub/issues/2127)) ([8523b4f](https://github.com/googleapis/java-pubsub/commit/8523b4f67f45ac219671c0d588bac7e9dc450dcb)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.6 ([#2135](https://github.com/googleapis/java-pubsub/issues/2135)) ([102ff84](https://github.com/googleapis/java-pubsub/commit/102ff844594687b3bbaca1ff92e650fe9e8d3f1e)) + ## [1.132.0](https://github.com/googleapis/java-pubsub/compare/v1.131.0...v1.132.0) (2024-08-01) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 84171f9f9..3b5112056 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.1-SNAPSHOT + 1.132.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 65f673bf4..faedf32c8 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 7c3c1ec35..29e3db076 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/pom.xml b/pom.xml index 87805d920..0257f703d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.1-SNAPSHOT + 1.132.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index eae0f5a09..e630c47f4 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e95ee872a..ca72ea15b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/versions.txt b/versions.txt index e5df1af39..f41b4a364 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.0:1.132.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT +google-cloud-pubsub:1.132.1:1.132.1 +grpc-google-cloud-pubsub-v1:1.114.1:1.114.1 +proto-google-cloud-pubsub-v1:1.114.1:1.114.1 From 77c3e78d34e894c05653371027cd2b1d12cea9d0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Aug 2024 00:55:18 +0200 Subject: [PATCH 245/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.42.0 (#2145) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 57310f585..31bc07d54 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.41.0 + 2.42.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ca72ea15b..e0c8ef87f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.41.0 + 2.42.0 From 88b869a7e77796a9ff15fa4430349be4d30695ad Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Aug 2024 04:47:27 +0200 Subject: [PATCH 246/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.7.0 (#2150) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0257f703d..1fae72d3d 100644 --- a/pom.xml +++ b/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.2 + 3.7.0 From 69bf4e6abc7ea52f40da0a7ccaae2f2eab446630 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Aug 2024 04:48:21 +0200 Subject: [PATCH 247/656] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.5.0 (#2151) --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 044ce6606..8a5426171 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -74,7 +74,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.4.0 + 3.5.0 checkstyle-suppressions.xml From ad67413c78b9198014776758c5cb8b0ef2352953 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:02:18 +0200 Subject: [PATCH 248/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.1 (#2148) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 31bc07d54..95ffd3215 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1 From 32c78b31e7a904fb6b6a2b55f81e7e3ab7525add Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:29:49 +0200 Subject: [PATCH 249/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.4 (#2153) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 95ffd3215..1de50f528 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e0c8ef87f..0aba296e9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6979a3a79..1689cea94 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 From 3aaea75f9fa050b949c9367a04af6fc7ce835315 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:30:07 +0200 Subject: [PATCH 250/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.45.0 (#2154) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1689cea94..5a0f18673 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.44.0 + 26.45.0 pom import From 1457489cb51c12bc7ad8ab8ddcf2252a2f513a79 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 23:21:37 +0200 Subject: [PATCH 251/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 (#2152) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1de50f528..0d38d3809 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.0 + 2.42.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0aba296e9..e3c42ecb2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.0 + 2.42.1 com.google.cloud From f67937e45b50359baf548b0503835787294e59f0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:21:49 -0400 Subject: [PATCH 252/656] chore: Update generation configuration at Wed Aug 28 02:20:05 UTC 2024 (#2149) * chore: Update generation configuration at Wed Aug 21 02:18:16 UTC 2024 * chore: Update generation configuration at Fri Aug 23 02:18:32 UTC 2024 * chore: Update generation configuration at Sat Aug 24 02:18:04 UTC 2024 * chore: Update generation configuration at Tue Aug 27 02:19:29 UTC 2024 * chore: Update generation configuration at Wed Aug 28 02:20:05 UTC 2024 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 9324e8340..9db6c1b1f 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: b678386866ca6ee40c84c9043beb70992309343e +googleapis_commitish: a8f277295c12490d49c196b791e2101500864c30 libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub From dc85b1ba120ec1c2514388df6ebccfae24ef1e05 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 29 Aug 2024 13:31:34 -0400 Subject: [PATCH 253/656] chore: Regenerate us-states.proto to no longer reference removed methods (#2068) * chore: Regenerate us-states.proto to no longer reference removed methods * chore: Fix formatting for StateProto.java * chore: Change protobuf for StateProto.java version to 3.25.3 * chore: Reformat StateProto.java * chore: Regenerate us-states.proto with protobuf v27.4 * chore: Revert StateProto generation to use protobuf v25.4 --- .../src/main/java/utilities/StateProto.java | 480 +++++++++--------- 1 file changed, 232 insertions(+), 248 deletions(-) diff --git a/samples/snippets/src/main/java/utilities/StateProto.java b/samples/snippets/src/main/java/utilities/StateProto.java index 60701da37..8c9ece5de 100644 --- a/samples/snippets/src/main/java/utilities/StateProto.java +++ b/samples/snippets/src/main/java/utilities/StateProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,9 +14,6 @@ * limitations under the License. */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: us-states.proto - /** * This file is created using protoc. * @@ -27,59 +24,63 @@ *

`protoc --proto_path=src/main/resources/ --java_out=src/main/java/ * src/main/resources/us-states.proto` */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: us-states.proto + +// Protobuf Java Version: 3.25.4 package utilities; public final class StateProto { private StateProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface StateOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface StateOrBuilder extends // @@protoc_insertion_point(interface_extends:utilities.State) com.google.protobuf.MessageOrBuilder { /** * string name = 1; - * * @return The name. */ java.lang.String getName(); /** * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** * string post_abbr = 2; - * * @return The postAbbr. */ java.lang.String getPostAbbr(); /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ - com.google.protobuf.ByteString getPostAbbrBytes(); + com.google.protobuf.ByteString + getPostAbbrBytes(); } - /** Protobuf type {@code utilities.State} */ - public static final class State extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code utilities.State} + */ + public static final class State extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private State() { name_ = ""; postAbbr_ = ""; @@ -87,67 +88,13 @@ private State() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new State(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private State( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - postAbbr_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -160,10 +107,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * string name = 1; - * * @return The name. */ @java.lang.Override @@ -172,7 +119,8 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -180,15 +128,16 @@ public java.lang.String getName() { } /** * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -197,10 +146,10 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int POST_ABBR_FIELD_NUMBER = 2; - private volatile java.lang.Object postAbbr_; + @SuppressWarnings("serial") + private volatile java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; - * * @return The postAbbr. */ @java.lang.Override @@ -209,7 +158,8 @@ public java.lang.String getPostAbbr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -217,15 +167,16 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ @java.lang.Override - public com.google.protobuf.ByteString getPostAbbrBytes() { + public com.google.protobuf.ByteString + getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -234,7 +185,6 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,14 +196,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getPostAbbrBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAbbr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postAbbr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -262,13 +213,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getPostAbbrBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAbbr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postAbbr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -276,16 +227,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof utilities.StateProto.State)) { return super.equals(obj); } utilities.StateProto.State other = (utilities.StateProto.State) obj; - if (!getName().equals(other.getName())) return false; - if (!getPostAbbr().equals(other.getPostAbbr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPostAbbr() + .equals(other.getPostAbbr())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,98 +253,95 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + POST_ABBR_FIELD_NUMBER; hash = (53 * hash) + getPostAbbr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static utilities.StateProto.State parseFrom(java.nio.ByteBuffer data) + public static utilities.StateProto.State parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static utilities.StateProto.State parseFrom(com.google.protobuf.ByteString data) + public static utilities.StateProto.State parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static utilities.StateProto.State parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static utilities.StateProto.State parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static utilities.StateProto.State parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static utilities.StateProto.State parseFrom(com.google.protobuf.CodedInputStream input) + public static utilities.StateProto.State parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static utilities.StateProto.State parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(utilities.StateProto.State prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -400,13 +350,15 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code utilities.State} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code utilities.State} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:utilities.State) utilities.StateProto.StateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -420,30 +372,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using utilities.StateProto.State.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); + bitField0_ = 0; name_ = ""; - postAbbr_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -464,51 +412,57 @@ public utilities.StateProto.State build() { @java.lang.Override public utilities.StateProto.State buildPartial() { utilities.StateProto.State result = new utilities.StateProto.State(this); - result.name_ = name_; - result.postAbbr_ = postAbbr_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(utilities.StateProto.State result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.postAbbr_ = postAbbr_; + } + } + @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) { + 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) { + 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) { + 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) { + 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) { + 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 utilities.StateProto.State) { - return mergeFrom((utilities.StateProto.State) other); + return mergeFrom((utilities.StateProto.State)other); } else { super.mergeFrom(other); return this; @@ -519,13 +473,15 @@ public Builder mergeFrom(utilities.StateProto.State other) { if (other == utilities.StateProto.State.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPostAbbr().isEmpty()) { postAbbr_ = other.postAbbr_; + bitField0_ |= 0x00000002; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -540,30 +496,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - utilities.StateProto.State parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + postAbbr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (utilities.StateProto.State) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -573,14 +553,15 @@ public java.lang.String getName() { } /** * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -589,43 +570,38 @@ public com.google.protobuf.ByteString getNameBytes() { } /** * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,13 +609,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; - * * @return The postAbbr. */ public java.lang.String getPostAbbr() { java.lang.Object ref = postAbbr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -649,14 +625,15 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ - public com.google.protobuf.ByteString getPostAbbrBytes() { + public com.google.protobuf.ByteString + getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -665,47 +642,41 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { } /** * string post_abbr = 2; - * * @param value The postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPostAbbr( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } postAbbr_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * string post_abbr = 2; - * * @return This builder for chaining. */ public Builder clearPostAbbr() { - postAbbr_ = getDefaultInstance().getPostAbbr(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string post_abbr = 2; - * * @param value The bytes for postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostAbbrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - postAbbr_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -718,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:utilities.State) } // @@protoc_insertion_point(class_scope:utilities.State) private static final utilities.StateProto.State DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new utilities.StateProto.State(); } @@ -732,16 +703,27 @@ public static utilities.StateProto.State getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public State parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new State(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,35 +738,37 @@ public com.google.protobuf.Parser getParserForType() { public utilities.StateProto.State getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_utilities_State_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_utilities_State_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_utilities_State_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" - + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" - + "rotob\006proto3" + "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + + "rotob\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_utilities_State_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_utilities_State_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_utilities_State_descriptor, - new java.lang.String[] { - "Name", "PostAbbr", - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_utilities_State_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_utilities_State_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_utilities_State_descriptor, + new java.lang.String[] { "Name", "PostAbbr", }); } // @@protoc_insertion_point(outer_class_scope) From 5f61fe13f6fea1d30ab0e85be0221e70056369f6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Aug 2024 20:18:47 +0200 Subject: [PATCH 254/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.0 (#2155) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0d38d3809..3baaaaaba 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e3c42ecb2..c47b50709 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5a0f18673..b5255702d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 From 32bed515b853c45dbc25052981c6db673941c4af Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 5 Sep 2024 13:16:50 -0400 Subject: [PATCH 255/656] chore: remove unused image tag in .OwlBot-hermetic.yaml (#2160) This removes the unused image tag in this file. Part of the cleanup after enabling Hermetic Library generation in this repo. Newline at EOF automatically added - see [this SO](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline). --- .github/.OwlBot-hermetic.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/.OwlBot-hermetic.yaml b/.github/.OwlBot-hermetic.yaml index d9ed293ca..1757987e4 100644 --- a/.github/.OwlBot-hermetic.yaml +++ b/.github/.OwlBot-hermetic.yaml @@ -11,10 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" - deep-remove-regex: - "/grpc-google-.*/src" - "/proto-google-.*/src" From d671347004a68c53cdf3fdfb9d1a7ed992ee162f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 6 Sep 2024 00:02:19 +0200 Subject: [PATCH 256/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 (#2157) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3baaaaaba..416f737a7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.1 + 2.42.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c47b50709..b25cbbc10 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.1 + 2.42.2 com.google.cloud From 5df73ec1ed5651f941278429ae72e05414bdc86c Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:49:18 -0400 Subject: [PATCH 257/656] chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024 (#2156) * chore: Update generation configuration at Thu Aug 29 02:21:05 UTC 2024 * chore: Update generation configuration at Fri Aug 30 02:21:44 UTC 2024 * chore: Update generation configuration at Sat Aug 31 02:20:41 UTC 2024 * chore: Update generation configuration at Wed Sep 4 02:21:45 UTC 2024 * chore: Update generation configuration at Thu Sep 5 02:22:12 UTC 2024 * chore: Update generation configuration at Fri Sep 6 02:22:02 UTC 2024 * chore: Update generation configuration at Sat Sep 7 02:20:17 UTC 2024 * chore: Update generation configuration at Sun Sep 8 02:25:47 UTC 2024 * chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024 --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 9db6c1b1f..93004daf5 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: a8f277295c12490d49c196b791e2101500864c30 -libraries_bom_version: 26.44.0 +googleapis_commitish: 32bc03653260356351854429bd7e2dfbf670d352 +libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 4b22dbf08b4d76811f1354823644d95e550fb884 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:16:21 -0400 Subject: [PATCH 258/656] chore: Update generation configuration at Tue Sep 10 17:20:38 UTC 2024 (#2164) --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 93004daf5..090a13e62 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.44.0 -googleapis_commitish: 32bc03653260356351854429bd7e2dfbf670d352 +gapic_generator_version: 2.45.0 +googleapis_commitish: 02f62c8e241a9f95f0d183785354e90e35388cbd libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From 3d3e484a71f25032e436712d25722cbde9d57e6f Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 10 Sep 2024 15:28:01 -0400 Subject: [PATCH 259/656] samples: Add style check supressions for generated StateProto.java file (#2163) * samples: Add style check supressions for generated StateProto.java file * samples: Suppress all style checks for StateProto.java --- samples/checkstyle-suppressions.xml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/samples/checkstyle-suppressions.xml b/samples/checkstyle-suppressions.xml index 2d134a8c2..a1bfbb84a 100644 --- a/samples/checkstyle-suppressions.xml +++ b/samples/checkstyle-suppressions.xml @@ -20,15 +20,9 @@ "https://checkstyle.org/dtds/suppressions_1_2.dtd"> - - - - - - - - - + + - + + \ No newline at end of file From 27eaffd5fa55789b456eaeba98f6800343f3685e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 04:45:18 +0200 Subject: [PATCH 260/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 (#2162) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index b2c99f91e..cef56c65d 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.34.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.35.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 53cd15405..ec11dece6 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.34.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.35.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index e211e47fc..85ab5c49b 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.34.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.35.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 3b5112056..390ffa5bb 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.34.0 + 3.35.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 1fae72d3d..932da888d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.34.0 + 3.35.0 From 05a37b786686c24f87eec5e9919c16b2b67465be Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 04:51:18 +0200 Subject: [PATCH 261/656] deps: update dependency com.google.cloud:google-cloud-core to v2.43.0 (#2161) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 416f737a7..b32a1cc43 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b25cbbc10..997575346 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b5255702d..efb5ef9d1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests From e31b805c5522113c4866086e2d7061251c54afd5 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:53:54 -0400 Subject: [PATCH 262/656] chore: Update generation configuration at Wed Sep 11 02:22:19 UTC 2024 (#2166) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 090a13e62..b554feb5c 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 02f62c8e241a9f95f0d183785354e90e35388cbd +googleapis_commitish: cbf696d38a963c5ab333f85fc9a910b5698ad415 libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From e7fb60ecccb8bb9fbc6147210491a52ee0f5a817 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 21:07:46 +0200 Subject: [PATCH 263/656] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.7 (#2165) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b32a1cc43..29763d32a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 997575346..216c18a83 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index efb5ef9d1..a4b7a6efc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 com.google.protobuf From bb8ea717ed0234fdbb582f2915a016fd37657448 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 22:13:01 +0200 Subject: [PATCH 264/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.1 (#2167) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 29763d32a..1db0c3551 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 216c18a83..93fed750f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a4b7a6efc..2e69ffa83 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 From 1e9b852efad1152d654463839036b3a8b89e8f97 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:05:02 -0400 Subject: [PATCH 265/656] chore(main): release 1.132.2-SNAPSHOT (#2147) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 390ffa5bb..7fc725322 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.1 + 1.132.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index faedf32c8..200cb45f6 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 29e3db076..3cd3de4d7 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 932da888d..1c0ee1bed 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.1 + 1.132.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e630c47f4..e714f90aa 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 93fed750f..25dbe21be 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index f41b4a364..ebe6fdcb1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.1:1.132.1 -grpc-google-cloud-pubsub-v1:1.114.1:1.114.1 -proto-google-cloud-pubsub-v1:1.114.1:1.114.1 +google-cloud-pubsub:1.132.1:1.132.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT From f950708bfe1a3452f9cda16bc7eda584f483ec86 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:22:30 +0000 Subject: [PATCH 266/656] chore(main): release 1.132.2 (#2168) :robot: I have created a release *beep* *boop* --- ## [1.132.2](https://togithub.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://togithub.com/googleapis/java-pubsub/issues/2152)) ([1457489](https://togithub.com/googleapis/java-pubsub/commit/1457489cb51c12bc7ad8ab8ddcf2252a2f513a79)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://togithub.com/googleapis/java-pubsub/issues/2157)) ([d671347](https://togithub.com/googleapis/java-pubsub/commit/d671347004a68c53cdf3fdfb9d1a7ed992ee162f)) * Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://togithub.com/googleapis/java-pubsub/issues/2161)) ([05a37b7](https://togithub.com/googleapis/java-pubsub/commit/05a37b786686c24f87eec5e9919c16b2b67465be)) * Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://togithub.com/googleapis/java-pubsub/issues/2145)) ([77c3e78](https://togithub.com/googleapis/java-pubsub/commit/77c3e78d34e894c05653371027cd2b1d12cea9d0)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://togithub.com/googleapis/java-pubsub/issues/2162)) ([27eaffd](https://togithub.com/googleapis/java-pubsub/commit/27eaffd5fa55789b456eaeba98f6800343f3685e)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://togithub.com/googleapis/java-pubsub/issues/2153)) ([32c78b3](https://togithub.com/googleapis/java-pubsub/commit/32c78b31e7a904fb6b6a2b55f81e7e3ab7525add)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://togithub.com/googleapis/java-pubsub/issues/2155)) ([5f61fe1](https://togithub.com/googleapis/java-pubsub/commit/5f61fe13f6fea1d30ab0e85be0221e70056369f6)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://togithub.com/googleapis/java-pubsub/issues/2167)) ([bb8ea71](https://togithub.com/googleapis/java-pubsub/commit/bb8ea717ed0234fdbb582f2915a016fd37657448)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://togithub.com/googleapis/java-pubsub/issues/2165)) ([e7fb60e](https://togithub.com/googleapis/java-pubsub/commit/e7fb60ecccb8bb9fbc6147210491a52ee0f5a817)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f716500c..4cd8af8d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.132.2](https://github.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://github.com/googleapis/java-pubsub/issues/2152)) ([1457489](https://github.com/googleapis/java-pubsub/commit/1457489cb51c12bc7ad8ab8ddcf2252a2f513a79)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://github.com/googleapis/java-pubsub/issues/2157)) ([d671347](https://github.com/googleapis/java-pubsub/commit/d671347004a68c53cdf3fdfb9d1a7ed992ee162f)) +* Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://github.com/googleapis/java-pubsub/issues/2161)) ([05a37b7](https://github.com/googleapis/java-pubsub/commit/05a37b786686c24f87eec5e9919c16b2b67465be)) +* Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://github.com/googleapis/java-pubsub/issues/2145)) ([77c3e78](https://github.com/googleapis/java-pubsub/commit/77c3e78d34e894c05653371027cd2b1d12cea9d0)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://github.com/googleapis/java-pubsub/issues/2162)) ([27eaffd](https://github.com/googleapis/java-pubsub/commit/27eaffd5fa55789b456eaeba98f6800343f3685e)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://github.com/googleapis/java-pubsub/issues/2153)) ([32c78b3](https://github.com/googleapis/java-pubsub/commit/32c78b31e7a904fb6b6a2b55f81e7e3ab7525add)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://github.com/googleapis/java-pubsub/issues/2155)) ([5f61fe1](https://github.com/googleapis/java-pubsub/commit/5f61fe13f6fea1d30ab0e85be0221e70056369f6)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://github.com/googleapis/java-pubsub/issues/2167)) ([bb8ea71](https://github.com/googleapis/java-pubsub/commit/bb8ea717ed0234fdbb582f2915a016fd37657448)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://github.com/googleapis/java-pubsub/issues/2165)) ([e7fb60e](https://github.com/googleapis/java-pubsub/commit/e7fb60ecccb8bb9fbc6147210491a52ee0f5a817)) + ## [1.132.1](https://github.com/googleapis/java-pubsub/compare/v1.132.0...v1.132.1) (2024-08-20) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7fc725322..992115ba7 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.2-SNAPSHOT + 1.132.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 200cb45f6..e70609f2d 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 3cd3de4d7..47dd149d3 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/pom.xml b/pom.xml index 1c0ee1bed..7f12aa704 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.2-SNAPSHOT + 1.132.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e714f90aa..3cb4f3bc0 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 25dbe21be..d26f7a438 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/versions.txt b/versions.txt index ebe6fdcb1..714f58fc6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.1:1.132.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT +google-cloud-pubsub:1.132.2:1.132.2 +grpc-google-cloud-pubsub-v1:1.114.2:1.114.2 +proto-google-cloud-pubsub-v1:1.114.2:1.114.2 From 9026384f76648450a8e321ccd2fd14c43fce7954 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:48:28 +0000 Subject: [PATCH 267/656] chore(main): release 1.132.3-SNAPSHOT (#2169) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 992115ba7..49f8c69c3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.2 + 1.132.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index e70609f2d..ed0eca848 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 47dd149d3..90a0a921a 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7f12aa704..f9327b2da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.2 + 1.132.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3cb4f3bc0..69eeaeeb0 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d26f7a438..5aab3cf19 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 714f58fc6..c85921913 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.2:1.132.2 -grpc-google-cloud-pubsub-v1:1.114.2:1.114.2 -proto-google-cloud-pubsub-v1:1.114.2:1.114.2 +google-cloud-pubsub:1.132.2:1.132.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT From 7ffc0244d66e76e00a76102afe1fec870acc2aff Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 12 Sep 2024 19:47:50 +0000 Subject: [PATCH 268/656] chore: Add Clirr exemptions for Protobuf 4.27.4+ runtime (#2172) --- .../clirr-ignored-differences.xml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml index 223719761..75ea618ea 100644 --- a/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -16,4 +16,66 @@ com/google/pubsub/v1/*OrBuilder boolean has*(*) + + + + 7006 + com/google/pubsub/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/pubsub/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clear() + ** + + + 7006 + com/google/pubsub/v1/** + * clearField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clone() + ** + + + 7006 + com/google/pubsub/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setUnknownFields(*) + ** + From c4f043491f4f493bb30a081917948a9009101af9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 05:37:19 +0200 Subject: [PATCH 269/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.2 (#2170) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1db0c3551..1cabc63bc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2 From 294d03974ab236c2ee5d0e420e8913eb6fc65fc9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:04:30 +0200 Subject: [PATCH 270/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 (#2173) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1cabc63bc..3a85a597f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.2 + 2.42.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5aab3cf19..59142bdfe 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.2 + 2.42.3 com.google.cloud From cbd7370016416e13c5be14c9d0bf7d8b85e3b830 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:24:49 +0200 Subject: [PATCH 271/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.46.0 (#2176) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2e69ffa83..5ed61f6df 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.45.0 + 26.46.0 pom import From ae800d7b3ffd19302b416f03fad8b20e93afce8f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:25:02 +0200 Subject: [PATCH 272/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.0 (#2174) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3a85a597f..8f49b8c25 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.42.0 + 2.43.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 59142bdfe..a07675f1e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.42.0 + 2.43.0 From 21a4c8de8ab12181a5ff47a259b1974628d39f4a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 18 Sep 2024 00:25:25 -0400 Subject: [PATCH 273/656] chore: Update generation configuration at Wed Sep 18 02:23:27 UTC 2024 (#2171) * chore: Update generation configuration at Thu Sep 12 02:22:51 UTC 2024 * chore: Update generation configuration at Fri Sep 13 02:23:36 UTC 2024 * chore: Update generation configuration at Sat Sep 14 02:21:46 UTC 2024 * chore: Update generation configuration at Mon Sep 16 02:28:10 UTC 2024 * chore: Update generation configuration at Tue Sep 17 02:11:14 UTC 2024 * chore: Update generation configuration at Wed Sep 18 02:23:27 UTC 2024 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index b554feb5c..77ea2c732 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: cbf696d38a963c5ab333f85fc9a910b5698ad415 +googleapis_commitish: 42219196a8f02e2e17198ad88f4369324dfe1f09 libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From f72889a9fedf3cca26cdd2ba2dca89d16a819566 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 19 Sep 2024 16:06:38 +0200 Subject: [PATCH 274/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.47.0 (#2180) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5ed61f6df..6f2fc3afc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.46.0 + 26.47.0 pom import From c9bbd2cf3525e3ebdf9ce3af7fe50a16a87c9837 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 19 Sep 2024 16:07:01 +0200 Subject: [PATCH 275/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.2 (#2179) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8f49b8c25..4c57cb7a1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a07675f1e..651e9f1b0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6f2fc3afc..d410346b0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 From 9005df68b7b287003eaffd5cd0b8374a071ba6ad Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:07:15 -0400 Subject: [PATCH 276/656] chore: Update generation configuration at Thu Sep 19 02:24:56 UTC 2024 (#2181) --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 77ea2c732..514c96d4b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 42219196a8f02e2e17198ad88f4369324dfe1f09 -libraries_bom_version: 26.45.0 +googleapis_commitish: 607c2ae82620153880a66898bcbf0a46d38d7d10 +libraries_bom_version: 26.46.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From dbf34fdb5ed2d573cf67a5760d701d7b121fc1c3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:40:50 -0400 Subject: [PATCH 277/656] chore: Update generation configuration at Sat Sep 21 02:27:55 UTC 2024 (#2182) * chore: Update generation configuration at Fri Sep 20 02:24:38 UTC 2024 * chore: Update generation configuration at Sat Sep 21 02:27:55 UTC 2024 --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 514c96d4b..37c2a59f1 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 607c2ae82620153880a66898bcbf0a46d38d7d10 -libraries_bom_version: 26.46.0 +googleapis_commitish: a18d9b2c3563527b26c4b713469e795b92795271 +libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From faecb3b90cb259ae376b8481ec30511ce19279bf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Sep 2024 21:41:14 +0200 Subject: [PATCH 278/656] deps: update dependency com.google.cloud:google-cloud-core to v2.44.0 (#2184) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4c57cb7a1..8b27dc121 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 651e9f1b0..28146f4e3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d410346b0..95cf2cb98 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests From 5ca2c7c52497514af30e4522f0ae245d0f8d73ce Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Sep 2024 21:41:31 +0200 Subject: [PATCH 279/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 (#2185) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index cef56c65d..721e0301f 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.35.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index ec11dece6..1f52e93ed 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.35.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 85ab5c49b..bf7743f74 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.35.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 49f8c69c3..af66a2f7e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.35.0 + 3.36.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index f9327b2da..17973fd64 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.35.0 + 3.36.0 From f9c9502e89014de3cd60b0c923727743a4050a0f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:20:24 -0400 Subject: [PATCH 280/656] chore: Update generation configuration at Tue Sep 24 21:08:11 UTC 2024 (#2187) chore: Update generation configuration at Tue Sep 24 21:08:11 UTC 2024 --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 37c2a59f1..66fd8ce27 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.45.0 -googleapis_commitish: a18d9b2c3563527b26c4b713469e795b92795271 +gapic_generator_version: 2.46.0 +googleapis_commitish: 69e9dff10df4fa1e338712d38dc26b46791a6e94 libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub From cca587a54def2a7402666b7216da3e69983253e3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:58:41 -0400 Subject: [PATCH 281/656] chore: Update generation configuration at Wed Sep 25 02:27:20 UTC 2024 (#2188) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 66fd8ce27..166cf28a7 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.46.0 -googleapis_commitish: 69e9dff10df4fa1e338712d38dc26b46791a6e94 +googleapis_commitish: 5c181aaf78bd1ae2e08c3a2971cd9e87b6e00986 libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub From 9ea45dc13f11076890cfff35e7acf2eafc2af70a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 26 Sep 2024 17:21:47 +0200 Subject: [PATCH 282/656] deps: update dependency com.google.cloud:google-cloud-core to v2.44.1 (#2190) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8b27dc121..44a881ea1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 28146f4e3..4c41fb2d0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 95cf2cb98..608cef864 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests From 1b09421898d92acc5bcbeafc51c0f5cc7260fcd6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:23:38 -0400 Subject: [PATCH 283/656] chore: Update generation configuration at Wed Sep 25 23:44:01 UTC 2024 (#2189) * chore: Update generation configuration at Wed Sep 25 23:44:01 UTC 2024 * update gen script * update gen workflow * chore: generate libraries at Wed Sep 25 23:48:28 UTC 2024 --------- Co-authored-by: Joe Wang --- .../scripts/hermetic_library_generation.sh | 45 +- .../hermetic_library_generation.yaml | 7 +- README.md | 12 +- generation_config.yaml | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 17 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 + .../pubsub/v1/SubscriptionAdminSettings.java | 17 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 17 +- .../pubsub/v1/stub/PublisherStubSettings.java | 29 +- .../v1/stub/SchemaServiceStubSettings.java | 25 +- .../v1/stub/SubscriberStubSettings.java | 25 +- .../reflect-config.json | 144 + .../SubscriptionAdminClientHttpJsonTest.java | 18 + .../v1/SubscriptionAdminClientTest.java | 14 + .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 2 +- .../v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 5519 ++++++++++++++++- .../IngestionDataSourceSettingsOrBuilder.java | 87 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../pubsub/v1/PlatformLogsSettings.java | 833 +++ .../v1/PlatformLogsSettingsOrBuilder.java | 55 + .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 906 +-- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 1245 +++- .../pubsub/v1/SubscriptionOrBuilder.java | 53 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 142 +- 145 files changed, 8750 insertions(+), 722 deletions(-) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index 6c3f22d8f..49a7414cf 100644 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -67,20 +67,24 @@ message="chore: generate libraries at $(date)" git checkout "${target_branch}" git checkout "${current_branch}" -# if the last commit doesn't contain changes to generation configuration, -# do not generate again as the result will be the same. -change_of_last_commit="$(git diff-tree --no-commit-id --name-only HEAD~1..HEAD -r)" -if [[ ! ("${change_of_last_commit}" == *"${generation_config}"*) ]]; then - echo "The last commit doesn't contain any changes to the generation_config.yaml, skipping the whole generation process." || true - exit 0 -fi + # copy generation configuration from target branch to current branch. git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" -config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) # parse image tag from the generation configuration. image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) +repo_root_dir=$(pwd) +mkdir -p "${repo_root_dir}/output" +# download api definitions from googleapis repository +googleapis_commitish=$(grep googleapis_commitish "${generation_config}" | cut -d ":" -f 2 | xargs) +api_def_dir=$(mktemp -d) +git clone https://github.com/googleapis/googleapis.git "${api_def_dir}" +pushd "${api_def_dir}" +git checkout "${googleapis_commitish}" +cp -r google/ grafeas/ "${repo_root_dir}/output" +popd + # run hermetic code generation docker image. docker run \ --rm \ @@ -90,26 +94,21 @@ docker run \ --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ --current-generation-config-path="${workspace_name}/${generation_config}" +# remove api definitions after generation +rm -rf "${api_def_dir}" # commit the change to the pull request. -if [[ $(basename $(pwd)) == "google-cloud-java" ]]; then - git add java-* pom.xml gapic-libraries-bom/pom.xml versions.txt -else - # The image leaves intermediate folders and files it works with. Here we remove them - rm -rdf output googleapis "${baseline_generation_config}" - git add --all -- ':!pr_description.txt' -fi +rm -rdf output googleapis "${baseline_generation_config}" +git add --all -- ':!pr_description.txt' ':!hermetic_library_generation.sh' changed_files=$(git diff --cached --name-only) -if [[ "${changed_files}" == "" ]]; then - echo "There is no generated code change with the generation config change ${config_diff}." - echo "Skip committing to the pull request." - exit 0 +if [[ "${changed_files}" != "" ]]; then + echo "Commit changes..." + git commit -m "${message}" + git push +else + echo "There is no generated code change, skip commit." fi -echo "Configuration diff:" -echo "${config_diff}" -git commit -m "${message}" -git push # set pr body if pr_description.txt is generated. if [[ -f "pr_description.txt" ]]; then pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index ab23b9fec..51a087f8e 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -20,11 +20,10 @@ on: env: HEAD_REF: ${{ github.head_ref }} REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} + GITHUB_REPOSITORY: ${{ github.repository }} jobs: library_generation: - # skip pull requests coming from a forked repository - if: github.env.REPO_FULL_NAME == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -35,6 +34,10 @@ jobs: shell: bash run: | set -ex + if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then + echo "This PR comes from a fork. Generation will be skipped" + exit 0 + fi [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/hermetic_library_generation.sh \ diff --git a/README.md b/README.md index bdb7167a8..c2585d3b6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.44.0 + 26.47.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.2 ``` @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.44.0') +implementation platform('com.google.cloud:libraries-bom:26.47.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.2" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/generation_config.yaml b/generation_config.yaml index 166cf28a7..726eccc07 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.46.0 -googleapis_commitish: 5c181aaf78bd1ae2e08c3a2971cd9e87b6e00986 +googleapis_commitish: 005df4681b89bd204a90b76168a6dc9d9e7bf4fe libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index e2dd281e0..103dee29d 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -72,7 +72,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSchema: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -88,10 +90,21 @@
  *             .createSchemaSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SchemaServiceSettings extends ClientSettings { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 8f2323217..97d94c0e9 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -878,6 +878,8 @@ public final Subscription createSubscription( * .setDetached(true) * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + * .setAnalyticsHubSubscriptionInfo( + * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1141,6 +1143,8 @@ public final Subscription createSubscription( * .setDetached(true) * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + * .setAnalyticsHubSubscriptionInfo( + * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 306237dcb..c2c8d217d 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -80,7 +80,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSubscription: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -97,10 +99,21 @@
  *             .createSubscriptionSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SubscriptionAdminSettings extends ClientSettings { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 9c82ebce0..08c00b2d1 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -73,7 +73,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTopic: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -89,10 +91,21 @@
  *             .createTopicSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class TopicAdminSettings extends ClientSettings { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index bc169972d..f8bb0b2ca 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -100,7 +100,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTopic: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -116,10 +118,21 @@
  *             .createTopicSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class PublisherStubSettings extends StubSettings { @@ -182,9 +195,7 @@ public String extractNextToken(ListTopicsResponse payload) { @Override public Iterable extractResources(ListTopicsResponse payload) { - return payload.getTopicsList() == null - ? ImmutableList.of() - : payload.getTopicsList(); + return payload.getTopicsList(); } }; @@ -224,9 +235,7 @@ public String extractNextToken(ListTopicSubscriptionsResponse payload) { @Override public Iterable extractResources(ListTopicSubscriptionsResponse payload) { - return payload.getSubscriptionsList() == null - ? ImmutableList.of() - : payload.getSubscriptionsList(); + return payload.getSubscriptionsList(); } }; @@ -263,9 +272,7 @@ public String extractNextToken(ListTopicSnapshotsResponse payload) { @Override public Iterable extractResources(ListTopicSnapshotsResponse payload) { - return payload.getSnapshotsList() == null - ? ImmutableList.of() - : payload.getSnapshotsList(); + return payload.getSnapshotsList(); } }; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 1ab1f310a..074f2b8f7 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -90,7 +90,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSchema: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -107,10 +109,21 @@
  *             .createSchemaSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SchemaServiceStubSettings extends StubSettings { @@ -171,9 +184,7 @@ public String extractNextToken(ListSchemasResponse payload) { @Override public Iterable extractResources(ListSchemasResponse payload) { - return payload.getSchemasList() == null - ? ImmutableList.of() - : payload.getSchemasList(); + return payload.getSchemasList(); } }; @@ -211,9 +222,7 @@ public String extractNextToken(ListSchemaRevisionsResponse payload) { @Override public Iterable extractResources(ListSchemaRevisionsResponse payload) { - return payload.getSchemasList() == null - ? ImmutableList.of() - : payload.getSchemasList(); + return payload.getSchemasList(); } }; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 40d5a4b54..7677a796f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -98,7 +98,9 @@ *

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSubscription: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -115,10 +117,21 @@
  *             .createSubscriptionSettings()
  *             .getRetrySettings()
  *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
  * SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
  * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SubscriberStubSettings extends StubSettings { @@ -190,9 +203,7 @@ public String extractNextToken(ListSubscriptionsResponse payload) { @Override public Iterable extractResources(ListSubscriptionsResponse payload) { - return payload.getSubscriptionsList() == null - ? ImmutableList.of() - : payload.getSubscriptionsList(); + return payload.getSubscriptionsList(); } }; @@ -226,9 +237,7 @@ public String extractNextToken(ListSnapshotsResponse payload) { @Override public Iterable extractResources(ListSnapshotsResponse payload) { - return payload.getSnapshotsList() == null - ? ImmutableList.of() - : payload.getSnapshotsList(); + return payload.getSnapshotsList(); } }; diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index de5e1f2be..97fb8db41 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -305,6 +305,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ResourceDescriptor", "queryAllDeclaredConstructors": true, @@ -1871,6 +1889,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$AvroFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$AvroFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$PubSubAvroFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$PubSubAvroFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$TextFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$TextFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2177,6 +2276,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings$Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.PublishRequest", "queryAllDeclaredConstructors": true, @@ -2600,6 +2726,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.Subscription$AnalyticsHubSubscriptionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Subscription$AnalyticsHubSubscriptionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.Subscription$Builder", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 1943554ac..3c0516832 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -131,6 +131,8 @@ public void createSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -198,6 +200,8 @@ public void createSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -265,6 +269,8 @@ public void createSubscriptionTest3() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -332,6 +338,8 @@ public void createSubscriptionTest4() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -399,6 +407,8 @@ public void getSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -459,6 +469,8 @@ public void getSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -519,6 +531,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -541,6 +555,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -589,6 +605,8 @@ public void updateSubscriptionExceptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 470a26334..5136ecd1b 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -157,6 +157,8 @@ public void createSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -221,6 +223,8 @@ public void createSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -285,6 +289,8 @@ public void createSubscriptionTest3() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -349,6 +355,8 @@ public void createSubscriptionTest4() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -413,6 +421,8 @@ public void getSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -467,6 +477,8 @@ public void getSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -521,6 +533,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 4f66e8146..1f62eb3ed 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 1d48237ec..d68356fe1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 8ed6a70c0..7e22cfa02 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index b11f601a0..f9c4eb555 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 03a1ff96d..a90d77109 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index bb76b4aa1..71eeb90b4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 8af8ad8a1..d6c14b342 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 3feee9c44..99b6a5cd0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 19da2b62b..619234747 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index bc5cd73c5..244ba5160 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f75b1df94..71be3fe16 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index bfe921c62..534be54bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 639fce2d9..b96e7ace6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ad73317d2..ed5509aab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 8341b02b4..f85adc58b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 018f05f72..513d1cc69 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 993b6fbc7..d8a7dc832 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 659f15af1..1a7006cc6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 01b9a533a..d69f8530d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index a44ce2bad..ecaa5ecc7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 101dcfb2c..6726b4fc3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index a60aff79b..e97be3071 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index ae7f1d5c7..cd5232d4e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 9968722bd..2900017e2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index fefc483da..bfb983560 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 7d15bd620..fb7690b35 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index f6be4bc4b..69c19fac1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 0c5a283e4..136f6e620 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index bbab1ca1f..baf416761 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index b6d38a700..17c3e0753 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 5e758a97e..9a0d2e9d4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index f1fa3abf3..5a80fc97e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 1557c9b32..aca52209a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 5ab32b1b7..dc0fb2a57 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index e3cfbecae..13775aea3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index af067371c..8e40e7537 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 090018fc7..0991d70f4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 2c88ff2d2..514c24e3f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 477adf413..23d05e8cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 8a3cfc182..17e7384ee 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -1836,6 +1836,4646 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultIns } } + public interface CloudStorageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Cloud
+     * Storage ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Cloud
+     * Storage ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState(); + + /** + * + * + *
+     * Optional. Cloud Storage bucket. The bucket name must be without any
+     * prefix like "gs://". See the [bucket naming requirements]
+     * (https://cloud.google.com/storage/docs/buckets#naming).
+     * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
+     * Optional. Cloud Storage bucket. The bucket name must be without any
+     * prefix like "gs://". See the [bucket naming requirements]
+     * (https://cloud.google.com/storage/docs/buckets#naming).
+     * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + boolean hasTextFormat(); + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat getTextFormat(); + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder(); + + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + boolean hasAvroFormat(); + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat getAvroFormat(); + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder(); + + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + boolean hasPubsubAvroFormat(); + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat(); + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder(); + + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + boolean hasMinimumObjectCreateTime(); + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + com.google.protobuf.Timestamp getMinimumObjectCreateTime(); + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder(); + + /** + * + * + *
+     * Optional. Glob pattern used to match objects that will be ingested. If
+     * unset, all objects will be ingested. See the [supported
+     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+     * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + java.lang.String getMatchGlob(); + /** + * + * + *
+     * Optional. Glob pattern used to match objects that will be ingested. If
+     * unset, all objects will be ingested. See the [supported
+     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+     * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + com.google.protobuf.ByteString getMatchGlobBytes(); + + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.InputFormatCase + getInputFormatCase(); + } + /** + * + * + *
+   * Ingestion settings for Cloud Storage.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} + */ + public static final class CloudStorage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + CloudStorageOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorage.newBuilder() to construct. + private CloudStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorage() { + state_ = 0; + bucket_ = ""; + matchGlob_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder.class); + } + + /** + * + * + *
+     * Possible states for ingestion from Cloud Storage.
+     * 
+ * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+       * Permission denied encountered while calling the Cloud Storage API. This
+       * can happen if the Pub/Sub SA has not been granted the
+       * [appropriate
+       * permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions):
+       * - storage.objects.list: to list the objects in a bucket.
+       * - storage.objects.get: to read the objects in a bucket.
+       * - storage.buckets.get: to verify the bucket exists.
+       * 
+ * + * CLOUD_STORAGE_PERMISSION_DENIED = 2; + */ + CLOUD_STORAGE_PERMISSION_DENIED(2), + /** + * + * + *
+       * Permission denied encountered while publishing to the topic. This can
+       * happen if the Pub/Sub SA has not been granted the [appropriate publish
+       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
+       * The provided Cloud Storage bucket doesn't exist.
+       * 
+ * + * BUCKET_NOT_FOUND = 4; + */ + BUCKET_NOT_FOUND(4), + /** + * + * + *
+       * The Cloud Storage bucket has too many objects, ingestion will be
+       * paused.
+       * 
+ * + * TOO_MANY_OBJECTS = 5; + */ + TOO_MANY_OBJECTS(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+       * Permission denied encountered while calling the Cloud Storage API. This
+       * can happen if the Pub/Sub SA has not been granted the
+       * [appropriate
+       * permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions):
+       * - storage.objects.list: to list the objects in a bucket.
+       * - storage.objects.get: to read the objects in a bucket.
+       * - storage.buckets.get: to verify the bucket exists.
+       * 
+ * + * CLOUD_STORAGE_PERMISSION_DENIED = 2; + */ + public static final int CLOUD_STORAGE_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
+       * Permission denied encountered while publishing to the topic. This can
+       * happen if the Pub/Sub SA has not been granted the [appropriate publish
+       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
+       * The provided Cloud Storage bucket doesn't exist.
+       * 
+ * + * BUCKET_NOT_FOUND = 4; + */ + public static final int BUCKET_NOT_FOUND_VALUE = 4; + /** + * + * + *
+       * The Cloud Storage bucket has too many objects, ingestion will be
+       * paused.
+       * 
+ * + * TOO_MANY_OBJECTS = 5; + */ + public static final int TOO_MANY_OBJECTS_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CLOUD_STORAGE_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return BUCKET_NOT_FOUND; + case 5: + return TOO_MANY_OBJECTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State) + } + + public interface TextFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + boolean hasDelimiter(); + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + java.lang.String getDelimiter(); + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + com.google.protobuf.ByteString getDelimiterBytes(); + } + /** + * + * + *
+     * Configuration for reading Cloud Storage data in text format. Each line of
+     * text as specified by the delimiter will be set to the `data` field of a
+     * Pub/Sub message.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} + */ + public static final class TextFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + TextFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextFormat.newBuilder() to construct. + private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextFormat() { + delimiter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + .class); + } + + private int bitField0_; + public static final int DELIMITER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object delimiter_ = ""; + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + @java.lang.Override + public boolean hasDelimiter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + @java.lang.Override + public java.lang.String getDelimiter() { + java.lang.Object ref = delimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + delimiter_ = s; + return s; + } + } + /** + * + * + *
+       * Optional. When unset, '\n' is used.
+       * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiterBytes() { + java.lang.Object ref = delimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + delimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delimiter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delimiter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) obj; + + if (hasDelimiter() != other.hasDelimiter()) return false; + if (hasDelimiter()) { + if (!getDelimiter().equals(other.getDelimiter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDelimiter()) { + hash = (37 * hash) + DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getDelimiter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat 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 for reading Cloud Storage data in text format. Each line of
+       * text as specified by the delimiter will be set to the `data` field of a
+       * Pub/Sub message.
+       * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + delimiter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.delimiter_ = delimiter_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance()) return this; + if (other.hasDelimiter()) { + delimiter_ = other.delimiter_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object delimiter_ = ""; + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + public boolean hasDelimiter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + public java.lang.String getDelimiter() { + java.lang.Object ref = delimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + delimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + public com.google.protobuf.ByteString getDelimiterBytes() { + java.lang.Object ref = delimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + delimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + delimiter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDelimiter() { + delimiter_ = getDefaultInstance().getDelimiter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. When unset, '\n' is used.
+         * 
+ * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delimiter_ = value; + bitField0_ |= 0x00000001; + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvroFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * Configuration for reading Cloud Storage data in Avro binary format. The
+     * bytes of each object will be set to the `data` field of a Pub/Sub
+     * message.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} + */ + public static final class AvroFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + AvroFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroFormat.newBuilder() to construct. + private AvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroFormat() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat 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 for reading Cloud Storage data in Avro binary format. The
+       * bytes of each object will be set to the `data` field of a Pub/Sub
+       * message.
+       * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PubSubAvroFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * Configuration for reading Cloud Storage data written via [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The
+     * data and attributes fields of the originally exported Pub/Sub message
+     * will be restored when publishing.
+     * 
+ * + * Protobuf type {@code + * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} + */ + public static final class PubSubAvroFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + PubSubAvroFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSubAvroFormat.newBuilder() to construct. + private PubSubAvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubSubAvroFormat() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSubAvroFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + 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 for reading Cloud Storage data written via [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The
+       * data and attributes fields of the originally exported Pub/Sub message
+       * will be restored when publishing.
+       * 
+ * + * Protobuf type {@code + * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubAvroFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int inputFormatCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inputFormat_; + + public enum InputFormatCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_FORMAT(3), + AVRO_FORMAT(4), + PUBSUB_AVRO_FORMAT(5), + INPUTFORMAT_NOT_SET(0); + private final int value; + + private InputFormatCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputFormatCase valueOf(int value) { + return forNumber(value); + } + + public static InputFormatCase forNumber(int value) { + switch (value) { + case 3: + return TEXT_FORMAT; + case 4: + return AVRO_FORMAT; + case 5: + return PUBSUB_AVRO_FORMAT; + case 0: + return INPUTFORMAT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputFormatCase getInputFormatCase() { + return InputFormatCase.forNumber(inputFormatCase_); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Cloud
+     * Storage ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Cloud
+     * Storage ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED + : result; + } + + public static final int BUCKET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
+     * Optional. Cloud Storage bucket. The bucket name must be without any
+     * prefix like "gs://". See the [bucket naming requirements]
+     * (https://cloud.google.com/storage/docs/buckets#naming).
+     * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Cloud Storage bucket. The bucket name must be without any
+     * prefix like "gs://". See the [bucket naming requirements]
+     * (https://cloud.google.com/storage/docs/buckets#naming).
+     * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FORMAT_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + @java.lang.Override + public boolean hasTextFormat() { + return inputFormatCase_ == 3; + } + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getTextFormat() { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted as text.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder() { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + + public static final int AVRO_FORMAT_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + @java.lang.Override + public boolean hasAvroFormat() { + return inputFormatCase_ == 4; + } + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getAvroFormat() { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional. Data from Cloud Storage will be interpreted in Avro format.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder() { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + + public static final int PUBSUB_AVRO_FORMAT_FIELD_NUMBER = 5; + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + @java.lang.Override + public boolean hasPubsubAvroFormat() { + return inputFormatCase_ == 5; + } + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat() { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional. It will be assumed data from Cloud Storage was written via
+     * [Cloud Storage
+     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder() { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + + public static final int MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp minimumObjectCreateTime_; + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + @java.lang.Override + public boolean hasMinimumObjectCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + /** + * + * + *
+     * Optional. Only objects with a larger or equal creation timestamp will be
+     * ingested.
+     * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder() { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + + public static final int MATCH_GLOB_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchGlob_ = ""; + /** + * + * + *
+     * Optional. Glob pattern used to match objects that will be ingested. If
+     * unset, all objects will be ingested. See the [supported
+     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+     * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + @java.lang.Override + public java.lang.String getMatchGlob() { + java.lang.Object ref = matchGlob_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchGlob_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Glob pattern used to match objects that will be ingested. If
+     * unset, all objects will be ingested. See the [supported
+     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+     * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchGlobBytes() { + java.lang.Object ref = matchGlob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_); + } + if (inputFormatCase_ == 3) { + output.writeMessage( + 3, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_); + } + if (inputFormatCase_ == 4) { + output.writeMessage( + 4, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_); + } + if (inputFormatCase_ == 5) { + output.writeMessage( + 5, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getMinimumObjectCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchGlob_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_); + } + if (inputFormatCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_); + } + if (inputFormatCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_); + } + if (inputFormatCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMinimumObjectCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchGlob_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) obj; + + if (state_ != other.state_) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (hasMinimumObjectCreateTime() != other.hasMinimumObjectCreateTime()) return false; + if (hasMinimumObjectCreateTime()) { + if (!getMinimumObjectCreateTime().equals(other.getMinimumObjectCreateTime())) return false; + } + if (!getMatchGlob().equals(other.getMatchGlob())) return false; + if (!getInputFormatCase().equals(other.getInputFormatCase())) return false; + switch (inputFormatCase_) { + case 3: + if (!getTextFormat().equals(other.getTextFormat())) return false; + break; + case 4: + if (!getAvroFormat().equals(other.getAvroFormat())) return false; + break; + case 5: + if (!getPubsubAvroFormat().equals(other.getPubsubAvroFormat())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + if (hasMinimumObjectCreateTime()) { + hash = (37 * hash) + MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMinimumObjectCreateTime().hashCode(); + } + hash = (37 * hash) + MATCH_GLOB_FIELD_NUMBER; + hash = (53 * hash) + getMatchGlob().hashCode(); + switch (inputFormatCase_) { + case 3: + hash = (37 * hash) + TEXT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getTextFormat().hashCode(); + break; + case 4: + hash = (37 * hash) + AVRO_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getAvroFormat().hashCode(); + break; + case 5: + hash = (37 * hash) + PUBSUB_AVRO_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getPubsubAvroFormat().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage 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; + } + /** + * + * + *
+     * Ingestion settings for Cloud Storage.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMinimumObjectCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + bucket_ = ""; + if (textFormatBuilder_ != null) { + textFormatBuilder_.clear(); + } + if (avroFormatBuilder_ != null) { + avroFormatBuilder_.clear(); + } + if (pubsubAvroFormatBuilder_ != null) { + pubsubAvroFormatBuilder_.clear(); + } + minimumObjectCreateTime_ = null; + if (minimumObjectCreateTimeBuilder_ != null) { + minimumObjectCreateTimeBuilder_.dispose(); + minimumObjectCreateTimeBuilder_ = null; + } + matchGlob_ = ""; + inputFormatCase_ = 0; + inputFormat_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bucket_ = bucket_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.minimumObjectCreateTime_ = + minimumObjectCreateTimeBuilder_ == null + ? minimumObjectCreateTime_ + : minimumObjectCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.matchGlob_ = matchGlob_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result) { + result.inputFormatCase_ = inputFormatCase_; + result.inputFormat_ = this.inputFormat_; + if (inputFormatCase_ == 3 && textFormatBuilder_ != null) { + result.inputFormat_ = textFormatBuilder_.build(); + } + if (inputFormatCase_ == 4 && avroFormatBuilder_ != null) { + result.inputFormat_ = avroFormatBuilder_.build(); + } + if (inputFormatCase_ == 5 && pubsubAvroFormatBuilder_ != null) { + result.inputFormat_ = pubsubAvroFormatBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionDataSourceSettings.CloudStorage) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMinimumObjectCreateTime()) { + mergeMinimumObjectCreateTime(other.getMinimumObjectCreateTime()); + } + if (!other.getMatchGlob().isEmpty()) { + matchGlob_ = other.matchGlob_; + bitField0_ |= 0x00000040; + onChanged(); + } + switch (other.getInputFormatCase()) { + case TEXT_FORMAT: + { + mergeTextFormat(other.getTextFormat()); + break; + } + case AVRO_FORMAT: + { + mergeAvroFormat(other.getAvroFormat()); + break; + } + case PUBSUB_AVRO_FORMAT: + { + mergePubsubAvroFormat(other.getPubsubAvroFormat()); + break; + } + case INPUTFORMAT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getTextFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getPubsubAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getMinimumObjectCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 74: + { + matchGlob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int inputFormatCase_ = 0; + private java.lang.Object inputFormat_; + + public InputFormatCase getInputFormatCase() { + return InputFormatCase.forNumber(inputFormatCase_); + } + + public Builder clearInputFormat() { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Cloud
+       * Storage ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Cloud
+       * Storage ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Cloud
+       * Storage ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Cloud
+       * Storage ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Cloud
+       * Storage ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object bucket_ = ""; + /** + * + * + *
+       * Optional. Cloud Storage bucket. The bucket name must be without any
+       * prefix like "gs://". See the [bucket naming requirements]
+       * (https://cloud.google.com/storage/docs/buckets#naming).
+       * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Cloud Storage bucket. The bucket name must be without any
+       * prefix like "gs://". See the [bucket naming requirements]
+       * (https://cloud.google.com/storage/docs/buckets#naming).
+       * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Cloud Storage bucket. The bucket name must be without any
+       * prefix like "gs://". See the [bucket naming requirements]
+       * (https://cloud.google.com/storage/docs/buckets#naming).
+       * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Cloud Storage bucket. The bucket name must be without any
+       * prefix like "gs://". See the [bucket naming requirements]
+       * (https://cloud.google.com/storage/docs/buckets#naming).
+       * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Cloud Storage bucket. The bucket name must be without any
+       * prefix like "gs://". See the [bucket naming requirements]
+       * (https://cloud.google.com/storage/docs/buckets#naming).
+       * 
+ * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> + textFormatBuilder_; + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + @java.lang.Override + public boolean hasTextFormat() { + return inputFormatCase_ == 3; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getTextFormat() { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 3) { + return textFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat value) { + if (textFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + textFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + builderForValue) { + if (textFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + textFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat value) { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 3) { + textFormatBuilder_.mergeFrom(value); + } else { + textFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTextFormat() { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 3) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + textFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + getTextFormatBuilder() { + return getTextFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder() { + if ((inputFormatCase_ == 3) && (textFormatBuilder_ != null)) { + return textFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted as text.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> + getTextFormatFieldBuilder() { + if (textFormatBuilder_ == null) { + if (!(inputFormatCase_ == 3)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + textFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .TextFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 3; + onChanged(); + return textFormatBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> + avroFormatBuilder_; + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + @java.lang.Override + public boolean hasAvroFormat() { + return inputFormatCase_ == 4; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getAvroFormat() { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 4) { + return avroFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat value) { + if (avroFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + avroFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + builderForValue) { + if (avroFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + avroFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat value) { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 4) { + avroFormatBuilder_.mergeFrom(value); + } else { + avroFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFormat() { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 4) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + avroFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + getAvroFormatBuilder() { + return getAvroFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder() { + if ((inputFormatCase_ == 4) && (avroFormatBuilder_ != null)) { + return avroFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Data from Cloud Storage will be interpreted in Avro format.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> + getAvroFormatFieldBuilder() { + if (avroFormatBuilder_ == null) { + if (!(inputFormatCase_ == 4)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + avroFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .AvroFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 4; + onChanged(); + return avroFormatBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder> + pubsubAvroFormatBuilder_; + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + @java.lang.Override + public boolean hasPubsubAvroFormat() { + return inputFormatCase_ == 5; + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat() { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 5) { + return pubsubAvroFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat value) { + if (pubsubAvroFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + pubsubAvroFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.Builder + builderForValue) { + if (pubsubAvroFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + pubsubAvroFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat value) { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 5) { + pubsubAvroFormatBuilder_.mergeFrom(value); + } else { + pubsubAvroFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPubsubAvroFormat() { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 5) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + pubsubAvroFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.Builder + getPubsubAvroFormatBuilder() { + return getPubsubAvroFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder() { + if ((inputFormatCase_ == 5) && (pubsubAvroFormatBuilder_ != null)) { + return pubsubAvroFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. It will be assumed data from Cloud Storage was written via
+       * [Cloud Storage
+       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder> + getPubsubAvroFormatFieldBuilder() { + if (pubsubAvroFormatBuilder_ == null) { + if (!(inputFormatCase_ == 5)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + pubsubAvroFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 5; + onChanged(); + return pubsubAvroFormatBuilder_; + } + + private com.google.protobuf.Timestamp minimumObjectCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + minimumObjectCreateTimeBuilder_; + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + public boolean hasMinimumObjectCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { + if (minimumObjectCreateTimeBuilder_ == null) { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } else { + return minimumObjectCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { + if (minimumObjectCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minimumObjectCreateTime_ = value; + } else { + minimumObjectCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinimumObjectCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (minimumObjectCreateTimeBuilder_ == null) { + minimumObjectCreateTime_ = builderForValue.build(); + } else { + minimumObjectCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { + if (minimumObjectCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && minimumObjectCreateTime_ != null + && minimumObjectCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMinimumObjectCreateTimeBuilder().mergeFrom(value); + } else { + minimumObjectCreateTime_ = value; + } + } else { + minimumObjectCreateTimeBuilder_.mergeFrom(value); + } + if (minimumObjectCreateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMinimumObjectCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + minimumObjectCreateTime_ = null; + if (minimumObjectCreateTimeBuilder_ != null) { + minimumObjectCreateTimeBuilder_.dispose(); + minimumObjectCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMinimumObjectCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder() { + if (minimumObjectCreateTimeBuilder_ != null) { + return minimumObjectCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + } + /** + * + * + *
+       * Optional. Only objects with a larger or equal creation timestamp will be
+       * ingested.
+       * 
+ * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMinimumObjectCreateTimeFieldBuilder() { + if (minimumObjectCreateTimeBuilder_ == null) { + minimumObjectCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMinimumObjectCreateTime(), getParentForChildren(), isClean()); + minimumObjectCreateTime_ = null; + } + return minimumObjectCreateTimeBuilder_; + } + + private java.lang.Object matchGlob_ = ""; + /** + * + * + *
+       * Optional. Glob pattern used to match objects that will be ingested. If
+       * unset, all objects will be ingested. See the [supported
+       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+       * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + public java.lang.String getMatchGlob() { + java.lang.Object ref = matchGlob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchGlob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Glob pattern used to match objects that will be ingested. If
+       * unset, all objects will be ingested. See the [supported
+       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+       * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + public com.google.protobuf.ByteString getMatchGlobBytes() { + java.lang.Object ref = matchGlob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Glob pattern used to match objects that will be ingested. If
+       * unset, all objects will be ingested. See the [supported
+       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+       * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The matchGlob to set. + * @return This builder for chaining. + */ + public Builder setMatchGlob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchGlob_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Glob pattern used to match objects that will be ingested. If
+       * unset, all objects will be ingested. See the [supported
+       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+       * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMatchGlob() { + matchGlob_ = getDefaultInstance().getMatchGlob(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Glob pattern used to match objects that will be ingested. If
+       * unset, all objects will be ingested. See the [supported
+       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
+       * 
+ * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for matchGlob to set. + * @return This builder for chaining. + */ + public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchGlob_ = value; + bitField0_ |= 0x00000040; + 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.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int sourceCase_ = 0; @SuppressWarnings("serial") @@ -1846,6 +6486,7 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AWS_KINESIS(1), + CLOUD_STORAGE(2), SOURCE_NOT_SET(0); private final int value; @@ -1866,78 +6507,197 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return AWS_KINESIS; + case 2: + return CLOUD_STORAGE; case 0: return SOURCE_NOT_SET; default: return null; } } - - public int getNumber() { - return this.value; + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + @java.lang.Override + public boolean hasCloudStorage() { + return sourceCase_ == 2; + } + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - public static final int AWS_KINESIS_FIELD_NUMBER = 1; + public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; + private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; /** * * *
-   * Optional. Amazon Kinesis Data Streams.
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
    * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the platformLogsSettings field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasPlatformLogsSettings() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Optional. Amazon Kinesis Data Streams.
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
    * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The platformLogsSettings. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; - } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; } /** * * *
-   * Optional. Amazon Kinesis Data Streams.
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
    * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; - } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder() { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; } private byte memoizedIsInitialized = -1; @@ -1957,6 +6717,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 1) { output.writeMessage(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } + if (sourceCase_ == 2) { + output.writeMessage( + 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPlatformLogsSettings()); + } getUnknownFields().writeTo(output); } @@ -1971,6 +6738,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPlatformLogsSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1987,11 +6763,18 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.IngestionDataSourceSettings other = (com.google.pubsub.v1.IngestionDataSourceSettings) obj; + if (hasPlatformLogsSettings() != other.hasPlatformLogsSettings()) return false; + if (hasPlatformLogsSettings()) { + if (!getPlatformLogsSettings().equals(other.getPlatformLogsSettings())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: if (!getAwsKinesis().equals(other.getAwsKinesis())) return false; break; + case 2: + if (!getCloudStorage().equals(other.getCloudStorage())) return false; + break; case 0: default: } @@ -2006,11 +6789,19 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPlatformLogsSettings()) { + hash = (37 * hash) + PLATFORM_LOGS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPlatformLogsSettings().hashCode(); + } switch (sourceCase_) { case 1: hash = (37 * hash) + AWS_KINESIS_FIELD_NUMBER; hash = (53 * hash) + getAwsKinesis().hashCode(); break; + case 2: + hash = (37 * hash) + CLOUD_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorage().hashCode(); + break; case 0: default: } @@ -2143,10 +6934,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlatformLogsSettingsFieldBuilder(); + } } @java.lang.Override @@ -2156,6 +6956,14 @@ public Builder clear() { if (awsKinesisBuilder_ != null) { awsKinesisBuilder_.clear(); } + if (cloudStorageBuilder_ != null) { + cloudStorageBuilder_.clear(); + } + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } sourceCase_ = 0; source_ = null; return this; @@ -2195,6 +7003,15 @@ public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.platformLogsSettings_ = + platformLogsSettingsBuilder_ == null + ? platformLogsSettings_ + : platformLogsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { @@ -2203,6 +7020,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { result.source_ = awsKinesisBuilder_.build(); } + if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { + result.source_ = cloudStorageBuilder_.build(); + } } @java.lang.Override @@ -2251,12 +7071,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) return this; + if (other.hasPlatformLogsSettings()) { + mergePlatformLogsSettings(other.getPlatformLogsSettings()); + } switch (other.getSourceCase()) { case AWS_KINESIS: { mergeAwsKinesis(other.getAwsKinesis()); break; } + case CLOUD_STORAGE: + { + mergeCloudStorage(other.getCloudStorage()); + break; + } case SOURCE_NOT_SET: { break; @@ -2294,6 +7122,19 @@ public Builder mergeFrom( sourceCase_ = 1; break; } // case 10 + case 18: + { + input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + input.readMessage( + getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2324,126 +7165,360 @@ public Builder clearSource() { onChanged(); return this; } - - private int bitField0_; - + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + awsKinesisBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - awsKinesisBuilder_; + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + cloudStorageBuilder_; /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the cloudStorage field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasCloudStorage() { + return sourceCase_ == 2; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The cloudStorage. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } else { - if (sourceCase_ == 1) { - return awsKinesisBuilder_.getMessage(); + if (sourceCase_ == 2) { + return cloudStorageBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - awsKinesisBuilder_.setMessage(value); + cloudStorageBuilder_.setMessage(value); } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { - if (awsKinesisBuilder_ == null) { + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { + if (cloudStorageBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - awsKinesisBuilder_.setMessage(builderForValue.build()); + cloudStorageBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1 + public Builder mergeCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage .getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) .mergeFrom(value) .buildPartial(); } else { @@ -2451,39 +7526,39 @@ public Builder mergeAwsKinesis( } onChanged(); } else { - if (sourceCase_ == 1) { - awsKinesisBuilder_.mergeFrom(value); + if (sourceCase_ == 2) { + cloudStorageBuilder_.mergeFrom(value); } else { - awsKinesisBuilder_.setMessage(value); + cloudStorageBuilder_.setMessage(value); } } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { + public Builder clearCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 1) { + if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; } - awsKinesisBuilder_.clear(); + cloudStorageBuilder_.clear(); } return this; } @@ -2491,74 +7566,288 @@ public Builder clearAwsKinesis() { * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder - getAwsKinesisBuilder() { - return getAwsKinesisFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder + getCloudStorageBuilder() { + return getCloudStorageFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { - return awsKinesisBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { + return cloudStorageBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Cloud Storage.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - getAwsKinesisFieldBuilder() { - if (awsKinesisBuilder_ == null) { - if (!(sourceCase_ == 1)) { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + getCloudStorageFieldBuilder() { + if (cloudStorageBuilder_ == null) { + if (!(sourceCase_ == 2)) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - awsKinesisBuilder_ = + cloudStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 1; + sourceCase_ = 2; onChanged(); - return awsKinesisBuilder_; + return cloudStorageBuilder_; + } + + private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> + platformLogsSettingsBuilder_; + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the platformLogsSettings field is set. + */ + public boolean hasPlatformLogsSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The platformLogsSettings. + */ + public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { + if (platformLogsSettingsBuilder_ == null) { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; + } else { + return platformLogsSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { + if (platformLogsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + platformLogsSettings_ = value; + } else { + platformLogsSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlatformLogsSettings( + com.google.pubsub.v1.PlatformLogsSettings.Builder builderForValue) { + if (platformLogsSettingsBuilder_ == null) { + platformLogsSettings_ = builderForValue.build(); + } else { + platformLogsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { + if (platformLogsSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && platformLogsSettings_ != null + && platformLogsSettings_ + != com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) { + getPlatformLogsSettingsBuilder().mergeFrom(value); + } else { + platformLogsSettings_ = value; + } + } else { + platformLogsSettingsBuilder_.mergeFrom(value); + } + if (platformLogsSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPlatformLogsSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPlatformLogsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder() { + if (platformLogsSettingsBuilder_ != null) { + return platformLogsSettingsBuilder_.getMessageOrBuilder(); + } else { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; + } + } + /** + * + * + *
+     * Optional. Platform Logs settings. If unset, no Platform Logs will be
+     * generated.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> + getPlatformLogsSettingsFieldBuilder() { + if (platformLogsSettingsBuilder_ == null) { + platformLogsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder>( + getPlatformLogsSettings(), getParentForChildren(), isClean()); + platformLogsSettings_ = null; + } + return platformLogsSettingsBuilder_; } @java.lang.Override diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index c6692f6d7..28c04d607 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder @@ -65,5 +65,90 @@ public interface IngestionDataSourceSettingsOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + boolean hasCloudStorage(); + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage(); + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder getCloudStorageOrBuilder(); + + /** + * + * + *
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the platformLogsSettings field is set. + */ + boolean hasPlatformLogsSettings(); + /** + * + * + *
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The platformLogsSettings. + */ + com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings(); + /** + * + * + *
+   * Optional. Platform Logs settings. If unset, no Platform Logs will be
+   * generated.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder(); + com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3541d809e..3d406f6bf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index ec720f4a0..2fa49de7d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 5f0076d91..50e5dd19d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 73ca9e9d5..cadb88f17 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 228b2b8e7..d1c082ca8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index c8beb87f1..571e88b81 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index e1985e768..581624bcc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 10e0d8f72..b2145b6ac 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 383e5e1bf..7a1cf826a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 311c46a99..1fce5f0b0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 4ee7a9731..74fed6e23 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index b0aeb8451..d53121a32 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 1f2da3141..c2c66a388 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index e61355550..3dd31b9e7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 378d58683..c0ce6fc00 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 35cb35bf2..20b021f93 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index d4b4177c4..f39c3c4b6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 8bab402b9..6844d32f0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 1abe84406..1a8092115 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index da03f0c90..5b80ee609 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index f69a0ddce..021630379 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 7a0b69c80..f25ea7858 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 1b4360644..dcb6c60f4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index a4e5ea441..3f6ad98e1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index c9c87d9cc..c36f242a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 95973fc94..267473b95 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 020257e5e..aca359bbf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 06f99a155..29832578e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 164d2c67c..59aa717bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 60f6836e7..fb791a330 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index fc1736758..b9417cac9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 231ad9471..c148ebc72 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index b02b89d09..54cab839b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index ac09ebafa..29779beff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java new file mode 100644 index 000000000..a63c3a4df --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -0,0 +1,833 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
+ * Settings for Platform Logs produced by Pub/Sub.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} + */ +public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PlatformLogsSettings) + PlatformLogsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlatformLogsSettings.newBuilder() to construct. + private PlatformLogsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PlatformLogsSettings() { + severity_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PlatformLogsSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PlatformLogsSettings.class, + com.google.pubsub.v1.PlatformLogsSettings.Builder.class); + } + + /** + * + * + *
+   * Severity levels of Platform Logs.
+   * 
+ * + * Protobuf enum {@code google.pubsub.v1.PlatformLogsSettings.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Logs level is unspecified. Logs will be disabled.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+     * Logs will be disabled.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Debug logs and higher-severity logs will be written.
+     * 
+ * + * DEBUG = 2; + */ + DEBUG(2), + /** + * + * + *
+     * Info logs and higher-severity logs will be written.
+     * 
+ * + * INFO = 3; + */ + INFO(3), + /** + * + * + *
+     * Warning logs and higher-severity logs will be written.
+     * 
+ * + * WARNING = 4; + */ + WARNING(4), + /** + * + * + *
+     * Only error logs will be written.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. Logs level is unspecified. Logs will be disabled.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Logs will be disabled.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Debug logs and higher-severity logs will be written.
+     * 
+ * + * DEBUG = 2; + */ + public static final int DEBUG_VALUE = 2; + /** + * + * + *
+     * Info logs and higher-severity logs will be written.
+     * 
+ * + * INFO = 3; + */ + public static final int INFO_VALUE = 3; + /** + * + * + *
+     * Warning logs and higher-severity logs will be written.
+     * 
+ * + * WARNING = 4; + */ + public static final int WARNING_VALUE = 4; + /** + * + * + *
+     * Only error logs will be written.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return DEBUG; + case 3: + return INFO; + case 4: + return WARNING; + case 5: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.PlatformLogsSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.PlatformLogsSettings.Severity) + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_ = 0; + /** + * + * + *
+   * Optional. The minimum severity level of Platform Logs that will be written.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+   * Optional. The minimum severity level of Platform Logs that will be written.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { + com.google.pubsub.v1.PlatformLogsSettings.Severity result = + com.google.pubsub.v1.PlatformLogsSettings.Severity.forNumber(severity_); + return result == null + ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.pubsub.v1.PlatformLogsSettings.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, severity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ + != com.google.pubsub.v1.PlatformLogsSettings.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PlatformLogsSettings)) { + return super.equals(obj); + } + com.google.pubsub.v1.PlatformLogsSettings other = + (com.google.pubsub.v1.PlatformLogsSettings) obj; + + if (severity_ != other.severity_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings 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.pubsub.v1.PlatformLogsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings 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.pubsub.v1.PlatformLogsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings 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.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings 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.pubsub.v1.PlatformLogsSettings 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; + } + /** + * + * + *
+   * Settings for Platform Logs produced by Pub/Sub.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PlatformLogsSettings) + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PlatformLogsSettings.class, + com.google.pubsub.v1.PlatformLogsSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.PlatformLogsSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + severity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings build() { + com.google.pubsub.v1.PlatformLogsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings buildPartial() { + com.google.pubsub.v1.PlatformLogsSettings result = + new com.google.pubsub.v1.PlatformLogsSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.PlatformLogsSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; + } + } + + @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.pubsub.v1.PlatformLogsSettings) { + return mergeFrom((com.google.pubsub.v1.PlatformLogsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PlatformLogsSettings other) { + if (other == com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int severity_ = 0; + /** + * + * + *
+     * Optional. The minimum severity level of Platform Logs that will be written.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+     * Optional. The minimum severity level of Platform Logs that will be written.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The minimum severity level of Platform Logs that will be written.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { + com.google.pubsub.v1.PlatformLogsSettings.Severity result = + com.google.pubsub.v1.PlatformLogsSettings.Severity.forNumber(severity_); + return result == null + ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The minimum severity level of Platform Logs that will be written.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.pubsub.v1.PlatformLogsSettings.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The minimum severity level of Platform Logs that will be written.
+     * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PlatformLogsSettings) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PlatformLogsSettings) + private static final com.google.pubsub.v1.PlatformLogsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PlatformLogsSettings(); + } + + public static com.google.pubsub.v1.PlatformLogsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlatformLogsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java new file mode 100644 index 000000000..fbaf39e00 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface PlatformLogsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PlatformLogsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The minimum severity level of Platform Logs that will be written.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
+   * Optional. The minimum severity level of Platform Logs that will be written.
+   * 
+ * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index c49e55ce5..3d14d1cb7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index cbf6e94e8..612be7a12 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 4f188d836..d9a71ff8b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 550873767..0b9a71790 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 04dbbf6f6..b97bf7147 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index f5bd6a3e2..763d033d3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 2acb26179..5a149347f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public final class PubsubProto { @@ -44,6 +44,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Subscription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -300,360 +324,392 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\352\003\n\033IngestionDataSourceSetting" + + " \001(\tB\003\340A\001\"\251\013\n\033IngestionDataSourceSetting" + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesis" - + "B\003\340A\001H\000\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>." - + "google.pubsub.v1.IngestionDataSourceSett" - + "ings.AwsKinesis.StateB\003\340A\003\022\027\n\nstream_arn" - + "\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031" - + "\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service" - + "_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERM" - + "ISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DE" - + "NIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER" - + "_NOT_FOUND\020\005B\010\n\006source\"\272\005\n\005Topic\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pub" - + "sub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message" - + "_storage_policy\030\003 \001(\0132&.google.pubsub.v1" - + ".MessageStoragePolicyB\003\340A\001\022\031\n\014kms_key_na" - + "me\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 " - + ".google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n" - + "\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_ret" - + "ention_duration\030\010 \001(\0132\031.google.protobuf." - + "DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pu" - + "bsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_da" - + "ta_source_settings\030\n \001(\0132-.google.pubsub" - + ".v1.IngestionDataSourceSettingsB\003\340A\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352" - + "AQ\n\033pubsub.googleapis.com/Topic\022!project" - + "s/{project}/topics/{topic}\022\017_deleted-top" - + "ic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001" - + "\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1." - + "PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nme" - + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\031\n\014ordering_key" - + "\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReques" - + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005t" - + "opic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topi" - + "c\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" - + "opic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub.v" - + "1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse\022" - + "\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopics" - + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" - + "\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030\001" - + " \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSu" - + "bscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A" - + "\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_s" + + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." + + "pubsub.v1.IngestionDataSourceSettings.Cl" + + "oudStorageB\003\340A\001H\000\022K\n\026platform_logs_setti" + + "ngs\030\004 \001(\0132&.google.pubsub.v1.PlatformLog" + + "sSettingsB\003\340A\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001" + + " \001(\0162>.google.pubsub.v1.IngestionDataSou" + + "rceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\nstr" + + "eam_arn\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\t" + + "B\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_" + + "service_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINES" + + "IS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" + + "SION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022C" + + "ONSUMER_NOT_FOUND\020\005\032\225\006\n\014CloudStorage\022T\n\005" + + "state\030\001 \001(\0162@.google.pubsub.v1.Ingestion" + + "DataSourceSettings.CloudStorage.StateB\003\340" + + "A\003\022\023\n\006bucket\030\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003" + + " \001(\0132E.google.pubsub.v1.IngestionDataSou" + + "rceSettings.CloudStorage.TextFormatB\003\340A\001" + + "H\000\022a\n\013avro_format\030\004 \001(\0132E.google.pubsub." + + "v1.IngestionDataSourceSettings.CloudStor" + + "age.AvroFormatB\003\340A\001H\000\022n\n\022pubsub_avro_for" + + "mat\030\005 \001(\0132K.google.pubsub.v1.IngestionDa" + + "taSourceSettings.CloudStorage.PubSubAvro" + + "FormatB\003\340A\001H\000\022C\n\032minimum_object_create_t" + + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\001\022\027\n\nmatch_glob\030\t \001(\tB\003\340A\001\0327\n\nTextForma" + + "t\022\033\n\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delim" + + "iter\032\014\n\nAvroFormat\032\022\n\020PubSubAvroFormat\"\232" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022#\n\037CLOUD_STORAGE_PERMISSION_DENIED\020\002" + + "\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n\020BUCKE" + + "T_NOT_FOUND\020\004\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014i" + + "nput_formatB\010\n\006source\"\277\001\n\024PlatformLogsSe" + + "ttings\022F\n\010severity\030\001 \001(\0162/.google.pubsub" + + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" + + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" + + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" + + "NG\020\004\022\t\n\005ERROR\020\005\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub.v1." + + "Topic.LabelsEntryB\003\340A\001\022K\n\026message_storag" + + "e_policy\030\003 \001(\0132&.google.pubsub.v1.Messag" + + "eStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(" + + "\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .google" + + ".pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisf" + + "ies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" + + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" + + "nB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1" + + ".Topic.StateB\003\340A\003\022Z\n\036ingestion_data_sour" + + "ce_settings\030\n \001(\0132-.google.pubsub.v1.Ing" + + "estionDataSourceSettingsB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" + + "\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\200\002\n" + + "\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\natt" + + "ributes\030\002 \003(\0132/.google.pubsub.v1.PubsubM" + + "essage.AttributesEntryB\003\340A\001\022\022\n\nmessage_i" + + "d\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB" + + "\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005to" + + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" + + "/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 " + + "\001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\t" + + "B#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n" + + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsu" + + "bMessageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013mess" + + "age_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest" + + "\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresource" + + "manager.googleapis.com/Project\022\026\n\tpage_s" + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" - + "\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rsu" - + "bscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.google" - + "apis.com/Subscription\022\034\n\017next_page_token" - + "\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReques" + + "`\n\022ListTopicsResponse\022,\n\006topics\030\001 \003(\0132\027." + + "google.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page" + + "_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscript" + + "ionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubs" + + "ub.googleapis.com/Topic\022\026\n\tpage_size\030\002 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036Lis" + + "tTopicSubscriptionsResponse\022A\n\rsubscript" + + "ions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022\034\n\017next_page_token\030\002 \001(\tB" + + "\003\340A\001\"\200\001\n\031ListTopicSnapshotsRequest\0222\n\005to" + + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" + + "/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsRes" + + "ponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_pa" + + "ge_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicReques" + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnaps" - + "hotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopi" - + "cRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub." - + "googleapis.com/Topic\"]\n\031DetachSubscripti" - + "onRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\"\034\n\032D" - + "etachSubscriptionResponse\"\357\010\n\014Subscripti" - + "on\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A" - + "\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pus" - + "h_config\030\004 \001(\0132\034.google.pubsub.v1.PushCo" - + "nfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .goo" - + "gle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024clo" - + "ud_storage_config\030\026 \001(\0132$.google.pubsub." - + "v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadli" - + "ne_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_me" - + "ssages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_d" - + "uration\030\010 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v1" - + ".Subscription.LabelsEntryB\003\340A\001\022$\n\027enable" - + "_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirati" - + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" - + "ationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n" - + "\022dead_letter_policy\030\r \001(\0132\".google.pubsu" - + "b.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_poli" - + "cy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicyB" - + "\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_ex" - + "actly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_" - + "message_retention_duration\030\021 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162" - + "$.google.pubsub.v1.Subscription.StateB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"" - + "pubsub.googleapis.com/Subscription\022/proj" - + "ects/{project}/subscriptions/{subscripti" - + "on}\"\177\n\013RetryPolicy\0227\n\017minimum_backoff\030\001 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n\017m" - + "aximum_backoff\030\002 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead" - + "_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery" - + "_attempts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy" - + "\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 " - + "\001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.google.pu" - + "bsub.v1.PushConfig.AttributesEntryB\003\340A\001\022" - + "A\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" - + "ushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wra" - + "pper\030\004 \001(\0132*.google.pubsub.v1.PushConfig" - + ".PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(" - + "\0132&.google.pubsub.v1.PushConfig.NoWrappe" - + "rB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_account" - + "_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001" - + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" - + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" - + "tication_methodB\t\n\007wrapper\"\216\003\n\016BigQueryC" - + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" - + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" - + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" - + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" - + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" - + "\006 \001(\010B\003\340A\001\022\"\n\025service_account_email\030\007 \001(" - + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" - + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022CloudSto" - + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" - + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" - + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" - + "\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.google" - + ".pubsub.v1.CloudStorageConfig.TextConfig" - + "B\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.google.pu" - + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" - + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" - + "A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t" - + " \001(\0162*.google.pubsub.v1.CloudStorageConf" - + "ig.StateB\003\340A\003\022\"\n\025service_account_email\030\013" - + " \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n" - + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_" - + "schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DEN" - + "IED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCAT" - + "ION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017" - + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" - + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" - + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" - + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" - + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" - + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" - + "dateSubscriptionRequest\0229\n\014subscription\030" - + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" - + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" - + "ourcemanager.googleapis.com/Project\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" - + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" - + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\0226\n\013push" - + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" - + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" - + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" - + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" - + "ModifyAckDeadlineRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" - + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" - + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "pis.com/Topic\"]\n\031DetachSubscriptionReque" + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " - + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" - + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " - + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" - + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" - + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" - + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" - + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" - + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" - + "gle.pubsub.v1.StreamingPullResponse.Ackn" - + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" - + "eadline_confirmation\030\003 \001(\0132E.google.pubs" - + "ub.v1.StreamingPullResponse.ModifyAckDea" - + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" - + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" - + "mingPullResponse.SubscriptionPropertiesB" - + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" - + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" - + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" - + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" - + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" - + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" - + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" - + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" - + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" - + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" - + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" - + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." - + "pubsub.v1.CreateSnapshotRequest.LabelsEn" - + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" - + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" - + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" - + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." - + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" - + "ubsub.googleapis.com/Snapshot\022\'projects/" - + "{project}/snapshots/{snapshot}\"N\n\022GetSna" - + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" - + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" - + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" - + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" - + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" - + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" - + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" - + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" - + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" - + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" - + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," - + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" - + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." - + "pubsub.v1.PublishRequest\032!.google.pubsub" - + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" - + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" - + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." - + "GetTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" - + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" - + ".v1.ListTopicsRequest\032$.google.pubsub.v1" - + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" - + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" - + "opicSubscriptions\022/.google.pubsub.v1.Lis" - + "tTopicSubscriptionsRequest\0320.google.pubs" - + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" - + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" - + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" - + "ts\022+.google.pubsub.v1.ListTopicSnapshots" - + "Request\032,.google.pubsub.v1.ListTopicSnap" - + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" - + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" - + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" - + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" - + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" - + "\001\n\022DetachSubscription\022+.google.pubsub.v1" - + ".DetachSubscriptionRequest\032,.google.pubs" - + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" - + "\"4/v1/{subscription=projects/*/subscript" - + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" - + "\322AUhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" - + "iption\022\036.google.pubsub.v1.Subscription\032\036" - + ".google.pubsub.v1.Subscription\"^\332A+name," - + "topic,push_config,ack_deadline_seconds\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" - + "ub.v1.GetSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" - + "\223\002/\022-/v1/{subscription=projects/*/subscr" - + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" - + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" - + ".google.pubsub.v1.Subscription\"X\332A\030subsc" - + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" - + "tion.name=projects/*/subscriptions/*}:\001*" - + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" - + "1.ListSubscriptionsRequest\032+.google.pubs" - + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" - + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" - + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" - + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." - + "google.protobuf.Empty\"D\332A\014subscription\202\323" - + "\344\223\002/*-/v1/{subscription=projects/*/subsc" - + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" - + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." - + "google.protobuf.Empty\"v\332A)subscription,a" - + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + ".googleapis.com/Subscription\"\034\n\032DetachSu" + + "bscriptionResponse\"\253\n\n\014Subscription\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\0226\n\013push_confi" + + "g\030\004 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340" + + "A\001\022>\n\017bigquery_config\030\022 \001(\0132 .google.pub" + + "sub.v1.BigQueryConfigB\003\340A\001\022G\n\024cloud_stor" + + "age_config\030\026 \001(\0132$.google.pubsub.v1.Clou" + + "dStorageConfigB\003\340A\001\022!\n\024ack_deadline_seco" + + "nds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030" + + "\007 \001(\010B\003\340A\001\022B\n\032message_retention_duration" + + "\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?" + + "\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subscr" + + "iption.LabelsEntryB\003\340A\001\022$\n\027enable_messag" + + "e_ordering\030\n \001(\010B\003\340A\001\022B\n\021expiration_poli" + + "cy\030\013 \001(\0132\".google.pubsub.v1.ExpirationPo" + + "licyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_l" + + "etter_policy\030\r \001(\0132\".google.pubsub.v1.De" + + "adLetterPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(" + + "\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_o" + + "nce_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_message" + + "_retention_duration\030\021 \001(\0132\031.google.proto" + + "buf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.googl" + + "e.pubsub.v1.Subscription.StateB\003\340A\003\022i\n\037a" + + "nalytics_hub_subscription_info\030\027 \001(\0132;.g" + + "oogle.pubsub.v1.Subscription.AnalyticsHu" + + "bSubscriptionInfoB\003\340A\003\032O\n\034AnalyticsHubSu" + + "bscriptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014" + + "subscription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RE" + + "SOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleapis.c" + + "om/Subscription\022/projects/{project}/subs" + + "criptions/{subscription}\"\177\n\013RetryPolicy\022" + + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" + + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" + + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" + + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" + + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" + + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." + + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcToken" + + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" + + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" + + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" + + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" + + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" + + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" + + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" + + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" + + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" + + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" + + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" + + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" + + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" + + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" + + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" + + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" + + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" + + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" + + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" + + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" + + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" + + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" + + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" + + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" + + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" + + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" + + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" + + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" + + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" + + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" + + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" + + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" + + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" + + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" + + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" + + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" + + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" + + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" + + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." + + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" + + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\"" + + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022!\n\022retur" + + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" + + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" + + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" + + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022\024\n\007ack_i" + + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " + + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" + + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." + + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" + + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" + + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" + + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" + + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" + + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" + + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " + + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" + + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" + + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" + + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" + + "mingPullResponse.AcknowledgeConfirmation" + + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" + + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" + + "Response.ModifyAckDeadlineConfirmationB\003" + + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" + + "oogle.pubsub.v1.StreamingPullResponse.Su" + + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" + + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" + + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" + + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" + + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" + + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" + + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" + + "erties\022*\n\035exactly_once_delivery_enabled\030" + + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" + + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n\006l" + + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" + + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" + + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" + + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" + + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" + + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" + + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007" + + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025L" + + "istSnapshotsResponse\0222\n\tsnapshots\030\001 \003(\0132" + + "\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next" + + "_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshot" + + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu" + + "b.googleapis.com/Snapshot\"\306\001\n\013SeekReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022/\n\004time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n\010" + + "snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapi" + + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" + + "se2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027.google" + + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" + + "c\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/t" + + "opics/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pub" + + "sub.v1.UpdateTopicRequest\032\027.google.pubsu" + + "b.v1.Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$" + + "/v1/{topic.name=projects/*/topics/*}:\001*\022" + + "\223\001\n\007Publish\022 .google.pubsub.v1.PublishRe" + + "quest\032!.google.pubsub.v1.PublishResponse" + + "\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=pr" + + "ojects/*/topics/*}:publish:\001*\022w\n\010GetTopi" + + "c\022!.google.pubsub.v1.GetTopicRequest\032\027.g" + + "oogle.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/" + + "v1/{topic=projects/*/topics/*}\022\212\001\n\nListT" + + "opics\022#.google.pubsub.v1.ListTopicsReque" + + "st\032$.google.pubsub.v1.ListTopicsResponse" + + "\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=project" + + "s/*}/topics\022\272\001\n\026ListTopicSubscriptions\022/" + + ".google.pubsub.v1.ListTopicSubscriptions" + + "Request\0320.google.pubsub.v1.ListTopicSubs" + + "criptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{" + + "topic=projects/*/topics/*}/subscriptions" + + "\022\252\001\n\022ListTopicSnapshots\022+.google.pubsub." + + "v1.ListTopicSnapshotsRequest\032,.google.pu" + + "bsub.v1.ListTopicSnapshotsResponse\"9\332A\005t" + + "opic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" + + "/*}/snapshots\022|\n\013DeleteTopic\022$.google.pu" + + "bsub.v1.DeleteTopicRequest\032\026.google.prot" + + "obuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=p" + + "rojects/*/topics/*}\022\255\001\n\022DetachSubscripti" + + "on\022+.google.pubsub.v1.DetachSubscription" + + "Request\032,.google.pubsub.v1.DetachSubscri" + + "ptionResponse\"<\202\323\344\223\0026\"4/v1/{subscription" + + "=projects/*/subscriptions/*}:detach\032p\312A\025" + + "pubsub.googleapis.com\322AUhttps://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/pubsub2\322\025\n\nSubscr" + + "iber\022\264\001\n\022CreateSubscription\022\036.google.pub" + + "sub.v1.Subscription\032\036.google.pubsub.v1.S" + + "ubscription\"^\332A+name,topic,push_config,a" + + "ck_deadline_seconds\202\323\344\223\002*\032%/v1/{name=pro" + + "jects/*/subscriptions/*}:\001*\022\241\001\n\017GetSubsc" + + "ription\022(.google.pubsub.v1.GetSubscripti" + + "onRequest\032\036.google.pubsub.v1.Subscriptio" + + "n\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscript" + + "ion=projects/*/subscriptions/*}\022\273\001\n\022Upda" + + "teSubscription\022+.google.pubsub.v1.Update" + + "SubscriptionRequest\032\036.google.pubsub.v1.S" + + "ubscription\"X\332A\030subscription,update_mask" + + "\202\323\344\223\002722/v1/{subscription.name=projects/" + + "*/subscriptions/*}:\001*\022\246\001\n\021ListSubscripti" + + "ons\022*.google.pubsub.v1.ListSubscriptions" + + "Request\032+.google.pubsub.v1.ListSubscript" + + "ionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{pro" + + "ject=projects/*}/subscriptions\022\237\001\n\022Delet" + + "eSubscription\022+.google.pubsub.v1.DeleteS" + + "ubscriptionRequest\032\026.google.protobuf.Emp" + + "ty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{subscrip" + + "tion=projects/*/subscriptions/*}\022\317\001\n\021Mod" + + "ifyAckDeadline\022*.google.pubsub.v1.Modify" + + "AckDeadlineRequest\032\026.google.protobuf.Emp" + + "ty\"v\332A)subscription,ack_ids,ack_deadline" + + "_seconds\202\323\344\223\002D\"?/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyAckDeadline:" + + "\001*\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ac" + + "knowledgeRequest\032\026.google.protobuf.Empty" + + "\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{su" + + "bscription=projects/*/subscriptions/*}:a" + + "cknowledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v" + + "1.PullRequest\032\036.google.pubsub.v1.PullRes" + + "ponse\"\210\001\332A,subscription,return_immediate" + + "ly,max_messages\332A\031subscription,max_messa" + + "ges\202\323\344\223\0027\"2/v1/{subscription=projects/*/" + + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" + + "l\022&.google.pubsub.v1.StreamingPullReques" + + "t\032\'.google.pubsub.v1.StreamingPullRespon" + + "se\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.p" + + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" + + "e.protobuf.Empty\"d\332A\030subscription,push_c" + + "onfig\202\323\344\223\002C\">/v1/{subscription=projects/" + + "*/subscriptions/*}:modifyPushConfig:\001*\022\211" + + "\001\n\013GetSnapshot\022$.google.pubsub.v1.GetSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=proje" + + "cts/*/snapshots/*}\022\226\001\n\rListSnapshots\022&.g" + + "oogle.pubsub.v1.ListSnapshotsRequest\032\'.g" + + "oogle.pubsub.v1.ListSnapshotsResponse\"4\332" + + "A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*" + + "}/snapshots\022\227\001\n\016CreateSnapshot\022\'.google." + + "pubsub.v1.CreateSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"@\332A\021name,subscriptio" + + "n\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" + + "*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub" + + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"L\332A\024snapshot,update_mask\202\323" + + "\344\223\002/2*/v1/{snapshot.name=projects/*/snap" + + "shots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google." + + "pubsub.v1.DeleteSnapshotRequest\032\026.google" + + ".protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/" + + "{snapshot=projects/*/snapshots/*}\022\204\001\n\004Se" + + "ek\022\035.google.pubsub.v1.SeekRequest\032\036.goog" + + "le.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{" + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." - + "google.pubsub.v1.AcknowledgeRequest\032\026.go" - + "ogle.protobuf.Empty\"[\332A\024subscription,ack" - + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" - + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" - + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" - + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:pull" - + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." - + "StreamingPullRequest\032\'.google.pubsub.v1." - + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" - + "shConfig\022).google.pubsub.v1.ModifyPushCo" - + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" - + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" - + "scription=projects/*/subscriptions/*}:mo" - + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" - + "le.pubsub.v1.GetSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" - + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" - + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" - + "napshotsRequest\032\'.google.pubsub.v1.ListS" - + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" - + "{project=projects/*}/snapshots\022\227\001\n\016Creat" - + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" - + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" - + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" - + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" - + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" - + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" - + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" - + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" - + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" - + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" - + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" - + "oogleapis.com\322AUhttps://www.googleapis.c" - + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" - + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" - + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" + + ":seek:\001*\032p\312A\025pubsub.googleapis.com\322AUhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/pubs" + + "ubB\252\001\n\024com.google.pubsub.v1B\013PubsubProto" + + "P\001Z2cloud.google.com/go/pubsub/apiv1/pub" + + "subpb;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.", + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" + "oud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -691,7 +747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, new java.lang.String[] { - "AwsKinesis", "Source", + "AwsKinesis", "CloudStorage", "PlatformLogsSettings", "Source", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor @@ -703,7 +759,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(1); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor, + new java.lang.String[] { + "State", + "Bucket", + "TextFormat", + "AvroFormat", + "PubsubAvroFormat", + "MinimumObjectCreateTime", + "MatchGlob", + "InputFormat", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor, + new java.lang.String[] { + "Delimiter", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(1); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor, + new java.lang.String[] { + "Severity", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -727,7 +834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -743,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -751,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -759,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -767,7 +874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -775,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -783,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -791,7 +898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -799,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -807,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -815,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -823,7 +930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -831,7 +938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -839,13 +946,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -868,9 +975,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", "State", + "AnalyticsHubSubscriptionInfo", }); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor, + new java.lang.String[] { + "Listing", "Subscription", + }); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(1); internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, @@ -878,7 +994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -886,7 +1002,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -894,7 +1010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -902,7 +1018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -946,7 +1062,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -960,7 +1076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -993,7 +1109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1001,7 +1117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1009,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1017,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1025,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1033,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1041,7 +1157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1049,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1057,7 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1065,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1073,7 +1189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1081,7 +1197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1096,7 +1212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1131,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1147,7 +1263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1155,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1171,7 +1287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1179,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1187,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1195,7 +1311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1203,7 +1319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1211,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index aa05afd08..339188193 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4fb6915aa..bbd1aadfb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PullRequestOrBuilder @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 137ff8e9a..b8c01469c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index af3fa138a..13591fc31 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 7273fef24..c2b62ad70 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 2065ca62a..b3aec3d61 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 682c8c482..96e7b7c19 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index dcc73e449..f352ff532 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index bff5aa7ef..ba9ea8952 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 664f80bc4..3437158f7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 0b0ee8797..cde07f4aa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 9d7f1e83d..d3be6be3c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 1bf0ac5ad..52357cf32 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 12d4bb2fb..6974c7663 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index e4ea22273..4f028362a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index c375beb9a..834e3dbf2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 4189cf811..979132348 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 0a10fac7e..d2964ddc8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index a8393bb10..ce9a01558 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index a2788628c..70b5a13ae 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 79b37b7ba..9a9f4c4a3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index c47b0596e..0b47b94e2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bd753b6da..36faa854d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 2840f7849..2d406705b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index eecbd908f..48afa860b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 57c301ba9..5c4af96cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index e571996f5..d262e7ca1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 7c399b69e..a20bf8572 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 5c5c8519f..8554197d0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -241,6 +241,902 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Subscription.State) } + public interface AnalyticsHubSubscriptionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub listing resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+     * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + java.lang.String getListing(); + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub listing resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+     * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + com.google.protobuf.ByteString getListingBytes(); + + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub subscription resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+     * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub subscription resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+     * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); + } + /** + * + * + *
+   * Information about an associated Analytics Hub subscription
+   * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} + */ + public static final class AnalyticsHubSubscriptionInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + AnalyticsHubSubscriptionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyticsHubSubscriptionInfo.newBuilder() to construct. + private AnalyticsHubSubscriptionInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnalyticsHubSubscriptionInfo() { + listing_ = ""; + subscription_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnalyticsHubSubscriptionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.class, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder.class); + } + + public static final int LISTING_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object listing_ = ""; + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub listing resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+     * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + @java.lang.Override + public java.lang.String getListing() { + java.lang.Object ref = listing_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + listing_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub listing resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+     * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + @java.lang.Override + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = listing_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + listing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub subscription resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+     * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + @java.lang.Override + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the associated Analytics Hub subscription resource.
+     * Pattern:
+     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+     * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, listing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, listing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo)) { + return super.equals(obj); + } + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo other = + (com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) obj; + + if (!getListing().equals(other.getListing())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LISTING_FIELD_NUMBER; + hash = (53 * hash) + getListing().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo 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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo 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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo 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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo 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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo 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; + } + /** + * + * + *
+     * Information about an associated Analytics Hub subscription
+     * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.class, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder.class); + } + + // Construct using com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + listing_ = ""; + subscription_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstanceForType() { + return com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo build() { + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo buildPartial() { + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result = + new com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.listing_ = listing_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subscription_ = subscription_; + } + } + + @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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) { + return mergeFrom((com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo other) { + if (other + == com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance()) + return this; + if (!other.getListing().isEmpty()) { + listing_ = other.listing_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + listing_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object listing_ = ""; + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub listing resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+       * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + public java.lang.String getListing() { + java.lang.Object ref = listing_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + listing_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub listing resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+       * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = listing_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + listing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub listing resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+       * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The listing to set. + * @return This builder for chaining. + */ + public Builder setListing(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + listing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub listing resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+       * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearListing() { + listing_ = getDefaultInstance().getListing(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub listing resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
+       * 
+ * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for listing to set. + * @return This builder for chaining. + */ + public Builder setListingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subscription_ = ""; + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub subscription resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+       * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub subscription resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+       * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub subscription resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+       * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub subscription resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+       * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubscription() { + subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the associated Analytics Hub subscription resource.
+       * Pattern:
+       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
+       * 
+ * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; + bitField0_ |= 0x00000002; + 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.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + private static final com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo(); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyticsHubSubscriptionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -602,7 +1498,7 @@ public boolean getRetainAckedMessages() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. *
* * @@ -623,7 +1519,7 @@ public boolean hasMessageRetentionDuration() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. *
* * @@ -646,7 +1542,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -1234,6 +2130,68 @@ public com.google.pubsub.v1.Subscription.State getState() { return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } + public static final int ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER = 23; + private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + analyticsHubSubscriptionInfo_; + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + @java.lang.Override + public boolean hasAnalyticsHubSubscriptionInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getAnalyticsHubSubscriptionInfo() { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder() { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1301,6 +2259,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(22, getCloudStorageConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(23, getAnalyticsHubSubscriptionInfo()); + } getUnknownFields().writeTo(output); } @@ -1375,6 +2336,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, getAnalyticsHubSubscriptionInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1434,6 +2400,11 @@ public boolean equals(final java.lang.Object obj) { return false; } if (state_ != other.state_) return false; + if (hasAnalyticsHubSubscriptionInfo() != other.hasAnalyticsHubSubscriptionInfo()) return false; + if (hasAnalyticsHubSubscriptionInfo()) { + if (!getAnalyticsHubSubscriptionInfo().equals(other.getAnalyticsHubSubscriptionInfo())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1499,6 +2470,10 @@ public int hashCode() { } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (hasAnalyticsHubSubscriptionInfo()) { + hash = (37 * hash) + ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAnalyticsHubSubscriptionInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1670,6 +2645,7 @@ private void maybeForceBuilderInitialization() { getDeadLetterPolicyFieldBuilder(); getRetryPolicyFieldBuilder(); getTopicMessageRetentionDurationFieldBuilder(); + getAnalyticsHubSubscriptionInfoFieldBuilder(); } } @@ -1727,6 +2703,11 @@ public Builder clear() { topicMessageRetentionDurationBuilder_ = null; } state_ = 0; + analyticsHubSubscriptionInfo_ = null; + if (analyticsHubSubscriptionInfoBuilder_ != null) { + analyticsHubSubscriptionInfoBuilder_.dispose(); + analyticsHubSubscriptionInfoBuilder_ = null; + } return this; } @@ -1839,6 +2820,13 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00020000) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.analyticsHubSubscriptionInfo_ = + analyticsHubSubscriptionInfoBuilder_ == null + ? analyticsHubSubscriptionInfo_ + : analyticsHubSubscriptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -1946,6 +2934,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.hasAnalyticsHubSubscriptionInfo()) { + mergeAnalyticsHubSubscriptionInfo(other.getAnalyticsHubSubscriptionInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2091,6 +3082,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 178 + case 186: + { + input.readMessage( + getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3188,7 +4186,7 @@ public Builder clearRetainAckedMessages() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3208,7 +4206,7 @@ public boolean hasMessageRetentionDuration() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3234,7 +4232,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3262,7 +4260,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3288,7 +4286,7 @@ public Builder setMessageRetentionDuration( * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3321,7 +4319,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3346,7 +4344,7 @@ public Builder clearMessageRetentionDuration() { * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3366,7 +4364,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3390,7 +4388,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -5063,6 +6061,227 @@ public Builder clearState() { return this; } + private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + analyticsHubSubscriptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> + analyticsHubSubscriptionInfoBuilder_; + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + public boolean hasAnalyticsHubSubscriptionInfo() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getAnalyticsHubSubscriptionInfo() { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } else { + return analyticsHubSubscriptionInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo value) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + analyticsHubSubscriptionInfo_ = value; + } else { + analyticsHubSubscriptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder builderForValue) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + analyticsHubSubscriptionInfo_ = builderForValue.build(); + } else { + analyticsHubSubscriptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo value) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && analyticsHubSubscriptionInfo_ != null + && analyticsHubSubscriptionInfo_ + != com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + .getDefaultInstance()) { + getAnalyticsHubSubscriptionInfoBuilder().mergeFrom(value); + } else { + analyticsHubSubscriptionInfo_ = value; + } + } else { + analyticsHubSubscriptionInfoBuilder_.mergeFrom(value); + } + if (analyticsHubSubscriptionInfo_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnalyticsHubSubscriptionInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + analyticsHubSubscriptionInfo_ = null; + if (analyticsHubSubscriptionInfoBuilder_ != null) { + analyticsHubSubscriptionInfoBuilder_.dispose(); + analyticsHubSubscriptionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder + getAnalyticsHubSubscriptionInfoBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder() { + if (analyticsHubSubscriptionInfoBuilder_ != null) { + return analyticsHubSubscriptionInfoBuilder_.getMessageOrBuilder(); + } else { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + } + /** + * + * + *
+     * Output only. Information about the associated Analytics Hub subscription.
+     * Only set if the subscritpion is created by Analytics Hub.
+     * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> + getAnalyticsHubSubscriptionInfoFieldBuilder() { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + analyticsHubSubscriptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder>( + getAnalyticsHubSubscriptionInfo(), getParentForChildren(), isClean()); + analyticsHubSubscriptionInfo_ = null; + } + return analyticsHubSubscriptionInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index f0aec914b..51ea4432a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SubscriptionOrBuilder @@ -279,7 +279,7 @@ public interface SubscriptionOrBuilder * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -297,7 +297,7 @@ public interface SubscriptionOrBuilder * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -315,7 +315,7 @@ public interface SubscriptionOrBuilder * backlog, from the moment a message is published. If `retain_acked_messages` * is true, then this also configures the retention of acknowledged messages, * and thus configures how far back in time a `Seek` can be done. Defaults to - * 7 days. Cannot be more than 7 days or less than 10 minutes. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -743,4 +743,49 @@ java.lang.String getLabelsOrDefault( * @return The state. */ com.google.pubsub.v1.Subscription.State getState(); + + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + boolean hasAnalyticsHubSubscriptionInfo(); + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo(); + /** + * + * + *
+   * Output only. Information about the associated Analytics Hub subscription.
+   * Only set if the subscritpion is created by Analytics Hub.
+   * 
+ * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 34686b53a..0f8477e86 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 6d003e9f0..38b54f234 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 8e7ac0c43..adae2a400 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 636f84656..45bdef5dd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index b1e13a170..8bf7d85d6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 5fba8ab02..469ccb8e5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index f09ac1478..fa2713ec6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 967c56743..cbac7a5a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 0a0802f11..994119324 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 7645082b0..3eb379d3d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 8db831a83..96999cf11 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index c5dd24535..f66974da0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index f40b82c0c..60a92235f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 19bb6dfd0..824700d69 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 603a5d5c6..afc2763c3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 13217bd5f..f9378438b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b5092087a..54b44b822 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -237,11 +237,132 @@ message IngestionDataSourceSettings { string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; } + // Ingestion settings for Cloud Storage. + message CloudStorage { + // Possible states for ingestion from Cloud Storage. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while calling the Cloud Storage API. This + // can happen if the Pub/Sub SA has not been granted the + // [appropriate + // permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions): + // - storage.objects.list: to list the objects in a bucket. + // - storage.objects.get: to read the objects in a bucket. + // - storage.buckets.get: to verify the bucket exists. + CLOUD_STORAGE_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. This can + // happen if the Pub/Sub SA has not been granted the [appropriate publish + // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) + PUBLISH_PERMISSION_DENIED = 3; + + // The provided Cloud Storage bucket doesn't exist. + BUCKET_NOT_FOUND = 4; + + // The Cloud Storage bucket has too many objects, ingestion will be + // paused. + TOO_MANY_OBJECTS = 5; + } + + // Configuration for reading Cloud Storage data in text format. Each line of + // text as specified by the delimiter will be set to the `data` field of a + // Pub/Sub message. + message TextFormat { + // Optional. When unset, '\n' is used. + optional string delimiter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for reading Cloud Storage data in Avro binary format. The + // bytes of each object will be set to the `data` field of a Pub/Sub + // message. + message AvroFormat {} + + // Configuration for reading Cloud Storage data written via [Cloud Storage + // subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The + // data and attributes fields of the originally exported Pub/Sub message + // will be restored when publishing. + message PubSubAvroFormat {} + + // Output only. An output-only field that indicates the state of the Cloud + // Storage ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Cloud Storage bucket. The bucket name must be without any + // prefix like "gs://". See the [bucket naming requirements] + // (https://cloud.google.com/storage/docs/buckets#naming). + string bucket = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Defaults to text format. + oneof input_format { + // Optional. Data from Cloud Storage will be interpreted as text. + TextFormat text_format = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data from Cloud Storage will be interpreted in Avro format. + AvroFormat avro_format = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. It will be assumed data from Cloud Storage was written via + // [Cloud Storage + // subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). + PubSubAvroFormat pubsub_avro_format = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Only objects with a larger or equal creation timestamp will be + // ingested. + google.protobuf.Timestamp minimum_object_create_time = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Glob pattern used to match objects that will be ingested. If + // unset, all objects will be ingested. See the [supported + // patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob). + string match_glob = 9 [(google.api.field_behavior) = OPTIONAL]; + } + // Only one source type can have settings set. oneof source { // Optional. Amazon Kinesis Data Streams. AwsKinesis aws_kinesis = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cloud Storage. + CloudStorage cloud_storage = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Platform Logs settings. If unset, no Platform Logs will be + // generated. + PlatformLogsSettings platform_logs_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for Platform Logs produced by Pub/Sub. +message PlatformLogsSettings { + // Severity levels of Platform Logs. + enum Severity { + // Default value. Logs level is unspecified. Logs will be disabled. + SEVERITY_UNSPECIFIED = 0; + + // Logs will be disabled. + DISABLED = 1; + + // Debug logs and higher-severity logs will be written. + DEBUG = 2; + + // Info logs and higher-severity logs will be written. + INFO = 3; + + // Warning logs and higher-severity logs will be written. + WARNING = 4; + + // Only error logs will be written. + ERROR = 5; } + + // Optional. The minimum severity level of Platform Logs that will be written. + Severity severity = 1 [(google.api.field_behavior) = OPTIONAL]; } // A topic resource. @@ -774,6 +895,20 @@ message Subscription { RESOURCE_ERROR = 2; } + // Information about an associated Analytics Hub subscription + // (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). + message AnalyticsHubSubscriptionInfo { + // Optional. The name of the associated Analytics Hub listing resource. + // Pattern: + // "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" + string listing = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the associated Analytics Hub subscription resource. + // Pattern: + // "projects/{project}/locations/{location}/subscriptions/{subscription}" + string subscription = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The name of the subscription. It must have the format // `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must // start with a letter, and contain only letters (`[A-Za-z]`), numbers @@ -837,7 +972,7 @@ message Subscription { // backlog, from the moment a message is published. If `retain_acked_messages` // is true, then this also configures the retention of acknowledged messages, // and thus configures how far back in time a `Seek` can be done. Defaults to - // 7 days. Cannot be more than 7 days or less than 10 minutes. + // 7 days. Cannot be more than 31 days or less than 10 minutes. google.protobuf.Duration message_retention_duration = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -922,6 +1057,11 @@ message Subscription { // Output only. An output-only field indicating whether or not the // subscription can receive messages. State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about the associated Analytics Hub subscription. + // Only set if the subscritpion is created by Analytics Hub. + AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A policy that specifies how Pub/Sub retries message delivery. From 555216ee5bf9cfbba6664f133fc7cde1101f5f0b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 26 Sep 2024 17:34:59 +0200 Subject: [PATCH 284/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 (#2191) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 721e0301f..664f10a28 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 1f52e93ed..0effa03c5 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index bf7743f74..96a8059b9 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.1" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index af66a2f7e..f06ab267c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.36.0 + 3.36.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 17973fd64..189fba153 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.36.0 + 3.36.1 From 0cc5a747ea811198ecf138a77b84f1d27185988a Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:02:54 +0000 Subject: [PATCH 285/656] chore: use composite action (#2192) --- .../scripts/hermetic_library_generation.sh | 116 ------------------ .../hermetic_library_generation.yaml | 32 +++-- 2 files changed, 15 insertions(+), 133 deletions(-) delete mode 100644 .github/scripts/hermetic_library_generation.sh diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh deleted file mode 100644 index 49a7414cf..000000000 --- a/.github/scripts/hermetic_library_generation.sh +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash -set -e -# This script should be run at the root of the repository. -# This script is used to, when a pull request changes the generation -# configuration (generation_config.yaml by default): -# 1. Find whether the last commit in this pull request contains changes to -# the generation configuration and exit early if it doesn't have such a change -# since the generation result would be the same. -# 2. Compare generation configurations in the current branch (with which the -# pull request associated) and target branch (into which the pull request is -# merged); -# 3. Generate changed libraries using library_generation image; -# 4. Commit the changes to the pull request, if any. -# 5. Edit the PR body with generated pull request description, if applicable. - -# The following commands need to be installed before running the script: -# 1. git -# 2. gh -# 3. docker - -# The parameters of this script is: -# 1. target_branch, the branch into which the pull request is merged. -# 2. current_branch, the branch with which the pull request is associated. -# 3. [optional] generation_config, the path to the generation configuration, -# the default value is generation_config.yaml in the repository root. -while [[ $# -gt 0 ]]; do -key="$1" -case "${key}" in - --target_branch) - target_branch="$2" - shift - ;; - --current_branch) - current_branch="$2" - shift - ;; - --generation_config) - generation_config="$2" - shift - ;; - *) - echo "Invalid option: [$1]" - exit 1 - ;; -esac -shift -done - -if [ -z "${target_branch}" ]; then - echo "missing required argument --target_branch" - exit 1 -fi - -if [ -z "${current_branch}" ]; then - echo "missing required argument --current_branch" - exit 1 -fi - -if [ -z "${generation_config}" ]; then - generation_config=generation_config.yaml - echo "Using default generation config: ${generation_config}" -fi - -workspace_name="/workspace" -baseline_generation_config="baseline_generation_config.yaml" -message="chore: generate libraries at $(date)" - -git checkout "${target_branch}" -git checkout "${current_branch}" - -# copy generation configuration from target branch to current branch. -git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" - -# parse image tag from the generation configuration. -image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) - -repo_root_dir=$(pwd) -mkdir -p "${repo_root_dir}/output" -# download api definitions from googleapis repository -googleapis_commitish=$(grep googleapis_commitish "${generation_config}" | cut -d ":" -f 2 | xargs) -api_def_dir=$(mktemp -d) -git clone https://github.com/googleapis/googleapis.git "${api_def_dir}" -pushd "${api_def_dir}" -git checkout "${googleapis_commitish}" -cp -r google/ grafeas/ "${repo_root_dir}/output" -popd - -# run hermetic code generation docker image. -docker run \ - --rm \ - -u "$(id -u):$(id -g)" \ - -v "$(pwd):${workspace_name}" \ - gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ - --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ - --current-generation-config-path="${workspace_name}/${generation_config}" - -# remove api definitions after generation -rm -rf "${api_def_dir}" - -# commit the change to the pull request. -rm -rdf output googleapis "${baseline_generation_config}" -git add --all -- ':!pr_description.txt' ':!hermetic_library_generation.sh' -changed_files=$(git diff --cached --name-only) -if [[ "${changed_files}" != "" ]]; then - echo "Commit changes..." - git commit -m "${message}" - git push -else - echo "There is no generated code change, skip commit." -fi - -# set pr body if pr_description.txt is generated. -if [[ -f "pr_description.txt" ]]; then - pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") - gh pr edit "${pr_num}" --body "$(cat pr_description.txt)" -fi diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 51a087f8e..9f1a24bd6 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -18,30 +18,28 @@ on: pull_request: env: - HEAD_REF: ${{ github.head_ref }} REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} GITHUB_REPOSITORY: ${{ github.repository }} - jobs: library_generation: runs-on: ubuntu-latest steps: + - name: Determine whether the pull request comes from a fork + run: | + if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then + echo "This PR comes from a fork. Skip library generation." + echo "SHOULD_RUN=false" >> $GITHUB_ENV + else + echo "SHOULD_RUN=true" >> $GITHUB_ENV + fi - uses: actions/checkout@v4 + if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - name: Generate changed libraries - shell: bash - run: | - set -ex - if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then - echo "This PR comes from a fork. Generation will be skipped" - exit 0 - fi - [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" - [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash .github/scripts/hermetic_library_generation.sh \ - --target_branch ${{ github.base_ref }} \ - --current_branch $HEAD_REF - env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - uses: googleapis/sdk-platform-java/.github/scripts@v2.46.1 + if: env.SHOULD_RUN == 'true' + with: + base_ref: ${{ github.base_ref }} + head_ref: ${{ github.head_ref }} + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 561e0ba764625820c74373be22da8fdfd99990bf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 23:54:24 +0000 Subject: [PATCH 286/656] chore(main): release 1.132.3 (#2177) :robot: I have created a release *beep* *boop* --- ## [1.132.3](https://togithub.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://togithub.com/googleapis/java-pubsub/issues/2173)) ([294d039](https://togithub.com/googleapis/java-pubsub/commit/294d03974ab236c2ee5d0e420e8913eb6fc65fc9)) * Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://togithub.com/googleapis/java-pubsub/issues/2184)) ([faecb3b](https://togithub.com/googleapis/java-pubsub/commit/faecb3b90cb259ae376b8481ec30511ce19279bf)) * Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://togithub.com/googleapis/java-pubsub/issues/2190)) ([9ea45dc](https://togithub.com/googleapis/java-pubsub/commit/9ea45dc13f11076890cfff35e7acf2eafc2af70a)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://togithub.com/googleapis/java-pubsub/issues/2174)) ([ae800d7](https://togithub.com/googleapis/java-pubsub/commit/ae800d7b3ffd19302b416f03fad8b20e93afce8f)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://togithub.com/googleapis/java-pubsub/issues/2185)) ([5ca2c7c](https://togithub.com/googleapis/java-pubsub/commit/5ca2c7c52497514af30e4522f0ae245d0f8d73ce)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://togithub.com/googleapis/java-pubsub/issues/2191)) ([555216e](https://togithub.com/googleapis/java-pubsub/commit/555216ee5bf9cfbba6664f133fc7cde1101f5f0b)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://togithub.com/googleapis/java-pubsub/issues/2179)) ([c9bbd2c](https://togithub.com/googleapis/java-pubsub/commit/c9bbd2cf3525e3ebdf9ce3af7fe50a16a87c9837)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cd8af8d0..6c02219c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.132.3](https://github.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://github.com/googleapis/java-pubsub/issues/2173)) ([294d039](https://github.com/googleapis/java-pubsub/commit/294d03974ab236c2ee5d0e420e8913eb6fc65fc9)) +* Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://github.com/googleapis/java-pubsub/issues/2184)) ([faecb3b](https://github.com/googleapis/java-pubsub/commit/faecb3b90cb259ae376b8481ec30511ce19279bf)) +* Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://github.com/googleapis/java-pubsub/issues/2190)) ([9ea45dc](https://github.com/googleapis/java-pubsub/commit/9ea45dc13f11076890cfff35e7acf2eafc2af70a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://github.com/googleapis/java-pubsub/issues/2174)) ([ae800d7](https://github.com/googleapis/java-pubsub/commit/ae800d7b3ffd19302b416f03fad8b20e93afce8f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://github.com/googleapis/java-pubsub/issues/2185)) ([5ca2c7c](https://github.com/googleapis/java-pubsub/commit/5ca2c7c52497514af30e4522f0ae245d0f8d73ce)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://github.com/googleapis/java-pubsub/issues/2191)) ([555216e](https://github.com/googleapis/java-pubsub/commit/555216ee5bf9cfbba6664f133fc7cde1101f5f0b)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://github.com/googleapis/java-pubsub/issues/2179)) ([c9bbd2c](https://github.com/googleapis/java-pubsub/commit/c9bbd2cf3525e3ebdf9ce3af7fe50a16a87c9837)) + ## [1.132.2](https://github.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) diff --git a/README.md b/README.md index c2585d3b6..746c66da6 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.3" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index f06ab267c..591e2ff18 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.3-SNAPSHOT + 1.132.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index ed0eca848..1a6f44c1b 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 90a0a921a..c8749517a 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/pom.xml b/pom.xml index 189fba153..79a451290 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.3-SNAPSHOT + 1.132.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 69eeaeeb0..d897a4576 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4c41fb2d0..b8ad099cc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/versions.txt b/versions.txt index c85921913..288d5b137 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.2:1.132.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT +google-cloud-pubsub:1.132.3:1.132.3 +grpc-google-cloud-pubsub-v1:1.114.3:1.114.3 +proto-google-cloud-pubsub-v1:1.114.3:1.114.3 From 2bd52e02fc0ea13d03974f4374fadcaef0f092e3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Sep 2024 23:09:59 +0200 Subject: [PATCH 287/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.3 (#2197) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 44a881ea1..f6f5e1d15 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3 From 979e420377327cf3843ac23151d8b44a7e5188c5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Sep 2024 23:10:11 +0200 Subject: [PATCH 288/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.1 (#2194) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f6f5e1d15..b522fb6f7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.0 + 2.43.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b8ad099cc..3af572f3d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.0 + 2.43.1 From 4140198343e6fddea90f6988456e9c6737c9c549 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:18:44 -0400 Subject: [PATCH 289/656] chore(main): release 1.132.4-SNAPSHOT (#2195) * chore(main): release 1.132.4-SNAPSHOT * chore: generate libraries at Fri Sep 27 22:43:16 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 746c66da6..c5729ff0e 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 591e2ff18..ab43e8e8c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.3 + 1.132.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1a6f44c1b..86f177b22 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c8749517a..9b0403b5a 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 79a451290..e7472893f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.3 + 1.132.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d897a4576..d72c279ca 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3af572f3d..3a70cfdde 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 288d5b137..731d1fdf7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.3:1.132.3 -grpc-google-cloud-pubsub-v1:1.114.3:1.114.3 -proto-google-cloud-pubsub-v1:1.114.3:1.114.3 +google-cloud-pubsub:1.132.3:1.132.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT From f295b01cb93fe26612c79c3d2ba0bb68f0404d7e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 30 Sep 2024 18:22:20 +0200 Subject: [PATCH 290/656] deps: update dependency ubuntu to v24 (#2193) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 3cf773992..f15c80785 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -21,7 +21,7 @@ on: jobs: update-generation-config: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: # the branch into which the pull request is merged base_branch: main From d90532162a8da92dee4f9870a3b30b3aa626b578 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 30 Sep 2024 16:32:38 -0400 Subject: [PATCH 291/656] build: Update samples to use Java 11 (#2201) --- .github/workflows/samples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index f1a27f81c..3c00d025e 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v1 with: - java-version: 8 + java-version: 11 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check working-directory: samples From f364baa99377952fdaec80c1cbfc64791dd74002 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 01:25:11 +0200 Subject: [PATCH 292/656] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.2 (#2178) --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b522fb6f7..604b622d3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/samples/pom.xml b/samples/pom.xml index 8a5426171..4a6ba6ed7 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3a70cfdde..39209edf7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 608cef864..8720ef215 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 From c126927563c0b42ea4f22062590f9525ee3c746c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:02:18 +0000 Subject: [PATCH 293/656] chore(main): release 1.132.4 (#2200) :robot: I have created a release *beep* *boop* --- ## [1.132.4](https://togithub.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://togithub.com/googleapis/java-pubsub/issues/2194)) ([979e420](https://togithub.com/googleapis/java-pubsub/commit/979e420377327cf3843ac23151d8b44a7e5188c5)) * Update dependency ubuntu to v24 ([#2193](https://togithub.com/googleapis/java-pubsub/issues/2193)) ([f295b01](https://togithub.com/googleapis/java-pubsub/commit/f295b01cb93fe26612c79c3d2ba0bb68f0404d7e)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 29 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c02219c3..fdd324266 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.132.4](https://github.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://github.com/googleapis/java-pubsub/issues/2194)) ([979e420](https://github.com/googleapis/java-pubsub/commit/979e420377327cf3843ac23151d8b44a7e5188c5)) +* Update dependency ubuntu to v24 ([#2193](https://github.com/googleapis/java-pubsub/issues/2193)) ([f295b01](https://github.com/googleapis/java-pubsub/commit/f295b01cb93fe26612c79c3d2ba0bb68f0404d7e)) + ## [1.132.3](https://github.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) diff --git a/README.md b/README.md index c5729ff0e..14ab466a3 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.4" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ab43e8e8c..beff026ac 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.4-SNAPSHOT + 1.132.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 86f177b22..2657c64af 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 9b0403b5a..8d4b1bf2f 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/pom.xml b/pom.xml index e7472893f..33ba52966 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.4-SNAPSHOT + 1.132.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d72c279ca..b8b27d3cd 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 39209edf7..12bf9d92c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/versions.txt b/versions.txt index 731d1fdf7..56fa56c2c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.3:1.132.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT +google-cloud-pubsub:1.132.4:1.132.4 +grpc-google-cloud-pubsub-v1:1.114.4:1.114.4 +proto-google-cloud-pubsub-v1:1.114.4:1.114.4 From db522b60f1bbec9cc1bfa0c37477044fd2f807c7 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 30 Sep 2024 20:04:22 -0400 Subject: [PATCH 294/656] feat: Add OpenTelemetry tracing to the Publisher and Subscriber (#2086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Initial publish side Open Telemetry support * feat: Publish-side trace context injection * feat: Tests and improvements to publish side OTel tracing * feat: More tests and refactoring for publish-side OpenTelemetry * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Formatting files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Publisher test changes * test: Fix OpenTelemetry test * Feat: Use OpenTelemetry semconv * test: Fix some dependency issues * feat: Test fix * feat: Add comment for setter in builder * Opentelemetry subscribe (#2100) * feat: Add OpenTelemetry tracing to the SubscriberClient * feat: Add link to publisher create span in the subscribe process span * feat: Add Ack/Nack/ModAck RPC spans to the subscribe * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Opentelemetry subscribe (#2101) * feat: Add OpenTelemetry tracing to the SubscriberClient * feat: Add link to publisher create span in the subscribe process span * feat: Add Ack/Nack/ModAck RPC spans to the subscribe * fix: Fix test errors caused by otel changes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Fix build errors in Publisher * test: Ignore org.assertj:assertj-core which is required for OTel testing assertions * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * test: Add tests for subscriber OTel functions * feat: Changes to OpenTelemetry implementation to add links earlier and prevent methods from being exposed to users * feat: Refactor OpenTelemetry implementation to use a context aware wrapper for the tracer and a PubsubTracer interface * feat: Initialize default no-op PubsubTracer in Publisher and Subscriber * feat: Ensure SubscriberStreamingConnection and MessageDispatcher have default no-op tracers by default for tests * samples: Add OpenTelemetry publisher and subscriber samples * feat: Add additional sampling checks to the Otel implementation * samples: Update pom.xml for samples with Cloud Trace exporter * feat: Make OTel classes/methods package-private and remove non-generic PubsubTracer interface * feat: Lint fixes for Pub/Sub * feat: Use MessagingIncubatingAttributes for gcp_pubsub attribute names * feat: Format OTel changes * Revert "feat: Use MessagingIncubatingAttributes for gcp_pubsub attribute names" This reverts commit 305610e5a23f4f128c0750970a9b6f86540cbabe. * feat: trigger build * chore: generate libraries at Mon Sep 30 20:37:03 UTC 2024 * feat: trigger build * feat: Fix file overwrite from bad merge * chore: generate libraries at Mon Sep 30 20:49:40 UTC 2024 * Revert "chore: generate libraries at Mon Sep 30 20:49:40 UTC 2024" This reverts commit 5ebbbf933b79f7f3c56bba5da2b3c334f544dd4d. * chore: generate libraries at Mon Sep 30 21:03:31 UTC 2024 * Revert "chore: generate libraries at Mon Sep 30 21:03:31 UTC 2024" This reverts commit 23f3a70d64f0f72cf18dd3a7640125ff9027dec7. * chore: generate libraries at Mon Sep 30 21:14:11 UTC 2024 * feat: Prevent new files for OpenTelemetry from being overwritten * feat: Revert automated file deletion for OpenTelemetry changes * feat: Remove OpenTelemetry samples as the samples use a released library version to run * chore: generate libraries at Mon Sep 30 22:11:14 UTC 2024 --------- Co-authored-by: Owl Bot Co-authored-by: cloud-java-bot --- .github/.OwlBot-hermetic.yaml | 3 + google-cloud-pubsub/pom.xml | 28 + .../cloud/pubsub/v1/AckRequestData.java | 19 + .../cloud/pubsub/v1/MessageDispatcher.java | 92 ++- .../cloud/pubsub/v1/ModackRequestData.java | 10 + .../pubsub/v1/OpenTelemetryPubsubTracer.java | 460 ++++++++++++ .../com/google/cloud/pubsub/v1/Publisher.java | 87 ++- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 430 +++++++++++ .../v1/StreamingSubscriberConnection.java | 102 ++- .../google/cloud/pubsub/v1/Subscriber.java | 43 ++ .../cloud/pubsub/v1/OpenTelemetryTest.java | 669 ++++++++++++++++++ .../cloud/pubsub/v1/PublisherImplTest.java | 75 ++ pom.xml | 6 + samples/install-without-bom/pom.xml | 5 + samples/snapshot/pom.xml | 5 + samples/snippets/pom.xml | 5 + 16 files changed, 2008 insertions(+), 31 deletions(-) create mode 100644 google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java create mode 100644 google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java create mode 100644 google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java diff --git a/.github/.OwlBot-hermetic.yaml b/.github/.OwlBot-hermetic.yaml index 1757987e4..8a75909c6 100644 --- a/.github/.OwlBot-hermetic.yaml +++ b/.github/.OwlBot-hermetic.yaml @@ -33,6 +33,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" @@ -51,8 +52,10 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2657c64af..46fe71d26 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -100,6 +100,18 @@ google-http-client runtime + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-context + + + io.opentelemetry + opentelemetry-semconv + @@ -142,6 +154,21 @@ opencensus-impl test + + io.opentelemetry + opentelemetry-sdk-trace + test + + + io.opentelemetry + opentelemetry-sdk-testing + test + + + org.assertj + assertj-core + test + com.google.api @@ -174,6 +201,7 @@ com.google.auth:google-auth-library-oauth2-http:jar io.opencensus:opencensus-impl javax.annotation:javax.annotation-api + org.assertj:assertj-core diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java index 3b67ce219..5cab83f49 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java @@ -22,10 +22,12 @@ public class AckRequestData { private final String ackId; private final Optional> messageFuture; + private PubsubMessageWrapper messageWrapper; protected AckRequestData(Builder builder) { this.ackId = builder.ackId; this.messageFuture = builder.messageFuture; + this.messageWrapper = builder.messageWrapper; } public String getAckId() { @@ -36,6 +38,17 @@ public SettableApiFuture getMessageFutureIfExists() { return this.messageFuture.orElse(null); } + /** + * Returns an empty PubsubMessageWrapper with OpenTelemetry tracing disabled. This allows methods + * that use this method to be unit tested. + */ + public PubsubMessageWrapper getMessageWrapper() { + if (this.messageWrapper == null) { + return PubsubMessageWrapper.newBuilder(null, null).build(); + } + return messageWrapper; + } + public AckRequestData setResponse(AckResponse ackResponse, boolean setResponseOnSuccess) { if (this.messageFuture.isPresent() && !this.messageFuture.get().isDone()) { switch (ackResponse) { @@ -68,6 +81,7 @@ public static Builder newBuilder(String ackId) { protected static final class Builder { private final String ackId; private Optional> messageFuture = Optional.empty(); + private PubsubMessageWrapper messageWrapper; protected Builder(String ackId) { this.ackId = ackId; @@ -78,6 +92,11 @@ public Builder setMessageFuture(SettableApiFuture messageFuture) { return this; } + public Builder setMessageWrapper(PubsubMessageWrapper messageWrapper) { + this.messageWrapper = messageWrapper; + return this; + } + public AckRequestData build() { return new AckRequestData(this); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 1810badd2..860fcbcf9 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -104,6 +104,10 @@ class MessageDispatcher { // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; + private final String subscriptionName; + private final boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { ACK, @@ -157,6 +161,7 @@ public void onFailure(Throwable t) { t); this.ackRequestData.setResponse(AckResponse.OTHER, false); pendingNacks.add(this.ackRequestData); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "nack"); forget(); } @@ -169,9 +174,11 @@ public void onSuccess(AckReply reply) { ackLatencyDistribution.record( Ints.saturatedCast( (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); break; case NACK: pendingNacks.add(this.ackRequestData); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "nack"); break; default: throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); @@ -217,6 +224,12 @@ private MessageDispatcher(Builder builder) { jobLock = new ReentrantLock(); messagesWaiter = new Waiter(); sequentialExecutor = new SequentialExecutorService.AutoExecutor(builder.executor); + + subscriptionName = builder.subscriptionName; + enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + if (builder.tracer != null) { + tracer = builder.tracer; + } } private boolean shouldSetMessageFuture() { @@ -351,13 +364,15 @@ void setMessageOrderingEnabled(boolean messageOrderingEnabled) { } private static class OutstandingMessage { - private final ReceivedMessage receivedMessage; private final AckHandler ackHandler; - private OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { - this.receivedMessage = receivedMessage; + private OutstandingMessage(AckHandler ackHandler) { this.ackHandler = ackHandler; } + + public PubsubMessageWrapper messageWrapper() { + return this.ackHandler.ackRequestData.getMessageWrapper(); + } } private static class ReceiptCompleteData { @@ -390,10 +405,20 @@ void processReceivedMessages(List messages) { if (shouldSetMessageFuture()) { builder.setMessageFuture(SettableApiFuture.create()); } + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + message.getMessage(), + subscriptionName, + message.getAckId(), + message.getDeliveryAttempt()) + .build(); + builder.setMessageWrapper(messageWrapper); + tracer.startSubscriberSpan(messageWrapper, this.exactlyOnceDeliveryEnabled.get()); + AckRequestData ackRequestData = builder.build(); AckHandler ackHandler = new AckHandler(ackRequestData, message.getMessage().getSerializedSize(), totalExpiration); - OutstandingMessage outstandingMessage = new OutstandingMessage(message, ackHandler); + OutstandingMessage outstandingMessage = new OutstandingMessage(ackHandler); if (this.exactlyOnceDeliveryEnabled.get()) { // For exactly once deliveries we don't add to outstanding batch because we first @@ -457,30 +482,40 @@ private void processBatch(List batch) { for (OutstandingMessage message : batch) { // This is a blocking flow controller. We have already incremented messagesWaiter, so // shutdown will block on processing of all these messages anyway. + tracer.startSubscribeConcurrencyControlSpan(message.messageWrapper()); try { - flowController.reserve(1, message.receivedMessage.getMessage().getSerializedSize()); + flowController.reserve(1, message.messageWrapper().getPubsubMessage().getSerializedSize()); + tracer.endSubscribeConcurrencyControlSpan(message.messageWrapper()); } catch (FlowControlException unexpectedException) { // This should be a blocking flow controller and never throw an exception. + tracer.setSubscribeConcurrencyControlSpanException( + message.messageWrapper(), unexpectedException); throw new IllegalStateException("Flow control unexpected exception", unexpectedException); } - processOutstandingMessage(addDeliveryInfoCount(message.receivedMessage), message.ackHandler); + addDeliveryInfoCount(message.messageWrapper()); + processOutstandingMessage(message.ackHandler); } } - private PubsubMessage addDeliveryInfoCount(ReceivedMessage receivedMessage) { - PubsubMessage originalMessage = receivedMessage.getMessage(); - int deliveryAttempt = receivedMessage.getDeliveryAttempt(); + private void addDeliveryInfoCount(PubsubMessageWrapper messageWrapper) { + PubsubMessage originalMessage = messageWrapper.getPubsubMessage(); + int deliveryAttempt = messageWrapper.getDeliveryAttempt(); // Delivery Attempt will be set to 0 if DeadLetterPolicy is not set on the subscription. In // this case, do not populate the PubsubMessage with the delivery attempt attribute. if (deliveryAttempt > 0) { - return PubsubMessage.newBuilder(originalMessage) - .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) - .build(); + messageWrapper.setPubsubMessage( + PubsubMessage.newBuilder(originalMessage) + .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) + .build()); } - return originalMessage; } - private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { + private void processOutstandingMessage(final AckHandler ackHandler) { + // Get the PubsubMessageWrapper and the PubsubMessage it wraps that are stored withing the + // AckHandler object. + PubsubMessageWrapper messageWrapper = ackHandler.ackRequestData.getMessageWrapper(); + PubsubMessage message = messageWrapper.getPubsubMessage(); + // This future is for internal bookkeeping to be sent to the StreamingSubscriberConnection // use below in the consumers SettableApiFuture ackReplySettableApiFuture = SettableApiFuture.create(); @@ -499,8 +534,10 @@ public void run() { // so it was probably sent to someone else. Don't work on it. // Don't nack it either, because we'd be nacking someone else's message. ackHandler.forget(); + tracer.setSubscriberSpanExpirationResult(messageWrapper); return; } + tracer.startSubscribeProcessSpan(messageWrapper); if (shouldSetMessageFuture()) { // This is the message future that is propagated to the user SettableApiFuture messageFuture = @@ -521,7 +558,9 @@ public void run() { if (!messageOrderingEnabled.get() || message.getOrderingKey().isEmpty()) { executor.execute(deliverMessageTask); } else { + tracer.startSubscribeSchedulerSpan(messageWrapper); sequentialExecutor.submit(message.getOrderingKey(), deliverMessageTask); + tracer.endSubscribeSchedulerSpan(messageWrapper); } } @@ -607,8 +646,10 @@ void processOutstandingOperations() { List ackRequestDataReceipts = new ArrayList(); pendingReceipts.drainTo(ackRequestDataReceipts); if (!ackRequestDataReceipts.isEmpty()) { - modackRequestData.add( - new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts)); + ModackRequestData receiptModack = + new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts); + receiptModack.setIsReceiptModack(true); + modackRequestData.add(receiptModack); } logger.log(Level.FINER, "Sending {0} receipts", ackRequestDataReceipts.size()); @@ -645,6 +686,10 @@ public static final class Builder { private ScheduledExecutorService systemExecutor; private ApiClock clock; + private String subscriptionName; + private boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer; + protected Builder(MessageReceiver receiver) { this.receiver = receiver; } @@ -715,6 +760,21 @@ public Builder setApiClock(ApiClock clock) { return this; } + public Builder setSubscriptionName(String subscriptionName) { + this.subscriptionName = subscriptionName; + return this; + } + + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + public Builder setTracer(OpenTelemetryPubsubTracer tracer) { + this.tracer = tracer; + return this; + } + public MessageDispatcher build() { return new MessageDispatcher(this); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java index b4d2dae0f..54c7436af 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java @@ -21,6 +21,7 @@ class ModackRequestData { private final int deadlineExtensionSeconds; private List ackRequestData; + private boolean isReceiptModack; ModackRequestData(int deadlineExtensionSeconds) { this.deadlineExtensionSeconds = deadlineExtensionSeconds; @@ -45,8 +46,17 @@ public List getAckRequestData() { return ackRequestData; } + public boolean getIsReceiptModack() { + return isReceiptModack; + } + public ModackRequestData addAckRequestData(AckRequestData ackRequestData) { this.ackRequestData.add(ackRequestData); return this; } + + public ModackRequestData setIsReceiptModack(boolean isReceiptModack) { + this.isReceiptModack = isReceiptModack; + return this; + } } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java new file mode 100644 index 000000000..b946f44bf --- /dev/null +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -0,0 +1,460 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.common.AttributesBuilder; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanBuilder; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.context.Context; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; +import java.util.List; + +public class OpenTelemetryPubsubTracer { + private final Tracer tracer; + private boolean enabled = false; + + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME = + "subscriber concurrency control"; + private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + + private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; + private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; + private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; + private static final String MESSAGE_EXACTLY_ONCE_ATTR_KEY = + "messaging.gcp_pubsub.message.exactly_once_delivery"; + private static final String MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY = + "messaging.gcp_pubsub.message.delivery_attempt"; + private static final String ACK_DEADLINE_ATTR_KEY = "messaging.gcp_pubsub.message.ack_deadline"; + private static final String RECEIPT_MODACK_ATTR_KEY = "messaging.gcp_pubsub.is_receipt_modack"; + private static final String PROJECT_ATTR_KEY = "gcp.project_id"; + private static final String PUBLISH_RPC_SPAN_SUFFIX = " publish"; + + private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; + + OpenTelemetryPubsubTracer(Tracer tracer, boolean enableOpenTelemetry) { + this.tracer = tracer; + if (this.tracer != null && enableOpenTelemetry) { + this.enabled = true; + } + } + + /** Populates attributes that are common the publisher parent span and publish RPC span. */ + private static final AttributesBuilder createCommonSpanAttributesBuilder( + String destinationName, String projectName, String codeFunction, String operation) { + AttributesBuilder attributesBuilder = + Attributes.builder() + .put(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .put(SemanticAttributes.MESSAGING_DESTINATION_NAME, destinationName) + .put(PROJECT_ATTR_KEY, projectName) + .put(SemanticAttributes.CODE_FUNCTION, codeFunction); + if (operation != null) { + attributesBuilder.put(SemanticAttributes.MESSAGING_OPERATION, operation); + } + + return attributesBuilder; + } + + private Span startChildSpan(String name, Span parent) { + return tracer.spanBuilder(name).setParent(Context.current().with(parent)).startSpan(); + } + + /** + * Creates and starts the parent span with the appropriate span attributes and injects the span + * context into the {@link PubsubMessage} attributes. + */ + void startPublisherSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + message.getTopicName(), message.getTopicProject(), "publish", "create"); + + attributesBuilder.put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()); + if (!message.getOrderingKey().isEmpty()) { + attributesBuilder.put(ORDERING_KEY_ATTR_KEY, message.getOrderingKey()); + } + + Span publisherSpan = + tracer + .spanBuilder(message.getTopicName() + " create") + .setSpanKind(SpanKind.PRODUCER) + .setAllAttributes(attributesBuilder.build()) + .startSpan(); + + message.setPublisherSpan(publisherSpan); + if (publisherSpan.getSpanContext().isValid()) { + message.injectSpanContext(); + } + } + + void endPublisherSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublisherSpan(); + } + + void setPublisherMessageIdSpanAttribute(PubsubMessageWrapper message, String messageId) { + if (!enabled) { + return; + } + message.setPublisherMessageIdSpanAttribute(messageId); + } + + /** Creates a span for publish-side flow control as a child of the parent publisher span. */ + void startPublishFlowControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) + message.setPublishFlowControlSpan( + startChildSpan(PUBLISH_FLOW_CONTROL_SPAN_NAME, publisherSpan)); + } + + void endPublishFlowControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublishFlowControlSpan(); + } + + void setPublishFlowControlSpanException(PubsubMessageWrapper message, Throwable t) { + if (!enabled) { + return; + } + message.setPublishFlowControlSpanException(t); + } + + /** Creates a span for publish message batching as a child of the parent publisher span. */ + void startPublishBatchingSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) { + message.setPublishBatchingSpan(startChildSpan(PUBLISH_BATCHING_SPAN_NAME, publisherSpan)); + } + } + + void endPublishBatchingSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublishBatchingSpan(); + } + + /** + * Creates, starts, and returns a publish RPC span for the given message batch. Bi-directional + * links with the publisher parent span are created for sampled messages in the batch. + */ + Span startPublishRpcSpan(String topic, List messages) { + if (!enabled) { + return null; + } + TopicName topicName = TopicName.parse(topic); + Attributes attributes = + createCommonSpanAttributesBuilder( + topicName.getTopic(), topicName.getProject(), "publishCall", "publish") + .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()) + .build(); + SpanBuilder publishRpcSpanBuilder = + tracer + .spanBuilder(topicName.getTopic() + PUBLISH_RPC_SPAN_SUFFIX) + .setSpanKind(SpanKind.CLIENT) + .setAllAttributes(attributes); + Attributes linkAttributes = + Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, "publish").build(); + for (PubsubMessageWrapper message : messages) { + if (message.getPublisherSpan().getSpanContext().isSampled()) + publishRpcSpanBuilder.addLink(message.getPublisherSpan().getSpanContext(), linkAttributes); + } + Span publishRpcSpan = publishRpcSpanBuilder.startSpan(); + + for (PubsubMessageWrapper message : messages) { + if (publishRpcSpan.getSpanContext().isSampled()) { + message.getPublisherSpan().addLink(publishRpcSpan.getSpanContext(), linkAttributes); + message.addPublishStartEvent(); + } + } + return publishRpcSpan; + } + + /** Ends the given publish RPC span if it exists. */ + void endPublishRpcSpan(Span publishRpcSpan) { + if (!enabled) { + return; + } + if (publishRpcSpan != null) { + publishRpcSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown when publishing the + * message batch. + */ + void setPublishRpcSpanException(Span publishRpcSpan, Throwable t) { + if (!enabled) { + return; + } + if (publishRpcSpan != null) { + publishRpcSpan.setStatus(StatusCode.ERROR, "Exception thrown on publish RPC."); + publishRpcSpan.recordException(t); + publishRpcSpan.end(); + } + } + + void startSubscriberSpan(PubsubMessageWrapper message, boolean exactlyOnceDeliveryEnabled) { + if (!enabled) { + return; + } + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + message.getSubscriptionName(), message.getSubscriptionProject(), "onResponse", null); + + attributesBuilder + .put(SemanticAttributes.MESSAGING_MESSAGE_ID, message.getMessageId()) + .put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()) + .put(MESSAGE_ACK_ID_ATTR_KEY, message.getAckId()) + .put(MESSAGE_EXACTLY_ONCE_ATTR_KEY, exactlyOnceDeliveryEnabled); + if (!message.getOrderingKey().isEmpty()) { + attributesBuilder.put(ORDERING_KEY_ATTR_KEY, message.getOrderingKey()); + } + if (message.getDeliveryAttempt() > 0) { + attributesBuilder.put(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, message.getDeliveryAttempt()); + } + Attributes attributes = attributesBuilder.build(); + Context publisherSpanContext = message.extractSpanContext(attributes); + message.setPublisherSpan(Span.fromContextOrNull(publisherSpanContext)); + message.setSubscriberSpan( + tracer + .spanBuilder(message.getSubscriptionName() + " subscribe") + .setSpanKind(SpanKind.CONSUMER) + .setParent(publisherSpanContext) + .setAllAttributes(attributes) + .startSpan()); + } + + void endSubscriberSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscriberSpan(); + } + + void setSubscriberSpanExpirationResult(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.setSubscriberSpanExpirationResult(); + } + + void setSubscriberSpanException(PubsubMessageWrapper message, Throwable t, String exception) { + if (!enabled) { + return; + } + message.setSubscriberSpanException(t, exception); + } + + /** Creates a span for subscribe concurrency control as a child of the parent subscriber span. */ + void startSubscribeConcurrencyControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + message.setSubscribeConcurrencyControlSpan( + startChildSpan(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME, subscriberSpan)); + } + } + + void endSubscribeConcurrencyControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscribeConcurrencyControlSpan(); + } + + void setSubscribeConcurrencyControlSpanException(PubsubMessageWrapper message, Throwable t) { + if (!enabled) { + return; + } + message.setSubscribeConcurrencyControlSpanException(t); + } + + /** + * Creates a span for subscribe ordering key scheduling as a child of the parent subscriber span. + */ + void startSubscribeSchedulerSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + message.setSubscribeSchedulerSpan( + startChildSpan(SUBSCRIBE_SCHEDULER_SPAN_NAME, subscriberSpan)); + } + } + + void endSubscribeSchedulerSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscribeSchedulerSpan(); + } + + /** Creates a span for subscribe message processing as a child of the parent subscriber span. */ + void startSubscribeProcessSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + Span subscribeProcessSpan = + startChildSpan(message.getSubscriptionName() + " process", subscriberSpan); + subscribeProcessSpan.setAttribute( + SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE); + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) { + subscribeProcessSpan.addLink(publisherSpan.getSpanContext()); + } + message.setSubscribeProcessSpan(subscribeProcessSpan); + } + } + + void endSubscribeProcessSpan(PubsubMessageWrapper message, String action) { + if (!enabled) { + return; + } + message.endSubscribeProcessSpan(action); + } + + /** + * Creates, starts, and returns spans for ModAck, Nack, and Ack RPC requests. Bi-directional links + * to parent subscribe span for sampled messages are added. + */ + Span startSubscribeRpcSpan( + String subscription, + String rpcOperation, + List messages, + int ackDeadline, + boolean isReceiptModack) { + if (!enabled) { + return null; + } + String codeFunction = rpcOperation == "ack" ? "sendAckOperations" : "sendModAckOperations"; + SubscriptionName subscriptionName = SubscriptionName.parse(subscription); + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + subscriptionName.getSubscription(), + subscriptionName.getProject(), + codeFunction, + rpcOperation) + .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()); + + // Ack deadline and receipt modack are specific to the modack operation + if (rpcOperation == "modack") { + attributesBuilder + .put(ACK_DEADLINE_ATTR_KEY, ackDeadline) + .put(RECEIPT_MODACK_ATTR_KEY, isReceiptModack); + } + + SpanBuilder rpcSpanBuilder = + tracer + .spanBuilder(subscriptionName.getSubscription() + " " + rpcOperation) + .setSpanKind(SpanKind.CLIENT) + .setAllAttributes(attributesBuilder.build()); + Attributes linkAttributes = + Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, rpcOperation).build(); + for (PubsubMessageWrapper message : messages) { + if (message.getSubscriberSpan().getSpanContext().isSampled()) { + rpcSpanBuilder.addLink(message.getSubscriberSpan().getSpanContext(), linkAttributes); + } + } + Span rpcSpan = rpcSpanBuilder.startSpan(); + + for (PubsubMessageWrapper message : messages) { + if (rpcSpan.getSpanContext().isSampled()) { + message.getSubscriberSpan().addLink(rpcSpan.getSpanContext(), linkAttributes); + switch (rpcOperation) { + case "ack": + message.addAckStartEvent(); + break; + case "modack": + message.addModAckStartEvent(); + break; + case "nack": + message.addNackStartEvent(); + break; + } + } + } + return rpcSpan; + } + + /** Ends the given subscribe RPC span if it exists. */ + void endSubscribeRpcSpan(Span rpcSpan) { + if (!enabled) { + return; + } + if (rpcSpan != null) { + rpcSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown when handling a + * subscribe-side RPC. + */ + void setSubscribeRpcSpanException(Span rpcSpan, boolean isModack, int ackDeadline, Throwable t) { + if (!enabled) { + return; + } + if (rpcSpan != null) { + String operation = !isModack ? "ack" : (ackDeadline == 0 ? "nack" : "modack"); + rpcSpan.setStatus(StatusCode.ERROR, "Exception thrown on " + operation + " RPC."); + rpcSpan.recordException(t); + rpcSpan.end(); + } + } + + /** Adds the appropriate subscribe-side RPC end event. */ + void addEndRpcEvent( + PubsubMessageWrapper message, boolean rpcSampled, boolean isModack, int ackDeadline) { + if (!enabled || !rpcSampled) { + return; + } + if (!isModack) { + message.addAckEndEvent(); + } else if (ackDeadline == 0) { + message.addNackEndEvent(); + } else { + message.addModAckEndEvent(); + } + } +} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index efaba6cf1..99d0be17b 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -52,6 +52,9 @@ import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.TopicNames; import io.grpc.CallOptions; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.Tracer; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; @@ -93,6 +96,8 @@ public class Publisher implements PublisherInterface { private static final String GZIP_COMPRESSION = "gzip"; + private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; + private final String topicName; private final BatchingSettings batchingSettings; @@ -124,6 +129,10 @@ public class Publisher implements PublisherInterface { private final GrpcCallContext publishContext; private final GrpcCallContext publishContextWithCompression; + private final boolean enableOpenTelemetryTracing; + private final OpenTelemetry openTelemetry; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { return 1000L; @@ -152,6 +161,15 @@ private Publisher(Builder builder) throws IOException { this.messageTransform = builder.messageTransform; this.enableCompression = builder.enableCompression; this.compressionBytesThreshold = builder.compressionBytesThreshold; + this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + this.openTelemetry = builder.openTelemetry; + if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { + Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); + if (openTelemetryTracer != null) { + this.tracer = + new OpenTelemetryPubsubTracer(openTelemetryTracer, this.enableOpenTelemetryTracing); + } + } messagesBatches = new HashMap<>(); messagesBatchLock = new ReentrantLock(); @@ -259,17 +277,23 @@ public ApiFuture publish(PubsubMessage message) { + "Publisher client. Please create a Publisher client with " + "setEnableMessageOrdering(true) in the builder."); - final OutstandingPublish outstandingPublish = - new OutstandingPublish(messageTransform.apply(message)); + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicName).build(); + tracer.startPublisherSpan(messageWrapper); + + final OutstandingPublish outstandingPublish = new OutstandingPublish(messageWrapper); if (flowController != null) { + tracer.startPublishFlowControlSpan(messageWrapper); try { flowController.acquire(outstandingPublish.messageSize); + tracer.endPublishFlowControlSpan(messageWrapper); } catch (FlowController.FlowControlException e) { if (!orderingKey.isEmpty()) { sequentialExecutor.stopPublish(orderingKey); } outstandingPublish.publishResult.setException(e); + tracer.setPublishFlowControlSpanException(messageWrapper, e); return outstandingPublish.publishResult; } } @@ -277,6 +301,7 @@ public ApiFuture publish(PubsubMessage message) { List batchesToSend; messagesBatchLock.lock(); try { + tracer.startPublishBatchingSpan(messageWrapper); if (!orderingKey.isEmpty() && sequentialExecutor.keyHasError(orderingKey)) { outstandingPublish.publishResult.setException( SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION); @@ -452,12 +477,23 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch if (enableCompression && outstandingBatch.batchSizeBytes >= compressionBytesThreshold) { context = publishContextWithCompression; } + + int numMessagesInBatch = outstandingBatch.size(); + List pubsubMessagesList = new ArrayList(numMessagesInBatch); + List messageWrappers = outstandingBatch.getMessageWrappers(); + for (PubsubMessageWrapper messageWrapper : messageWrappers) { + tracer.endPublishBatchingSpan(messageWrapper); + pubsubMessagesList.add(messageWrapper.getPubsubMessage()); + } + + outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicName, messageWrappers); + return publisherStub .publishCallable() .futureCall( PublishRequest.newBuilder() .setTopic(topicName) - .addAllMessages(outstandingBatch.getMessages()) + .addAllMessages(pubsubMessagesList) .build(), context); } @@ -541,6 +577,7 @@ private final class OutstandingBatch { int attempt; int batchSizeBytes; final String orderingKey; + Span publishRpcSpan; OutstandingBatch( List outstandingPublishes, int batchSizeBytes, String orderingKey) { @@ -555,24 +592,29 @@ int size() { return outstandingPublishes.size(); } - private List getMessages() { - List results = new ArrayList<>(outstandingPublishes.size()); + private List getMessageWrappers() { + List results = new ArrayList<>(outstandingPublishes.size()); for (OutstandingPublish outstandingPublish : outstandingPublishes) { - results.add(outstandingPublish.message); + results.add(outstandingPublish.messageWrapper); } return results; } private void onFailure(Throwable t) { + tracer.setPublishRpcSpanException(publishRpcSpan, t); + for (OutstandingPublish outstandingPublish : outstandingPublishes) { if (flowController != null) { flowController.release(outstandingPublish.messageSize); } outstandingPublish.publishResult.setException(t); + tracer.endPublisherSpan(outstandingPublish.messageWrapper); } } private void onSuccess(Iterable results) { + tracer.endPublishRpcSpan(publishRpcSpan); + Iterator messagesResultsIt = outstandingPublishes.iterator(); for (String messageId : results) { OutstandingPublish nextPublish = messagesResultsIt.next(); @@ -580,19 +622,21 @@ private void onSuccess(Iterable results) { flowController.release(nextPublish.messageSize); } nextPublish.publishResult.set(messageId); + tracer.setPublisherMessageIdSpanAttribute(nextPublish.messageWrapper, messageId); + tracer.endPublisherSpan(nextPublish.messageWrapper); } } } private static final class OutstandingPublish { final SettableApiFuture publishResult; - final PubsubMessage message; + final PubsubMessageWrapper messageWrapper; final int messageSize; - OutstandingPublish(PubsubMessage message) { + OutstandingPublish(PubsubMessageWrapper messageWrapper) { this.publishResult = SettableApiFuture.create(); - this.message = message; - this.messageSize = message.getSerializedSize(); + this.messageWrapper = messageWrapper; + this.messageSize = messageWrapper.getPubsubMessage().getSerializedSize(); } } @@ -749,6 +793,9 @@ public PubsubMessage apply(PubsubMessage input) { private boolean enableCompression = DEFAULT_ENABLE_COMPRESSION; private long compressionBytesThreshold = DEFAULT_COMPRESSION_BYTES_THRESHOLD; + private boolean enableOpenTelemetryTracing = false; + private OpenTelemetry openTelemetry = null; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -880,6 +927,26 @@ public Builder setCompressionBytesThreshold(long compressionBytesThreshold) { return this; } + /** + * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of + * OpenTelemetry has been provied. Warning: traces are subject to change. The name and + * attributes of a span might change without notice. Only use run traces interactively. Don't + * use in automation. Running non-interactive traces can cause problems if the underlying trace + * architecture changes without notice. + */ + + /** Gives the ability to enable Open Telemetry Tracing */ + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + /** Sets the instance of OpenTelemetry for the Publisher class. */ + public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { + this.openTelemetry = openTelemetry; + return this; + } + /** Returns the default BatchingSettings used by the client if settings are not provided. */ public static BatchingSettings getDefaultBatchingSettings() { return DEFAULT_BATCHING_SETTINGS; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java new file mode 100644 index 000000000..94fd13085 --- /dev/null +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -0,0 +1,430 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.propagation.W3CTraceContextPropagator; +import io.opentelemetry.context.Context; +import io.opentelemetry.context.propagation.TextMapGetter; +import io.opentelemetry.context.propagation.TextMapSetter; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; + +/** + * A wrapper class for a {@link PubsubMessage} object that handles creation and tracking of + * OpenTelemetry {@link Span} objects for different operations that occur during publishing. + */ +public class PubsubMessageWrapper { + private PubsubMessage message; + + private final TopicName topicName; + private final SubscriptionName subscriptionName; + + // Attributes set only for messages received from a streaming pull response. + private final String ackId; + private final int deliveryAttempt; + + private static final String PUBLISH_START_EVENT = "publish start"; + private static final String PUBLISH_END_EVENT = "publish end"; + + private static final String MODACK_START_EVENT = "modack start"; + private static final String MODACK_END_EVENT = "modack end"; + private static final String NACK_START_EVENT = "nack start"; + private static final String NACK_END_EVENT = "nack end"; + private static final String ACK_START_EVENT = "ack start"; + private static final String ACK_END_EVENT = "ack end"; + + private static final String GOOGCLIENT_PREFIX = "googclient_"; + + private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; + + private Span publisherSpan; + private Span publishFlowControlSpan; + private Span publishBatchingSpan; + + private Span subscriberSpan; + private Span subscribeConcurrencyControlSpan; + private Span subscribeSchedulerSpan; + private Span subscribeProcessSpan; + + private PubsubMessageWrapper(Builder builder) { + this.message = builder.message; + this.topicName = builder.topicName; + this.subscriptionName = builder.subscriptionName; + this.ackId = builder.ackId; + this.deliveryAttempt = builder.deliveryAttempt; + } + + static Builder newBuilder(PubsubMessage message, String topicName) { + return new Builder(message, topicName); + } + + static Builder newBuilder( + PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + return new Builder(message, subscriptionName, ackId, deliveryAttempt); + } + + /** Returns the PubsubMessage associated with this wrapper. */ + PubsubMessage getPubsubMessage() { + return message; + } + + void setPubsubMessage(PubsubMessage message) { + this.message = message; + } + + /** Returns the TopicName for this wrapper as a string. */ + String getTopicName() { + if (topicName != null) { + return topicName.getTopic(); + } + return ""; + } + + String getTopicProject() { + if (topicName != null) { + return topicName.getProject(); + } + return ""; + } + + /** Returns the SubscriptionName for this wrapper as a string. */ + String getSubscriptionName() { + if (subscriptionName != null) { + return subscriptionName.getSubscription(); + } + return ""; + } + + String getSubscriptionProject() { + if (subscriptionName != null) { + return subscriptionName.getProject(); + } + return ""; + } + + String getMessageId() { + return message.getMessageId(); + } + + String getAckId() { + return ackId; + } + + int getDataSize() { + return message.getData().size(); + } + + String getOrderingKey() { + return message.getOrderingKey(); + } + + int getDeliveryAttempt() { + return deliveryAttempt; + } + + Span getPublisherSpan() { + return publisherSpan; + } + + void setPublisherSpan(Span span) { + this.publisherSpan = span; + } + + void setPublishFlowControlSpan(Span span) { + this.publishFlowControlSpan = span; + } + + void setPublishBatchingSpan(Span span) { + this.publishBatchingSpan = span; + } + + Span getSubscriberSpan() { + return subscriberSpan; + } + + void setSubscriberSpan(Span span) { + this.subscriberSpan = span; + } + + void setSubscribeConcurrencyControlSpan(Span span) { + this.subscribeConcurrencyControlSpan = span; + } + + void setSubscribeSchedulerSpan(Span span) { + this.subscribeSchedulerSpan = span; + } + + void setSubscribeProcessSpan(Span span) { + this.subscribeProcessSpan = span; + } + + /** Creates a publish start event that is tied to the publish RPC span time. */ + void addPublishStartEvent() { + if (publisherSpan != null) { + publisherSpan.addEvent(PUBLISH_START_EVENT); + } + } + + /** + * Sets the message ID attribute in the publisher parent span. This is called after the publish + * RPC returns with a message ID. + */ + void setPublisherMessageIdSpanAttribute(String messageId) { + if (publisherSpan != null) { + publisherSpan.setAttribute(SemanticAttributes.MESSAGING_MESSAGE_ID, messageId); + } + } + + /** Ends the publisher parent span if it exists. */ + void endPublisherSpan() { + if (publisherSpan != null) { + publisherSpan.addEvent(PUBLISH_END_EVENT); + publisherSpan.end(); + } + } + + /** Ends the publish flow control span if it exists. */ + void endPublishFlowControlSpan() { + if (publishFlowControlSpan != null) { + publishFlowControlSpan.end(); + } + } + + /** Ends the publish batching span if it exists. */ + void endPublishBatchingSpan() { + if (publishBatchingSpan != null) { + publishBatchingSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown during flow control. + */ + void setPublishFlowControlSpanException(Throwable t) { + if (publishFlowControlSpan != null) { + publishFlowControlSpan.setStatus( + StatusCode.ERROR, "Exception thrown during publish flow control."); + publishFlowControlSpan.recordException(t); + endAllPublishSpans(); + } + } + + /** + * Creates start and end events for ModAcks, Nacks, and Acks that are tied to the corresponding + * RPC span start and end times. + */ + void addModAckStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(MODACK_START_EVENT); + } + } + + void addModAckEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(MODACK_END_EVENT); + } + } + + void addNackStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(NACK_START_EVENT); + } + } + + void addNackEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(NACK_END_EVENT); + } + } + + void addAckStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(ACK_START_EVENT); + } + } + + void addAckEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(ACK_END_EVENT); + } + } + + /** Ends the subscriber parent span if exists. */ + void endSubscriberSpan() { + if (subscriberSpan != null) { + subscriberSpan.end(); + } + } + + /** Ends the subscribe concurreny control span if exists. */ + void endSubscribeConcurrencyControlSpan() { + if (subscribeConcurrencyControlSpan != null) { + subscribeConcurrencyControlSpan.end(); + } + } + + /** Ends the subscribe scheduler span if exists. */ + void endSubscribeSchedulerSpan() { + if (subscribeSchedulerSpan != null) { + subscribeSchedulerSpan.end(); + } + } + + /** + * Ends the subscribe process span if it exists, creates an event with the appropriate result, and + * sets the result on the parent subscriber span. + */ + void endSubscribeProcessSpan(String action) { + if (subscribeProcessSpan != null) { + subscribeProcessSpan.addEvent(action + " called"); + subscribeProcessSpan.end(); + subscriberSpan.setAttribute(MESSAGE_RESULT_ATTR_KEY, action); + } + } + + /** Sets an exception on the subscriber span during Ack/ModAck/Nack failures */ + void setSubscriberSpanException(Throwable t, String exception) { + if (subscriberSpan != null) { + subscriberSpan.setStatus(StatusCode.ERROR, exception); + subscriberSpan.recordException(t); + endAllSubscribeSpans(); + } + } + + /** Sets result of the parent subscriber span to expired and ends its. */ + void setSubscriberSpanExpirationResult() { + if (subscriberSpan != null) { + subscriberSpan.setAttribute(MESSAGE_RESULT_ATTR_KEY, "expired"); + endSubscriberSpan(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown subscriber + * concurrency control. + */ + void setSubscribeConcurrencyControlSpanException(Throwable t) { + if (subscribeConcurrencyControlSpan != null) { + subscribeConcurrencyControlSpan.setStatus( + StatusCode.ERROR, "Exception thrown during subscribe concurrency control."); + subscribeConcurrencyControlSpan.recordException(t); + endAllSubscribeSpans(); + } + } + + /** Ends all publisher-side spans associated with this message wrapper. */ + private void endAllPublishSpans() { + endPublishFlowControlSpan(); + endPublishBatchingSpan(); + endPublisherSpan(); + } + + /** Ends all subscriber-side spans associated with this message wrapper. */ + private void endAllSubscribeSpans() { + endSubscribeConcurrencyControlSpan(); + endSubscribeSchedulerSpan(); + endSubscriberSpan(); + } + + /** + * Injects the span context into the attributes of a Pub/Sub message for propagation to the + * subscriber client. + */ + void injectSpanContext() { + TextMapSetter injectMessageAttributes = + new TextMapSetter() { + @Override + public void set(PubsubMessageWrapper carrier, String key, String value) { + PubsubMessage newMessage = + PubsubMessage.newBuilder(carrier.message) + .putAttributes(GOOGCLIENT_PREFIX + key, value) + .build(); + carrier.message = newMessage; + } + }; + W3CTraceContextPropagator.getInstance() + .inject(Context.current().with(publisherSpan), this, injectMessageAttributes); + } + + /** + * Extracts the span context from the attributes of a Pub/Sub message and creates the parent + * subscriber span using that context. + */ + Context extractSpanContext(Attributes attributes) { + TextMapGetter extractMessageAttributes = + new TextMapGetter() { + @Override + public String get(PubsubMessageWrapper carrier, String key) { + return carrier.message.getAttributesOrDefault(GOOGCLIENT_PREFIX + key, ""); + } + + public Iterable keys(PubsubMessageWrapper carrier) { + return carrier.message.getAttributesMap().keySet(); + } + }; + Context context = + W3CTraceContextPropagator.getInstance() + .extract(Context.current(), this, extractMessageAttributes); + return context; + } + + /** Builder of {@link PubsubMessageWrapper PubsubMessageWrapper}. */ + static final class Builder { + private PubsubMessage message = null; + private TopicName topicName = null; + private SubscriptionName subscriptionName = null; + private String ackId = null; + private int deliveryAttempt = 0; + + public Builder(PubsubMessage message, String topicName) { + this.message = message; + if (topicName != null) { + this.topicName = TopicName.parse(topicName); + } + } + + public Builder( + PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + this.message = message; + if (subscriptionName != null) { + this.subscriptionName = SubscriptionName.parse(subscriptionName); + } + this.ackId = ackId; + this.deliveryAttempt = deliveryAttempt; + } + + public Builder( + PubsubMessage message, + SubscriptionName subscriptionName, + String ackId, + int deliveryAttempt) { + this.message = message; + this.subscriptionName = subscriptionName; + this.ackId = ackId; + this.deliveryAttempt = deliveryAttempt; + } + + public PubsubMessageWrapper build() { + return new PubsubMessageWrapper(this); + } + } +} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 7849bdb74..60da55cee 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -50,6 +50,7 @@ import com.google.rpc.ErrorInfo; import io.grpc.Status; import io.grpc.protobuf.StatusProto; +import io.opentelemetry.api.trace.Span; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -118,6 +119,9 @@ final class StreamingSubscriberConnection extends AbstractApiService implements */ private final String clientId = UUID.randomUUID().toString(); + private final boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; systemExecutor = builder.systemExecutor; @@ -151,6 +155,11 @@ private StreamingSubscriberConnection(Builder builder) { messageDispatcherBuilder = MessageDispatcher.newBuilder(builder.receiverWithAckResponse); } + enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + if (builder.tracer != null) { + tracer = builder.tracer; + } + messageDispatcher = messageDispatcherBuilder .setAckProcessor(this) @@ -165,6 +174,9 @@ private StreamingSubscriberConnection(Builder builder) { .setExecutor(builder.executor) .setSystemExecutor(builder.systemExecutor) .setApiClock(builder.clock) + .setSubscriptionName(subscription) + .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) + .setTracer(tracer) .build(); flowControlSettings = builder.flowControlSettings; @@ -432,15 +444,19 @@ private void sendAckOperations( for (List ackRequestDataInRequestList : Lists.partition(ackRequestDataList, MAX_PER_REQUEST_CHANGES)) { List ackIdsInRequest = new ArrayList<>(); + List messagesInRequest = new ArrayList<>(); for (AckRequestData ackRequestData : ackRequestDataInRequestList) { ackIdsInRequest.add(ackRequestData.getAckId()); + messagesInRequest.add(ackRequestData.getMessageWrapper()); if (ackRequestData.hasMessageFuture()) { // Add to our pending requests if we care about the response pendingRequests.add(ackRequestData); } } + // Creates an Ack span to be passed to the callback + Span rpcSpan = tracer.startSubscribeRpcSpan(subscription, "ack", messagesInRequest, 0, false); ApiFutureCallback callback = - getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis); + getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis, rpcSpan); ApiFuture ackFuture = subscriberStub .acknowledgeCallable() @@ -463,19 +479,32 @@ private void sendModackOperations( for (List ackRequestDataInRequestList : Lists.partition(modackRequestData.getAckRequestData(), MAX_PER_REQUEST_CHANGES)) { List ackIdsInRequest = new ArrayList<>(); + List messagesInRequest = new ArrayList<>(); for (AckRequestData ackRequestData : ackRequestDataInRequestList) { ackIdsInRequest.add(ackRequestData.getAckId()); + messagesInRequest.add(ackRequestData.getMessageWrapper()); if (ackRequestData.hasMessageFuture()) { // Add to our pending requests if we care about the response pendingRequests.add(ackRequestData); } } + int deadlineExtensionSeconds = modackRequestData.getDeadlineExtensionSeconds(); + String rpcOperation = deadlineExtensionSeconds == 0 ? "nack" : "modack"; + // Creates either a ModAck span or a Nack span depending on the given ack deadline + Span rpcSpan = + tracer.startSubscribeRpcSpan( + subscription, + rpcOperation, + messagesInRequest, + deadlineExtensionSeconds, + modackRequestData.getIsReceiptModack()); ApiFutureCallback callback = getCallback( modackRequestData.getAckRequestData(), - modackRequestData.getDeadlineExtensionSeconds(), + deadlineExtensionSeconds, true, - currentBackoffMillis); + currentBackoffMillis, + rpcSpan); ApiFuture modackFuture = subscriberStub .modifyAckDeadlineCallable() @@ -517,22 +546,36 @@ private ApiFutureCallback getCallback( List ackRequestDataList, int deadlineExtensionSeconds, boolean isModack, - long currentBackoffMillis) { + long currentBackoffMillis, + Span rpcSpan) { // This callback handles retries, and sets message futures // Check if ack or nack boolean setResponseOnSuccess = (!isModack || (deadlineExtensionSeconds == 0)) ? true : false; + boolean rpcSpanSampled = rpcSpan == null ? false : rpcSpan.getSpanContext().isSampled(); + return new ApiFutureCallback() { @Override public void onSuccess(Empty empty) { ackOperationsWaiter.incrementPendingCount(-1); + + tracer.endSubscribeRpcSpan(rpcSpan); + for (AckRequestData ackRequestData : ackRequestDataList) { // This will check if a response is needed, and if it has already been set ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); messageDispatcher.notifyAckSuccess(ackRequestData); // Remove from our pending operations pendingRequests.remove(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + if (!isModack || deadlineExtensionSeconds == 0) { + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + } } } @@ -544,10 +587,23 @@ public void onFailure(Throwable t) { Level level = isAlive() ? Level.WARNING : Level.FINER; logger.log(level, "failed to send operations", t); + tracer.setSubscribeRpcSpanException(rpcSpan, isModack, deadlineExtensionSeconds, t); + if (!getExactlyOnceDeliveryEnabled()) { + if (enableOpenTelemetryTracing) { + for (AckRequestData ackRequestData : ackRequestDataList) { + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + if (!isModack || deadlineExtensionSeconds == 0) { + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + } + } + } return; } - List ackRequestDataArrayRetryList = new ArrayList<>(); try { Map metadataMap = getMetadataMapFromThrowable(t); @@ -569,14 +625,37 @@ public void onFailure(Throwable t) { errorMessage); ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); } else { logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Unknown error message"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Unknown error message"); } } else { ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); messageDispatcher.notifyAckSuccess(ackRequestData); + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); } // Remove from our pending pendingRequests.remove(ackRequestData); @@ -637,6 +716,9 @@ public static final class Builder { private ScheduledExecutorService systemExecutor; private ApiClock clock; + private boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer; + protected Builder(MessageReceiver receiver) { this.receiver = receiver; } @@ -727,6 +809,16 @@ public Builder setClock(ApiClock clock) { return this; } + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + public Builder setTracer(OpenTelemetryPubsubTracer tracer) { + this.tracer = tracer; + return this; + } + public StreamingSubscriberConnection build() { return new StreamingSubscriberConnection(this); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 1723c72b1..e9926fa58 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -43,6 +43,8 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PubsubMessage; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.Tracer; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -117,6 +119,8 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); + private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; + private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final boolean useLegacyFlowControl; @@ -145,6 +149,10 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final ApiClock clock; private final List backgroundResources = new ArrayList<>(); + private final boolean enableOpenTelemetryTracing; + private final OpenTelemetry openTelemetry; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private Subscriber(Builder builder) { receiver = builder.receiver; receiverWithAckResponse = builder.receiverWithAckResponse; @@ -199,6 +207,16 @@ private Subscriber(Builder builder) { throw new IllegalStateException(e); } + this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + this.openTelemetry = builder.openTelemetry; + if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { + Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); + if (openTelemetryTracer != null) { + this.tracer = + new OpenTelemetryPubsubTracer(openTelemetryTracer, this.enableOpenTelemetryTracing); + } + } + streamingSubscriberConnections = new ArrayList(numPullers); // We regularly look up the distribution for a good subscription deadline. @@ -386,6 +404,8 @@ private void startStreamingConnections() { .setExecutor(executor) .setSystemExecutor(alarmsExecutor) .setClock(clock) + .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) + .setTracer(tracer) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -495,6 +515,9 @@ public static final class Builder { private String endpoint = null; private String universeDomain = null; + private boolean enableOpenTelemetryTracing = false; + private OpenTelemetry openTelemetry = null; + Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; this.receiver = receiver; @@ -684,6 +707,26 @@ Builder setClock(ApiClock clock) { return this; } + /** + * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of + * OpenTelemetry has been provied. Warning: traces are subject to change. The name and + * attributes of a span might change without notice. Only use run traces interactively. Don't + * use in automation. Running non-interactive traces can cause problems if the underlying trace + * architecture changes without notice. + */ + + /** Gives the ability to enable Open Telemetry Tracing */ + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + /** Sets the instance of OpenTelemetry for the Publisher class. */ + public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { + this.openTelemetry = openTelemetry; + return this; + } + /** Returns the default FlowControlSettings used by the client if settings are not provided. */ public static FlowControlSettings getDefaultFlowControlSettings() { return DEFAULT_FLOW_CONTROL_SETTINGS; diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java new file mode 100644 index 000000000..b4433f41e --- /dev/null +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.sdk.testing.assertj.AttributesAssert; +import io.opentelemetry.sdk.testing.assertj.EventDataAssert; +import io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions; +import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; +import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; +import io.opentelemetry.sdk.trace.data.LinkData; +import io.opentelemetry.sdk.trace.data.SpanData; +import io.opentelemetry.sdk.trace.data.StatusData; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; +import java.util.Arrays; +import java.util.List; +import org.junit.Test; + +public class OpenTelemetryTest { + private static final TopicName FULL_TOPIC_NAME = + TopicName.parse("projects/test-project/topics/test-topic"); + private static final SubscriptionName FULL_SUBSCRIPTION_NAME = + SubscriptionName.parse("projects/test-project/subscriptions/test-sub"); + private static final String PROJECT_NAME = "test-project"; + private static final String ORDERING_KEY = "abc"; + private static final String MESSAGE_ID = "m0"; + private static final String ACK_ID = "def"; + private static final int DELIVERY_ATTEMPT = 1; + private static final int ACK_DEADLINE = 10; + private static final boolean EXACTLY_ONCE_ENABLED = true; + + private static final String PUBLISHER_SPAN_NAME = FULL_TOPIC_NAME.getTopic() + " create"; + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String PUBLISH_RPC_SPAN_NAME = FULL_TOPIC_NAME.getTopic() + " publish"; + private static final String PUBLISH_START_EVENT = "publish start"; + private static final String PUBLISH_END_EVENT = "publish end"; + + private static final String SUBSCRIBER_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " subscribe"; + private static final String SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME = + "subscriber concurrency control"; + private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + private static final String SUBSCRIBE_PROCESS_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " process"; + private static final String SUBSCRIBE_MODACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " modack"; + private static final String SUBSCRIBE_ACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " ack"; + private static final String SUBSCRIBE_NACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " nack"; + + private static final String PROCESS_ACTION = "ack"; + private static final String MODACK_START_EVENT = "modack start"; + private static final String MODACK_END_EVENT = "modack end"; + private static final String NACK_START_EVENT = "nack start"; + private static final String NACK_END_EVENT = "nack end"; + private static final String ACK_START_EVENT = "ack start"; + private static final String ACK_END_EVENT = "ack end"; + + private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; + private static final String PROJECT_ATTR_KEY = "gcp.project_id"; + private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; + private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; + private static final String ACK_DEADLINE_ATTR_KEY = "messaging.gcp_pubsub.message.ack_deadline"; + private static final String RECEIPT_MODACK_ATTR_KEY = "messaging.gcp_pubsub.is_receipt_modack"; + private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; + private static final String MESSAGE_EXACTLY_ONCE_ATTR_KEY = + "messaging.gcp_pubsub.message.exactly_once_delivery"; + private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; + private static final String MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY = + "messaging.gcp_pubsub.message.delivery_attempt"; + + private static final String TRACEPARENT_ATTRIBUTE = "googclient_traceparent"; + + private static final OpenTelemetryRule openTelemetryTesting = OpenTelemetryRule.create(); + + @Test + public void testPublishSpansSuccess() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + List messageWrappers = Arrays.asList(messageWrapper); + + long messageSize = messageWrapper.getPubsubMessage().getData().size(); + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + // Call all span start/end methods in the expected order + tracer.startPublisherSpan(messageWrapper); + tracer.startPublishFlowControlSpan(messageWrapper); + tracer.endPublishFlowControlSpan(messageWrapper); + tracer.startPublishBatchingSpan(messageWrapper); + tracer.endPublishBatchingSpan(messageWrapper); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + tracer.endPublishRpcSpan(publishRpcSpan); + tracer.setPublisherMessageIdSpanAttribute(messageWrapper, MESSAGE_ID); + tracer.endPublisherSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData batchingSpanData = allSpans.get(1); + SpanData publishRpcSpanData = allSpans.get(2); + SpanData publisherSpanData = allSpans.get(3); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert batchingSpanDataAssert = OpenTelemetryAssertions.assertThat(batchingSpanData); + batchingSpanDataAssert + .hasName(PUBLISH_BATCHING_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + // Check span data, links, and attributes for the publish RPC span + SpanDataAssert publishRpcSpanDataAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData); + publishRpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List publishRpcLinks = publishRpcSpanData.getLinks(); + assertEquals(messageWrappers.size(), publishRpcLinks.size()); + assertEquals(publisherSpanData.getSpanContext(), publishRpcLinks.get(0).getSpanContext()); + + assertEquals(6, publishRpcSpanData.getAttributes().size()); + AttributesAssert publishRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData.getAttributes()); + publishRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "publishCall") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "publish") + .containsEntry(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messageWrappers.size()); + + // Check span data, events, links, and attributes for the publisher create span + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + + assertEquals(2, publisherSpanData.getEvents().size()); + EventDataAssert startEventAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getEvents().get(0)); + startEventAssert.hasName(PUBLISH_START_EVENT); + EventDataAssert endEventAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getEvents().get(1)); + endEventAssert.hasName(PUBLISH_END_EVENT); + + List publisherLinks = publisherSpanData.getLinks(); + assertEquals(1, publisherLinks.size()); + assertEquals(publishRpcSpanData.getSpanContext(), publisherLinks.get(0).getSpanContext()); + + assertEquals(8, publisherSpanData.getAttributes().size()); + AttributesAssert publisherSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getAttributes()); + publisherSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "publish") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "create") + .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) + .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) + .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + + // Check that the message has the attribute containing the trace context. + PubsubMessage message = messageWrapper.getPubsubMessage(); + assertEquals(1, message.getAttributesMap().size()); + assertTrue(message.containsAttributes(TRACEPARENT_ATTRIBUTE)); + assertTrue( + message + .getAttributesOrDefault(TRACEPARENT_ATTRIBUTE, "") + .contains(publisherSpanData.getTraceId())); + assertTrue( + message + .getAttributesOrDefault(TRACEPARENT_ATTRIBUTE, "") + .contains(publisherSpanData.getSpanId())); + } + + @Test + public void testPublishFlowControlSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startPublisherSpan(messageWrapper); + tracer.startPublishFlowControlSpan(messageWrapper); + + Exception e = new Exception("test-exception"); + tracer.setPublishFlowControlSpanException(messageWrapper, e); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData publisherSpanData = allSpans.get(1); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + StatusData expectedStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown during publish flow control."); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testPublishRpcSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + + List messageWrappers = Arrays.asList(messageWrapper); + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startPublisherSpan(messageWrapper); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + + Exception e = new Exception("test-exception"); + tracer.setPublishRpcSpanException(publishRpcSpan, e); + tracer.endPublisherSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData rpcSpanData = allSpans.get(0); + SpanData publisherSpanData = allSpans.get(1); + + SpanDataAssert rpcSpanDataAssert = OpenTelemetryAssertions.assertThat(rpcSpanData); + StatusData expectedStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on publish RPC."); + rpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testSubscribeSpansSuccess() { + openTelemetryTesting.clearSpans(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + PubsubMessageWrapper publishMessageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + // Initialize the Publisher span to inject the context in the message + tracer.startPublisherSpan(publishMessageWrapper); + tracer.endPublisherSpan(publishMessageWrapper); + + PubsubMessage publishedMessage = + publishMessageWrapper.getPubsubMessage().toBuilder().setMessageId(MESSAGE_ID).build(); + PubsubMessageWrapper subscribeMessageWrapper = + PubsubMessageWrapper.newBuilder( + publishedMessage, FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, 1) + .build(); + List subscribeMessageWrappers = Arrays.asList(subscribeMessageWrapper); + + long messageSize = subscribeMessageWrapper.getPubsubMessage().getData().size(); + + // Call all span start/end methods in the expected order + tracer.startSubscriberSpan(subscribeMessageWrapper, EXACTLY_ONCE_ENABLED); + tracer.startSubscribeConcurrencyControlSpan(subscribeMessageWrapper); + tracer.endSubscribeConcurrencyControlSpan(subscribeMessageWrapper); + tracer.startSubscribeSchedulerSpan(subscribeMessageWrapper); + tracer.endSubscribeSchedulerSpan(subscribeMessageWrapper); + tracer.startSubscribeProcessSpan(subscribeMessageWrapper); + tracer.endSubscribeProcessSpan(subscribeMessageWrapper, PROCESS_ACTION); + Span subscribeModackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), + "modack", + subscribeMessageWrappers, + ACK_DEADLINE, + true); + tracer.endSubscribeRpcSpan(subscribeModackRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, ACK_DEADLINE); + Span subscribeAckRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "ack", subscribeMessageWrappers, 0, false); + tracer.endSubscribeRpcSpan(subscribeAckRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, false, 0); + Span subscribeNackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "nack", subscribeMessageWrappers, 0, false); + tracer.endSubscribeRpcSpan(subscribeNackRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, 0); + tracer.endSubscriberSpan(subscribeMessageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(8, allSpans.size()); + + SpanData publisherSpanData = allSpans.get(0); + SpanData concurrencyControlSpanData = allSpans.get(1); + SpanData schedulerSpanData = allSpans.get(2); + SpanData processSpanData = allSpans.get(3); + SpanData modackRpcSpanData = allSpans.get(4); + SpanData ackRpcSpanData = allSpans.get(5); + SpanData nackRpcSpanData = allSpans.get(6); + SpanData subscriberSpanData = allSpans.get(7); + + SpanDataAssert concurrencyControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(concurrencyControlSpanData); + concurrencyControlSpanDataAssert + .hasName(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + SpanDataAssert schedulerSpanDataAssert = OpenTelemetryAssertions.assertThat(schedulerSpanData); + schedulerSpanDataAssert + .hasName(SUBSCRIBE_SCHEDULER_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + SpanDataAssert processSpanDataAssert = OpenTelemetryAssertions.assertThat(processSpanData); + processSpanDataAssert + .hasName(SUBSCRIBE_PROCESS_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + assertEquals(1, processSpanData.getEvents().size()); + EventDataAssert actionCalledEventAssert = + OpenTelemetryAssertions.assertThat(processSpanData.getEvents().get(0)); + actionCalledEventAssert.hasName(PROCESS_ACTION + " called"); + + // Check span data, links, and attributes for the modack RPC span + SpanDataAssert modackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(modackRpcSpanData); + modackRpcSpanDataAssert + .hasName(SUBSCRIBE_MODACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List modackRpcLinks = modackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), modackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), modackRpcLinks.get(0).getSpanContext()); + + assertEquals(8, modackRpcSpanData.getAttributes().size()); + AttributesAssert modackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(modackRpcSpanData.getAttributes()); + modackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "modack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()) + .containsEntry(ACK_DEADLINE_ATTR_KEY, 10) + .containsEntry(RECEIPT_MODACK_ATTR_KEY, true); + + // Check span data, links, and attributes for the ack RPC span + SpanDataAssert ackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(ackRpcSpanData); + ackRpcSpanDataAssert + .hasName(SUBSCRIBE_ACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List ackRpcLinks = ackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), ackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), ackRpcLinks.get(0).getSpanContext()); + + assertEquals(6, ackRpcSpanData.getAttributes().size()); + AttributesAssert ackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(ackRpcSpanData.getAttributes()); + ackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "ack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + + // Check span data, links, and attributes for the nack RPC span + SpanDataAssert nackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData); + nackRpcSpanDataAssert + .hasName(SUBSCRIBE_NACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List nackRpcLinks = nackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), nackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), nackRpcLinks.get(0).getSpanContext()); + + assertEquals(6, nackRpcSpanData.getAttributes().size()); + AttributesAssert nackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(nackRpcSpanData.getAttributes()); + nackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "nack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + + // Check span data, events, links, and attributes for the publisher create span + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasParent(publisherSpanData) + .hasEnded(); + + assertEquals(6, subscriberSpanData.getEvents().size()); + EventDataAssert startModackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(0)); + startModackEventAssert.hasName(MODACK_START_EVENT); + EventDataAssert endModackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(1)); + endModackEventAssert.hasName(MODACK_END_EVENT); + EventDataAssert startAckEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(2)); + startAckEventAssert.hasName(ACK_START_EVENT); + EventDataAssert endAckEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(3)); + endAckEventAssert.hasName(ACK_END_EVENT); + EventDataAssert startNackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(4)); + startNackEventAssert.hasName(NACK_START_EVENT); + EventDataAssert endNackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(5)); + endNackEventAssert.hasName(NACK_END_EVENT); + + List subscriberLinks = subscriberSpanData.getLinks(); + assertEquals(3, subscriberLinks.size()); + assertEquals(modackRpcSpanData.getSpanContext(), subscriberLinks.get(0).getSpanContext()); + assertEquals(ackRpcSpanData.getSpanContext(), subscriberLinks.get(1).getSpanContext()); + assertEquals(nackRpcSpanData.getSpanContext(), subscriberLinks.get(2).getSpanContext()); + + assertEquals(11, subscriberSpanData.getAttributes().size()); + AttributesAssert subscriberSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getAttributes()); + subscriberSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "onResponse") + .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) + .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) + .containsEntry(MESSAGE_ACK_ID_ATTR_KEY, ACK_ID) + .containsEntry(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, DELIVERY_ATTEMPT) + .containsEntry(MESSAGE_EXACTLY_ONCE_ATTR_KEY, EXACTLY_ONCE_ENABLED) + .containsEntry(MESSAGE_RESULT_ATTR_KEY, PROCESS_ACTION) + .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + } + + @Test + public void testSubscribeConcurrencyControlSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + tracer.startSubscribeConcurrencyControlSpan(messageWrapper); + + Exception e = new Exception("test-exception"); + tracer.setSubscribeConcurrencyControlSpanException(messageWrapper, e); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData concurrencyControlSpanData = allSpans.get(0); + SpanData subscriberSpanData = allSpans.get(1); + + SpanDataAssert concurrencyControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(concurrencyControlSpanData); + StatusData expectedStatus = + StatusData.create( + StatusCode.ERROR, "Exception thrown during subscribe concurrency control."); + concurrencyControlSpanDataAssert + .hasName(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testSubscriberSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + + Exception e = new Exception("test-exception"); + tracer.setSubscriberSpanException(messageWrapper, e, "Test exception"); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(1, allSpans.size()); + SpanData subscriberSpanData = allSpans.get(0); + + StatusData expectedStatus = StatusData.create(StatusCode.ERROR, "Test exception"); + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasNoParent() + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + } + + @Test + public void testSubscribeRpcSpanFailures() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + List messageWrappers = Arrays.asList(messageWrapper); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + Span subscribeModackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "modack", messageWrappers, ACK_DEADLINE, true); + Span subscribeAckRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "ack", messageWrappers, 0, false); + Span subscribeNackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "nack", messageWrappers, 0, false); + + Exception e = new Exception("test-exception"); + tracer.setSubscribeRpcSpanException(subscribeModackRpcSpan, true, ACK_DEADLINE, e); + tracer.setSubscribeRpcSpanException(subscribeAckRpcSpan, false, 0, e); + tracer.setSubscribeRpcSpanException(subscribeNackRpcSpan, true, 0, e); + tracer.endSubscriberSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData modackSpanData = allSpans.get(0); + SpanData ackSpanData = allSpans.get(1); + SpanData nackSpanData = allSpans.get(2); + SpanData subscriberSpanData = allSpans.get(3); + + StatusData expectedModackStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on modack RPC."); + SpanDataAssert modackSpanDataAssert = OpenTelemetryAssertions.assertThat(modackSpanData); + modackSpanDataAssert + .hasName(SUBSCRIBE_MODACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedModackStatus) + .hasException(e) + .hasEnded(); + + StatusData expectedAckStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on ack RPC."); + SpanDataAssert ackSpanDataAssert = OpenTelemetryAssertions.assertThat(ackSpanData); + ackSpanDataAssert + .hasName(SUBSCRIBE_ACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedAckStatus) + .hasException(e) + .hasEnded(); + + StatusData expectedNackStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on nack RPC."); + SpanDataAssert nackSpanDataAssert = OpenTelemetryAssertions.assertThat(nackSpanData); + nackSpanDataAssert + .hasName(SUBSCRIBE_NACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedNackStatus) + .hasException(e) + .hasEnded(); + } + + private PubsubMessage getPubsubMessage() { + return PubsubMessage.newBuilder() + .setData(ByteString.copyFromUtf8("test-data")) + .setOrderingKey(ORDERING_KEY) + .build(); + } +} diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 9785b7716..fedd17436 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -48,6 +48,12 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions; +import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; +import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; +import io.opentelemetry.sdk.trace.data.SpanData; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; @@ -74,6 +80,11 @@ public class PublisherImplTest { private static final TransportChannelProvider TEST_CHANNEL_PROVIDER = LocalChannelProvider.create("test-server"); + private static final String PUBLISHER_SPAN_NAME = TEST_TOPIC.getTopic() + " create"; + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String PUBLISH_RPC_SPAN_NAME = TEST_TOPIC.getTopic() + " publish"; + private FakeScheduledExecutorService fakeExecutor; private FakePublisherServiceImpl testPublisherServiceImpl; @@ -1304,6 +1315,70 @@ public void run() { publish4Completed.await(); } + @Test + public void testPublishOpenTelemetryTracing() throws Exception { + OpenTelemetryRule openTelemetryTesting = OpenTelemetryRule.create(); + OpenTelemetry openTelemetry = openTelemetryTesting.getOpenTelemetry(); + final Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) + .setMaxOutstandingElementCount(2L) + .setMaxOutstandingRequestBytes(100L) + .build()) + .build()) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + ApiFuture publishFuture = sendTestMessage(publisher, "A"); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + assertEquals("1", publishFuture.get()); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData batchingSpanData = allSpans.get(1); + SpanData publishRpcSpanData = allSpans.get(2); + SpanData publisherSpanData = allSpans.get(3); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert batchingSpanDataAssert = OpenTelemetryAssertions.assertThat(batchingSpanData); + batchingSpanDataAssert + .hasName(PUBLISH_BATCHING_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert publishRpcSpanDataAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData); + publishRpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + SpanDataAssert publishSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publishSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + private Builder getTestPublisherBuilder() { return Publisher.newBuilder(TEST_TOPIC) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) diff --git a/pom.xml b/pom.xml index 33ba52966..2c816aabf 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,12 @@ + + org.assertj + assertj-core + 3.26.0 + test + diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 604b622d3..6196121dd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -93,6 +93,11 @@ google-cloud-storage 2.43.1 + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 12bf9d92c..3e5f9e9d5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -92,6 +92,11 @@ google-cloud-storage 2.43.1 + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 8720ef215..ba6fb65d9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -67,6 +67,11 @@ com.google.cloud google-cloud-storage + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + org.apache.avro avro From 71c2e762e94895c465c4e737ed8bf7bc583a9c14 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 03:02:01 +0200 Subject: [PATCH 295/656] deps: update dependency org.assertj:assertj-core to v3.26.3 (#2204) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2c816aabf..9a225a981 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.26.0 + 3.26.3 test From 76f17e4149bf369f2be12fe9d316a23a7f49f137 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 03:02:15 +0200 Subject: [PATCH 296/656] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 (#2205) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6196121dd..da0ac10b1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3e5f9e9d5..ab9ef7c47 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ba6fb65d9..ec07da956 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 org.apache.avro From 97d529293e1a2e4ec14110213940d10a88013857 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:40:06 -0400 Subject: [PATCH 297/656] chore(main): release 1.132.5-SNAPSHOT (#2203) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index beff026ac..ae20af593 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.4 + 1.132.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 46fe71d26..bce1d9e5a 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 8d4b1bf2f..40ac5c98c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 9a225a981..fef252580 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.4 + 1.132.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index b8b27d3cd..9620d5187 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ab9ef7c47..3ee0f74d6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 56fa56c2c..3ae78d30e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.4:1.132.4 -grpc-google-cloud-pubsub-v1:1.114.4:1.114.4 -proto-google-cloud-pubsub-v1:1.114.4:1.114.4 +google-cloud-pubsub:1.132.4:1.132.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT From a3b65396a8ac63384e46a5e35a30a1a36890ea01 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:56:24 +0000 Subject: [PATCH 298/656] chore(main): release 1.133.0 (#2206) :robot: I have created a release *beep* *boop* --- ## [1.133.0](https://togithub.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) ### Features * [java] allow passing libraries_bom_version from env ([#1967](https://togithub.com/googleapis/java-pubsub/issues/1967)) ([#2033](https://togithub.com/googleapis/java-pubsub/issues/2033)) ([825c5f8](https://togithub.com/googleapis/java-pubsub/commit/825c5f83e0fd2fd6b1f4856b9c555d71110a03e1)) * Add `libraries_bom_version` in metadata ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://togithub.com/googleapis/java-pubsub/issues/1990)) ([18cfa73](https://togithub.com/googleapis/java-pubsub/commit/18cfa73208bdf9b6a1a597bac740056abfcb03ef)) * Add `use_table_schema` field to BigQueryConfig ([#1838](https://togithub.com/googleapis/java-pubsub/issues/1838)) ([8653f4f](https://togithub.com/googleapis/java-pubsub/commit/8653f4f3dbd61466b8ea05b342c5f66c9e536cf1)) * Add an API method for reordering firewall policies ([#1868](https://togithub.com/googleapis/java-pubsub/issues/1868)) ([2039f7e](https://togithub.com/googleapis/java-pubsub/commit/2039f7e9bee9db1991fae1118e4a6b8ad88ea30c)) * Add custom datetime format for Cloud Storage subscriptions ([#1970](https://togithub.com/googleapis/java-pubsub/issues/1970)) ([7113f06](https://togithub.com/googleapis/java-pubsub/commit/7113f065973bb8b56ab811e0589ffb7975873679)) * Add OpenTelemetry tracing to the Publisher and Subscriber ([#2086](https://togithub.com/googleapis/java-pubsub/issues/2086)) ([db522b6](https://togithub.com/googleapis/java-pubsub/commit/db522b60f1bbec9cc1bfa0c37477044fd2f807c7)) * Add service_account_email for export subscriptions ([#2054](https://togithub.com/googleapis/java-pubsub/issues/2054)) ([670db3e](https://togithub.com/googleapis/java-pubsub/commit/670db3e1b665e6f5aec3cd7bf3639e9242f20151)) * Add universe domain support for Java ([#1904](https://togithub.com/googleapis/java-pubsub/issues/1904)) ([1e316d3](https://togithub.com/googleapis/java-pubsub/commit/1e316d33d2b7c87f6b76580cd9f905fe90a664c7)) * Add use_topic_schema for Cloud Storage Subscriptions ([#2082](https://togithub.com/googleapis/java-pubsub/issues/2082)) ([11d67d4](https://togithub.com/googleapis/java-pubsub/commit/11d67d44152ccca008dda071683d9932c59af41d)) * Enable hermetic library generation ([#2048](https://togithub.com/googleapis/java-pubsub/issues/2048)) ([283a5e8](https://togithub.com/googleapis/java-pubsub/commit/283a5e89837071678f8dd94b8b8adfad91a6766c)) * Receipt modack ([#1540](https://togithub.com/googleapis/java-pubsub/issues/1540)) ([74d8da9](https://togithub.com/googleapis/java-pubsub/commit/74d8da97c42b672e3f9f26b9a535d6bac948a402)) * Setup 1.123.x lts branch ([#1676](https://togithub.com/googleapis/java-pubsub/issues/1676)) ([a60b887](https://togithub.com/googleapis/java-pubsub/commit/a60b88772d69d367f90bbe61bc4e157338193b0f)) ### Bug Fixes * Concurrent modification of processing receievd messages ([#1807](https://togithub.com/googleapis/java-pubsub/issues/1807)) ([d162126](https://togithub.com/googleapis/java-pubsub/commit/d16212627b0d9b6616e0a9b20af2c430e2f6b36f)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.31.0 ([#1855](https://togithub.com/googleapis/java-pubsub/issues/1855)) ([7e733d2](https://togithub.com/googleapis/java-pubsub/commit/7e733d20093e0cd492758dd1ff3efc3a72eb1e0c)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://togithub.com/googleapis/java-pubsub/issues/1875)) ([0aac3e4](https://togithub.com/googleapis/java-pubsub/commit/0aac3e4c9c5671ce8f3b98056cc3710cd5ca9d07)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.37.0 ([#1938](https://togithub.com/googleapis/java-pubsub/issues/1938)) ([1435c4e](https://togithub.com/googleapis/java-pubsub/commit/1435c4e4d25d789fadbfc2c54c2f90b138693b40)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([09ee49a](https://togithub.com/googleapis/java-pubsub/commit/09ee49a8304089f4388cfbde58127d46fe07a5a1)) * Make retry policy back off more aggressively for RPCs that retry RESOURCE_EXHAUSTD ([#1704](https://togithub.com/googleapis/java-pubsub/issues/1704)) ([f61e7e0](https://togithub.com/googleapis/java-pubsub/commit/f61e7e0e2895a90e30ecf4dcbfa8c70022947d9e)) * Message ordering fix for [#1889](https://togithub.com/googleapis/java-pubsub/issues/1889) ([#1903](https://togithub.com/googleapis/java-pubsub/issues/1903)) ([22a87c6](https://togithub.com/googleapis/java-pubsub/commit/22a87c67f07b55266e277f83f5ceb17d9f32f67e)) * Swap writer and reader schema to correct places in sample ([#1849](https://togithub.com/googleapis/java-pubsub/issues/1849)) ([1c79ad7](https://togithub.com/googleapis/java-pubsub/commit/1c79ad7336f51ffd4e177be5c2f2a7de902b47b8)) * Temporarily remove publisher tests causing timeouts ([#1860](https://togithub.com/googleapis/java-pubsub/issues/1860)) ([a8fa24d](https://togithub.com/googleapis/java-pubsub/commit/a8fa24d7185d5345e746f8e2563afffe08f3bd6e)) * Update Publish retry backoff settings ([#1686](https://togithub.com/googleapis/java-pubsub/issues/1686)) ([63a74d9](https://togithub.com/googleapis/java-pubsub/commit/63a74d98fdee56a98819d135a676a67fcc24961a)) * Use message ordering enabled property that comes with streaming pull responses ([#1851](https://togithub.com/googleapis/java-pubsub/issues/1851)) ([d816138](https://togithub.com/googleapis/java-pubsub/commit/d8161380e232fd4be408e6298827423907a027fb)) ### Dependencies * Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://togithub.com/googleapis/java-pubsub/issues/2038)) ([1ab45c9](https://togithub.com/googleapis/java-pubsub/commit/1ab45c9eaee35d4bfeb332244c74f1253b77c166)) * Update actions/checkout action to v4 - abandoned ([#1719](https://togithub.com/googleapis/java-pubsub/issues/1719)) ([b82f15a](https://togithub.com/googleapis/java-pubsub/commit/b82f15a099f3366620f5e22764b043911ebd88d1)) * Update actions/checkout action to v4 ([#1712](https://togithub.com/googleapis/java-pubsub/issues/1712)) ([404c492](https://togithub.com/googleapis/java-pubsub/commit/404c492823306c1448c62383b9ea88cf9e43b970)) * Update actions/checkout action to v4 ([#1975](https://togithub.com/googleapis/java-pubsub/issues/1975)) ([618abdd](https://togithub.com/googleapis/java-pubsub/commit/618abdd44dd9670a5d6a1ca3c923e3d0621c6248)) * Update actions/github-script action to v7 ([#1976](https://togithub.com/googleapis/java-pubsub/issues/1976)) ([c836172](https://togithub.com/googleapis/java-pubsub/commit/c8361722544ec4170b94651e77b02634938c7883)) * Update actions/setup-java action to v4 ([#1978](https://togithub.com/googleapis/java-pubsub/issues/1978)) ([64a0df3](https://togithub.com/googleapis/java-pubsub/commit/64a0df337c91f965e4d8960801e10f90f78c46cd)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 ([#1633](https://togithub.com/googleapis/java-pubsub/issues/1633)) ([20096e7](https://togithub.com/googleapis/java-pubsub/commit/20096e7b64f9b62051f51ad28aa49b95f78b3e6b)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 ([#1656](https://togithub.com/googleapis/java-pubsub/issues/1656)) ([4fe4bc4](https://togithub.com/googleapis/java-pubsub/commit/4fe4bc49d82753e3e185f0a2c4694d80e48808f7)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([c51d396](https://togithub.com/googleapis/java-pubsub/commit/c51d39688464c51ffdb046368b4f8e926360d72e)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.1 ([#1697](https://togithub.com/googleapis/java-pubsub/issues/1697)) ([9e90790](https://togithub.com/googleapis/java-pubsub/commit/9e907901e0f5f78adfffb3e61974e9f8fd756f96)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.2 ([#1713](https://togithub.com/googleapis/java-pubsub/issues/1713)) ([32cb43c](https://togithub.com/googleapis/java-pubsub/commit/32cb43cce40f7a39602eb7d9b39a88eb229fc4ef)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.32.0 ([#1725](https://togithub.com/googleapis/java-pubsub/issues/1725)) ([f40f09a](https://togithub.com/googleapis/java-pubsub/commit/f40f09a185c035cc03b6be6ec62f880da9f7b377)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 ([#1750](https://togithub.com/googleapis/java-pubsub/issues/1750)) ([bcbfcd0](https://togithub.com/googleapis/java-pubsub/commit/bcbfcd0dd65c2ca0f20d3579109728737f1292bc)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 ([#1756](https://togithub.com/googleapis/java-pubsub/issues/1756)) ([239f474](https://togithub.com/googleapis/java-pubsub/commit/239f474fefd2313a6842c63c4202d835008647e3)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#1770](https://togithub.com/googleapis/java-pubsub/issues/1770)) ([db73af7](https://togithub.com/googleapis/java-pubsub/commit/db73af7bca53faae2e135ec9a1899e36ac19025c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#1795](https://togithub.com/googleapis/java-pubsub/issues/1795)) ([670daf1](https://togithub.com/googleapis/java-pubsub/commit/670daf1c74242dfa54e9747924d094cbcaac4d37)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.34.2 ([#1821](https://togithub.com/googleapis/java-pubsub/issues/1821)) ([c21ba1a](https://togithub.com/googleapis/java-pubsub/commit/c21ba1a51acf3411e7f9793f579a103ee1d36f38)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://togithub.com/googleapis/java-pubsub/issues/1840)) ([8c5117d](https://togithub.com/googleapis/java-pubsub/commit/8c5117d02511acd5469d863ea483f6e765e29292)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://togithub.com/googleapis/java-pubsub/issues/1878)) ([16dee8b](https://togithub.com/googleapis/java-pubsub/commit/16dee8bce115f59d8518ca1ae0e39dd87d81f802)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://togithub.com/googleapis/java-pubsub/issues/1898)) ([fc0dc96](https://togithub.com/googleapis/java-pubsub/commit/fc0dc962bcb7467fe4008263a80d1ed1e29167a0)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 ([#1918](https://togithub.com/googleapis/java-pubsub/issues/1918)) ([b8846f9](https://togithub.com/googleapis/java-pubsub/commit/b8846f9dbf71854af1379c40669e017dd4e005d1)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://togithub.com/googleapis/java-pubsub/issues/1931)) ([357c901](https://togithub.com/googleapis/java-pubsub/commit/357c901029a8bc5fb9800a7fae6f3d93080c0a0d)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 ([#1944](https://togithub.com/googleapis/java-pubsub/issues/1944)) ([76317e1](https://togithub.com/googleapis/java-pubsub/commit/76317e1fe60467b4bbe9b4867d0a29e983ce687f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 ([#1965](https://togithub.com/googleapis/java-pubsub/issues/1965)) ([ec3b386](https://togithub.com/googleapis/java-pubsub/commit/ec3b38665ddc6336f975d597d27c4aa25732c474)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([88517fe](https://togithub.com/googleapis/java-pubsub/commit/88517fe69a7a9577aa79b693957bf56a56d0980c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([a7f4afb](https://togithub.com/googleapis/java-pubsub/commit/a7f4afbc870536a7964594bc1d5b9a2eb5076cce)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 ([#2016](https://togithub.com/googleapis/java-pubsub/issues/2016)) ([beee523](https://togithub.com/googleapis/java-pubsub/commit/beee523ffc501a33b99a4ee82ccdb04b83391403)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 ([#2021](https://togithub.com/googleapis/java-pubsub/issues/2021)) ([0873594](https://togithub.com/googleapis/java-pubsub/commit/0873594c000f470c6193ebe8b4d091701670ef06)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://togithub.com/googleapis/java-pubsub/issues/2046)) ([f81c5e1](https://togithub.com/googleapis/java-pubsub/commit/f81c5e1b977e6da19aac6a40c1389ddcc4643e3c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 ([#2071](https://togithub.com/googleapis/java-pubsub/issues/2071)) ([0844bfb](https://togithub.com/googleapis/java-pubsub/commit/0844bfb0a500ae0b4a0f63fcb45ffffeaf609e3d)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 ([#2093](https://togithub.com/googleapis/java-pubsub/issues/2093)) ([217b8a3](https://togithub.com/googleapis/java-pubsub/commit/217b8a3f5419f80402d349b8873d7302eeb35e3f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 ([#2124](https://togithub.com/googleapis/java-pubsub/issues/2124)) ([24ebe24](https://togithub.com/googleapis/java-pubsub/commit/24ebe2402fe6278348d87b5a4259c365a819877f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://togithub.com/googleapis/java-pubsub/issues/2152)) ([1457489](https://togithub.com/googleapis/java-pubsub/commit/1457489cb51c12bc7ad8ab8ddcf2252a2f513a79)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://togithub.com/googleapis/java-pubsub/issues/2157)) ([d671347](https://togithub.com/googleapis/java-pubsub/commit/d671347004a68c53cdf3fdfb9d1a7ed992ee162f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://togithub.com/googleapis/java-pubsub/issues/2173)) ([294d039](https://togithub.com/googleapis/java-pubsub/commit/294d03974ab236c2ee5d0e420e8913eb6fc65fc9)) * Update dependency com.google.cloud:google-cloud-core to v2.20.0 ([#1629](https://togithub.com/googleapis/java-pubsub/issues/1629)) ([5f88f4f](https://togithub.com/googleapis/java-pubsub/commit/5f88f4f5f6fd1c8f2c0e7523b6919a6a477d785c)) * Update dependency com.google.cloud:google-cloud-core to v2.21.0 ([#1650](https://togithub.com/googleapis/java-pubsub/issues/1650)) ([69879d4](https://togithub.com/googleapis/java-pubsub/commit/69879d4c9d7a220f9c5a38b144d49e71ad3b94d0)) * Update dependency com.google.cloud:google-cloud-core to v2.21.1 ([#1662](https://togithub.com/googleapis/java-pubsub/issues/1662)) ([e10292c](https://togithub.com/googleapis/java-pubsub/commit/e10292c16f24870a91584f716545ff210302a7bc)) * Update dependency com.google.cloud:google-cloud-core to v2.22.0 ([#1687](https://togithub.com/googleapis/java-pubsub/issues/1687)) ([220f318](https://togithub.com/googleapis/java-pubsub/commit/220f3181562a848cd786cc0126e8e3ad382787c7)) * Update dependency com.google.cloud:google-cloud-core to v2.23.0 ([#1717](https://togithub.com/googleapis/java-pubsub/issues/1717)) ([929f778](https://togithub.com/googleapis/java-pubsub/commit/929f778e341aefe61206e55de828bf5a86e4efd3)) * Update dependency com.google.cloud:google-cloud-core to v2.24.1 ([#1737](https://togithub.com/googleapis/java-pubsub/issues/1737)) ([48a4432](https://togithub.com/googleapis/java-pubsub/commit/48a44321ad34edd8c297ccc57445ec36916171cb)) * Update dependency com.google.cloud:google-cloud-core to v2.25.0 ([#1764](https://togithub.com/googleapis/java-pubsub/issues/1764)) ([72404ea](https://togithub.com/googleapis/java-pubsub/commit/72404eabcc3695b8072091587515562d852a6108)) * Update dependency com.google.cloud:google-cloud-core to v2.26.0 ([#1780](https://togithub.com/googleapis/java-pubsub/issues/1780)) ([2d38175](https://togithub.com/googleapis/java-pubsub/commit/2d381751b51cb69b6ab248ee56fe9ce5bf7f5cd5)) * Update dependency com.google.cloud:google-cloud-core to v2.27.0 ([#1810](https://togithub.com/googleapis/java-pubsub/issues/1810)) ([edd89f3](https://togithub.com/googleapis/java-pubsub/commit/edd89f36061cd1518f81eb7b33e42cf5c35c659d)) * Update dependency com.google.cloud:google-cloud-core to v2.28.0 ([#1830](https://togithub.com/googleapis/java-pubsub/issues/1830)) ([8990b7c](https://togithub.com/googleapis/java-pubsub/commit/8990b7ca7cfbb08cd117f59bbf18c67dd1e7fb18)) * Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://togithub.com/googleapis/java-pubsub/issues/1853)) ([db36def](https://togithub.com/googleapis/java-pubsub/commit/db36deff6a4187cb98ddd68259efd6034762060e)) * Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://togithub.com/googleapis/java-pubsub/issues/1872)) ([06db9a0](https://togithub.com/googleapis/java-pubsub/commit/06db9a05a80b2d7f38aefff2d5e0b33e3fa1a2c9)) * Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://togithub.com/googleapis/java-pubsub/issues/1885)) ([a2063cf](https://togithub.com/googleapis/java-pubsub/commit/a2063cf8f1f792f5ad1994bff00f367b399c0ff2)) * Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://togithub.com/googleapis/java-pubsub/issues/1912)) ([9691c6f](https://togithub.com/googleapis/java-pubsub/commit/9691c6fabd82eb07fcb5135019be8d6fb260ce6f)) * Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://togithub.com/googleapis/java-pubsub/issues/1936)) ([785e6d1](https://togithub.com/googleapis/java-pubsub/commit/785e6d1e4f2234d2c49183fc06d3f73de537171b)) * Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://togithub.com/googleapis/java-pubsub/issues/1955)) ([d25d14a](https://togithub.com/googleapis/java-pubsub/commit/d25d14ad4694c5a914f9d07018cb0f6b9af4f9aa)) * Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://togithub.com/googleapis/java-pubsub/issues/1962)) ([96c1c97](https://togithub.com/googleapis/java-pubsub/commit/96c1c971fa4dced85cb2ed4e9db3e3fb47eb82c6)) * Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([b4573ae](https://togithub.com/googleapis/java-pubsub/commit/b4573ae6c93ca47bc802616ae3715fc10163bf2e)) * Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://togithub.com/googleapis/java-pubsub/issues/2011)) ([4a547d0](https://togithub.com/googleapis/java-pubsub/commit/4a547d08d02f3abaf23bfb8e5ed65e40c131bb94)) * Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://togithub.com/googleapis/java-pubsub/issues/2027)) ([535edf6](https://togithub.com/googleapis/java-pubsub/commit/535edf6496700bc5c5fb0b5cfa1cac6be5d62875)) * Update dependency com.google.cloud:google-cloud-core to v2.39.0 ([#2057](https://togithub.com/googleapis/java-pubsub/issues/2057)) ([43446d2](https://togithub.com/googleapis/java-pubsub/commit/43446d22ad2140f1b18fd1dde5dab03a901580bc)) * Update dependency com.google.cloud:google-cloud-core to v2.40.0 ([#2087](https://togithub.com/googleapis/java-pubsub/issues/2087)) ([26b01c9](https://togithub.com/googleapis/java-pubsub/commit/26b01c921f2700947a1653702be0234cf84cccef)) * Update dependency com.google.cloud:google-cloud-core to v2.41.0 ([#2120](https://togithub.com/googleapis/java-pubsub/issues/2120)) ([1f6428a](https://togithub.com/googleapis/java-pubsub/commit/1f6428a8b79369a239664b9ea7cd38e024db9724)) * Update dependency com.google.cloud:google-cloud-core to v2.42.0 ([#2140](https://togithub.com/googleapis/java-pubsub/issues/2140)) ([80dca35](https://togithub.com/googleapis/java-pubsub/commit/80dca35cebb1061f3d2a852ff9929519e69283cc)) * Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://togithub.com/googleapis/java-pubsub/issues/2161)) ([05a37b7](https://togithub.com/googleapis/java-pubsub/commit/05a37b786686c24f87eec5e9919c16b2b67465be)) * Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://togithub.com/googleapis/java-pubsub/issues/2184)) ([faecb3b](https://togithub.com/googleapis/java-pubsub/commit/faecb3b90cb259ae376b8481ec30511ce19279bf)) * Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://togithub.com/googleapis/java-pubsub/issues/2190)) ([9ea45dc](https://togithub.com/googleapis/java-pubsub/commit/9ea45dc13f11076890cfff35e7acf2eafc2af70a)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 ([#1630](https://togithub.com/googleapis/java-pubsub/issues/1630)) ([b444a9d](https://togithub.com/googleapis/java-pubsub/commit/b444a9d825300519681a205a833ae9d816e89cf2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 ([#1651](https://togithub.com/googleapis/java-pubsub/issues/1651)) ([83fdbe2](https://togithub.com/googleapis/java-pubsub/commit/83fdbe2435d8fa03b5648272a794874ff910fcb6)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#1663](https://togithub.com/googleapis/java-pubsub/issues/1663)) ([50f4ff1](https://togithub.com/googleapis/java-pubsub/commit/50f4ff10140699a02d1ec550b05ff6d1aa39c762)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#1688](https://togithub.com/googleapis/java-pubsub/issues/1688)) ([0ded9f1](https://togithub.com/googleapis/java-pubsub/commit/0ded9f172af637db5d4302b146a24ecdd5b1bde2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#1718](https://togithub.com/googleapis/java-pubsub/issues/1718)) ([0eeaa19](https://togithub.com/googleapis/java-pubsub/commit/0eeaa19a640513e80d595ca7c4016e26fc30871b)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#1738](https://togithub.com/googleapis/java-pubsub/issues/1738)) ([e2cf7c1](https://togithub.com/googleapis/java-pubsub/commit/e2cf7c110b72dff695a46a972687a595216934e6)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#1765](https://togithub.com/googleapis/java-pubsub/issues/1765)) ([a447292](https://togithub.com/googleapis/java-pubsub/commit/a447292d07ae1d9b03866dbdd9549c1b10564b28)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#1781](https://togithub.com/googleapis/java-pubsub/issues/1781)) ([5b6cb15](https://togithub.com/googleapis/java-pubsub/commit/5b6cb15ce9f459061875329ba1fc6d4b84909666)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#1811](https://togithub.com/googleapis/java-pubsub/issues/1811)) ([d671bcb](https://togithub.com/googleapis/java-pubsub/commit/d671bcb9b0e6c425eb33bdafea9c20b543020363)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#1831](https://togithub.com/googleapis/java-pubsub/issues/1831)) ([d188af8](https://togithub.com/googleapis/java-pubsub/commit/d188af8815927b409f72c968cbd6a8685976d08b)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#1854](https://togithub.com/googleapis/java-pubsub/issues/1854)) ([b36825b](https://togithub.com/googleapis/java-pubsub/commit/b36825bf476f8bf83a7ca594932e03d06bc05f07)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://togithub.com/googleapis/java-pubsub/issues/1865)) ([f4c6f51](https://togithub.com/googleapis/java-pubsub/commit/f4c6f5112e8285264a497b3a141c31f77fea6ee2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://togithub.com/googleapis/java-pubsub/issues/1873)) ([0d445f1](https://togithub.com/googleapis/java-pubsub/commit/0d445f173574433aed2770d9cc949672221b839e)) * Update dependency com.google.cloud:google-cloud-storage to v2.29.0 ([#1800](https://togithub.com/googleapis/java-pubsub/issues/1800)) ([8c43cc2](https://togithub.com/googleapis/java-pubsub/commit/8c43cc2443f333c646c27cee4ee70434167213ba)) * Update dependency com.google.cloud:google-cloud-storage to v2.29.1 ([#1817](https://togithub.com/googleapis/java-pubsub/issues/1817)) ([e179b94](https://togithub.com/googleapis/java-pubsub/commit/e179b94b7034fbb6c10775b0fe469ab129c0d6c8)) * Update dependency com.google.cloud:google-cloud-storage to v2.30.1 ([#1841](https://togithub.com/googleapis/java-pubsub/issues/1841)) ([d6f1352](https://togithub.com/googleapis/java-pubsub/commit/d6f1352ec3debe106ba238343c0c05b9278dc964)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://togithub.com/googleapis/java-pubsub/issues/1857)) ([d673e55](https://togithub.com/googleapis/java-pubsub/commit/d673e55e69f60f5a6f6bae10e2f62d7fd0dfa89f)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://togithub.com/googleapis/java-pubsub/issues/1874)) ([adae8a4](https://togithub.com/googleapis/java-pubsub/commit/adae8a4aadb08532076fd02710d0e41336ec096c)) * Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://togithub.com/googleapis/java-pubsub/issues/1900)) ([0efceb4](https://togithub.com/googleapis/java-pubsub/commit/0efceb4f4068c70565676dc2ddcf629ec4f0489f)) * Update dependency com.google.cloud:google-cloud-storage to v2.34.0 ([#1917](https://togithub.com/googleapis/java-pubsub/issues/1917)) ([4a7d6b9](https://togithub.com/googleapis/java-pubsub/commit/4a7d6b971f0d16d867c56679d1e7bfbba4e4a67a)) * Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1942](https://togithub.com/googleapis/java-pubsub/issues/1942)) ([989f7ba](https://togithub.com/googleapis/java-pubsub/commit/989f7bac5bada7ac5d6e68c742af0290cb757e4b)) * Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1946](https://togithub.com/googleapis/java-pubsub/issues/1946)) ([b94989d](https://togithub.com/googleapis/java-pubsub/commit/b94989df6c5ae6f62e648016cef2e008a3b9ed05)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://togithub.com/googleapis/java-pubsub/issues/1957)) ([0d8c182](https://togithub.com/googleapis/java-pubsub/commit/0d8c182653ea1ffd429465e91075760c1501eb34)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.1 ([#1968](https://togithub.com/googleapis/java-pubsub/issues/1968)) ([524109c](https://togithub.com/googleapis/java-pubsub/commit/524109c1afc5118c79fd97769e194a1325322107)) * Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([cff6d6a](https://togithub.com/googleapis/java-pubsub/commit/cff6d6a5fc297eb5254a409d495bda458dfebcd6)) * Update dependency com.google.cloud:google-cloud-storage to v2.38.0 ([#2019](https://togithub.com/googleapis/java-pubsub/issues/2019)) ([ba3dffc](https://togithub.com/googleapis/java-pubsub/commit/ba3dffc3ac8cf173362307c24bc46e815c64db40)) * Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://togithub.com/googleapis/java-pubsub/issues/2040)) ([eb6bd9c](https://togithub.com/googleapis/java-pubsub/commit/eb6bd9c559073429d8338b9d8fa83e0e3f61b8e9)) * Update dependency com.google.cloud:google-cloud-storage to v2.40.0 ([#2066](https://togithub.com/googleapis/java-pubsub/issues/2066)) ([dfcaeb5](https://togithub.com/googleapis/java-pubsub/commit/dfcaeb5b59466d86ac5b5bf74655ce359e7d5713)) * Update dependency com.google.cloud:google-cloud-storage to v2.40.1 ([#2095](https://togithub.com/googleapis/java-pubsub/issues/2095)) ([0d64d6c](https://togithub.com/googleapis/java-pubsub/commit/0d64d6cf7799a176297ceaa1475b7cb29a64bebc)) * Update dependency com.google.cloud:google-cloud-storage to v2.41.0 ([#2129](https://togithub.com/googleapis/java-pubsub/issues/2129)) ([2348d20](https://togithub.com/googleapis/java-pubsub/commit/2348d2022bc400b7f187d3db7f43aff94d8884a8)) * Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://togithub.com/googleapis/java-pubsub/issues/2145)) ([77c3e78](https://togithub.com/googleapis/java-pubsub/commit/77c3e78d34e894c05653371027cd2b1d12cea9d0)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://togithub.com/googleapis/java-pubsub/issues/2174)) ([ae800d7](https://togithub.com/googleapis/java-pubsub/commit/ae800d7b3ffd19302b416f03fad8b20e93afce8f)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://togithub.com/googleapis/java-pubsub/issues/2194)) ([979e420](https://togithub.com/googleapis/java-pubsub/commit/979e420377327cf3843ac23151d8b44a7e5188c5)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://togithub.com/googleapis/java-pubsub/issues/1913)) ([9636c55](https://togithub.com/googleapis/java-pubsub/commit/9636c5526e5cf4507bed69349321b686ddf7ab27)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://togithub.com/googleapis/java-pubsub/issues/1937)) ([75e7e5e](https://togithub.com/googleapis/java-pubsub/commit/75e7e5e9eede53e87a6bc8ccda957990ea9b0673)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([183df2c](https://togithub.com/googleapis/java-pubsub/commit/183df2caeed8e0df53ef9668232e4949ec4719a9)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://togithub.com/googleapis/java-pubsub/issues/1960)) ([faa45a4](https://togithub.com/googleapis/java-pubsub/commit/faa45a4efeaee5b45f9a4cc89dc2917f56a66797)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([bb80924](https://togithub.com/googleapis/java-pubsub/commit/bb80924e55bc97db82650d4ae2bdebf406c68f98)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://togithub.com/googleapis/java-pubsub/issues/2012)) ([811d0e6](https://togithub.com/googleapis/java-pubsub/commit/811d0e609b5eb6eaf9c921828255407d9db68293)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://togithub.com/googleapis/java-pubsub/issues/2028)) ([aedcffd](https://togithub.com/googleapis/java-pubsub/commit/aedcffdaedbaa30627c96f96bfa5430bd4666cf0)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 ([#2058](https://togithub.com/googleapis/java-pubsub/issues/2058)) ([a998ef5](https://togithub.com/googleapis/java-pubsub/commit/a998ef5359942486ea47bfd50f154314ae37be33)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 ([#2088](https://togithub.com/googleapis/java-pubsub/issues/2088)) ([aebc3ed](https://togithub.com/googleapis/java-pubsub/commit/aebc3ed779e0847077742dedc7c2c0a9d8a1ab10)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#2121](https://togithub.com/googleapis/java-pubsub/issues/2121)) ([7fbea6d](https://togithub.com/googleapis/java-pubsub/commit/7fbea6d0c922dd3485f19eafccc42869efd0e5ed)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 ([#2141](https://togithub.com/googleapis/java-pubsub/issues/2141)) ([273fbf3](https://togithub.com/googleapis/java-pubsub/commit/273fbf3f752444a397b0e743c5c6de1a539291ea)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://togithub.com/googleapis/java-pubsub/issues/2162)) ([27eaffd](https://togithub.com/googleapis/java-pubsub/commit/27eaffd5fa55789b456eaeba98f6800343f3685e)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://togithub.com/googleapis/java-pubsub/issues/2185)) ([5ca2c7c](https://togithub.com/googleapis/java-pubsub/commit/5ca2c7c52497514af30e4522f0ae245d0f8d73ce)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://togithub.com/googleapis/java-pubsub/issues/2191)) ([555216e](https://togithub.com/googleapis/java-pubsub/commit/555216ee5bf9cfbba6664f133fc7cde1101f5f0b)) * Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 ([#2205](https://togithub.com/googleapis/java-pubsub/issues/2205)) ([76f17e4](https://togithub.com/googleapis/java-pubsub/commit/76f17e4149bf369f2be12fe9d316a23a7f49f137)) * Update dependency com.google.protobuf:protobuf-java-util to v3.23.3 ([#1634](https://togithub.com/googleapis/java-pubsub/issues/1634)) ([2481c4b](https://togithub.com/googleapis/java-pubsub/commit/2481c4b8799bbe78542b4a8dd6c2484be08f30a1)) * Update dependency com.google.protobuf:protobuf-java-util to v3.23.4 ([#1649](https://togithub.com/googleapis/java-pubsub/issues/1649)) ([9f9c5ca](https://togithub.com/googleapis/java-pubsub/commit/9f9c5ca2abddde274c79cf36bf2aea91b7b8b455)) * Update dependency com.google.protobuf:protobuf-java-util to v3.24.3 ([#1698](https://togithub.com/googleapis/java-pubsub/issues/1698)) ([1157fbf](https://togithub.com/googleapis/java-pubsub/commit/1157fbff92204eae55bb24ad803f0b8e1336ac10)) * Update dependency com.google.protobuf:protobuf-java-util to v3.24.4 ([#1760](https://togithub.com/googleapis/java-pubsub/issues/1760)) ([10a64c6](https://togithub.com/googleapis/java-pubsub/commit/10a64c6b872a14decf3a799ebd985395358dc32c)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.1 ([#1816](https://togithub.com/googleapis/java-pubsub/issues/1816)) ([e4f2b26](https://togithub.com/googleapis/java-pubsub/commit/e4f2b2605b17024f983a8ccf50ed19d169c15d90)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://togithub.com/googleapis/java-pubsub/issues/1858)) ([8fa6354](https://togithub.com/googleapis/java-pubsub/commit/8fa635427927e1859332896b8373abccd5881949)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.3 ([#1919](https://togithub.com/googleapis/java-pubsub/issues/1919)) ([4bf13bb](https://togithub.com/googleapis/java-pubsub/commit/4bf13bb5f346a53ecf8e1e73e5f3b6d1c99ddf93)) * Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://togithub.com/googleapis/java-pubsub/issues/1951)) ([243ec9a](https://togithub.com/googleapis/java-pubsub/commit/243ec9ab47212bbe701b16882c92a9b3d5d4aeaa)) * Update dependency com.google.protobuf:protobuf-java-util to v4.26.1 ([#1972](https://togithub.com/googleapis/java-pubsub/issues/1972)) ([53c1120](https://togithub.com/googleapis/java-pubsub/commit/53c112033dc721cf91aceddfc1eeb3c6daddb45e)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://togithub.com/googleapis/java-pubsub/issues/2044)) ([37e94ce](https://togithub.com/googleapis/java-pubsub/commit/37e94ce13a2998b5e3f69e9ad3d4ab68af108d64)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.1 ([#2065](https://togithub.com/googleapis/java-pubsub/issues/2065)) ([6baf69a](https://togithub.com/googleapis/java-pubsub/commit/6baf69a99adb75fba49c2289bca3ffd08720f8f4)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.2 ([#2091](https://togithub.com/googleapis/java-pubsub/issues/2091)) ([9859f11](https://togithub.com/googleapis/java-pubsub/commit/9859f1181a12bc683eaf4a6345bf2528a5463c59)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.3 ([#2127](https://togithub.com/googleapis/java-pubsub/issues/2127)) ([8523b4f](https://togithub.com/googleapis/java-pubsub/commit/8523b4f67f45ac219671c0d588bac7e9dc450dcb)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://togithub.com/googleapis/java-pubsub/issues/2153)) ([32c78b3](https://togithub.com/googleapis/java-pubsub/commit/32c78b31e7a904fb6b6a2b55f81e7e3ab7525add)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://togithub.com/googleapis/java-pubsub/issues/2155)) ([5f61fe1](https://togithub.com/googleapis/java-pubsub/commit/5f61fe13f6fea1d30ab0e85be0221e70056369f6)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://togithub.com/googleapis/java-pubsub/issues/2167)) ([bb8ea71](https://togithub.com/googleapis/java-pubsub/commit/bb8ea717ed0234fdbb582f2915a016fd37657448)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://togithub.com/googleapis/java-pubsub/issues/2179)) ([c9bbd2c](https://togithub.com/googleapis/java-pubsub/commit/c9bbd2cf3525e3ebdf9ce3af7fe50a16a87c9837)) * Update dependency org.apache.avro:avro to v1.11.2 ([#1646](https://togithub.com/googleapis/java-pubsub/issues/1646)) ([5859fe4](https://togithub.com/googleapis/java-pubsub/commit/5859fe4c6540fa577942f38e117798d3c3cdc498)) * Update dependency org.apache.avro:avro to v1.11.3 ([#1740](https://togithub.com/googleapis/java-pubsub/issues/1740)) ([971b35f](https://togithub.com/googleapis/java-pubsub/commit/971b35f5d26263ef3c1d83b6282680ac1608c032)) * Update dependency org.assertj:assertj-core to v3.26.3 ([#2204](https://togithub.com/googleapis/java-pubsub/issues/2204)) ([71c2e76](https://togithub.com/googleapis/java-pubsub/commit/71c2e762e94895c465c4e737ed8bf7bc583a9c14)) * Update dependency org.easymock:easymock to v5.2.0 ([#1711](https://togithub.com/googleapis/java-pubsub/issues/1711)) ([313f6dd](https://togithub.com/googleapis/java-pubsub/commit/313f6dd8b82fbc57df066615e285325969b6d2e4)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://togithub.com/googleapis/java-pubsub/issues/1887)) ([2bfa5cc](https://togithub.com/googleapis/java-pubsub/commit/2bfa5cc894e5a14b1d890bdcad348eeb14520f95)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 ([#1695](https://togithub.com/googleapis/java-pubsub/issues/1695)) ([ec64036](https://togithub.com/googleapis/java-pubsub/commit/ec640361a471111001f22667fa7e38123b731025)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.25 ([#1709](https://togithub.com/googleapis/java-pubsub/issues/1709)) ([1cc8a53](https://togithub.com/googleapis/java-pubsub/commit/1cc8a53a416acdd5f9cd4fc598f2f5f182a2ad44)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 ([#1715](https://togithub.com/googleapis/java-pubsub/issues/1715)) ([f2cc75f](https://togithub.com/googleapis/java-pubsub/commit/f2cc75f960521e8be50cf354e00024d66fb8f7fb)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#1730](https://togithub.com/googleapis/java-pubsub/issues/1730)) ([687a855](https://togithub.com/googleapis/java-pubsub/commit/687a855580a9c8fe7f0d4a8952cb3ca46ff6f736)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#1782](https://togithub.com/googleapis/java-pubsub/issues/1782)) ([c9be478](https://togithub.com/googleapis/java-pubsub/commit/c9be478c3558928fc603c81fc07c4d8ba6d853b4)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://togithub.com/googleapis/java-pubsub/issues/1888)) ([5017789](https://togithub.com/googleapis/java-pubsub/commit/5017789c996246ece0c5428c68c9c6681b760bca)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#1923](https://togithub.com/googleapis/java-pubsub/issues/1923)) ([cd704bd](https://togithub.com/googleapis/java-pubsub/commit/cd704bd57b2596d82f2f791476a109a771995b4d)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://togithub.com/googleapis/java-pubsub/issues/2035)) ([40fdd7a](https://togithub.com/googleapis/java-pubsub/commit/40fdd7a71aa07d6c64ac6f96d7c6642af3563280)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 ([#1624](https://togithub.com/googleapis/java-pubsub/issues/1624)) ([68ada24](https://togithub.com/googleapis/java-pubsub/commit/68ada243897a763e04d4858ad052050e09326371)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.24 ([#1696](https://togithub.com/googleapis/java-pubsub/issues/1696)) ([cc9ae19](https://togithub.com/googleapis/java-pubsub/commit/cc9ae19865c0ece3789a8c2fa22afb5fbd306dc9)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.25 ([#1710](https://togithub.com/googleapis/java-pubsub/issues/1710)) ([9764c3f](https://togithub.com/googleapis/java-pubsub/commit/9764c3f740cd726ad09cef82039561bd145fbe0c)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 ([#1716](https://togithub.com/googleapis/java-pubsub/issues/1716)) ([6c9e949](https://togithub.com/googleapis/java-pubsub/commit/6c9e9493ec7aeaa0711ad2155fa6a549937284df)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#1731](https://togithub.com/googleapis/java-pubsub/issues/1731)) ([403b7e7](https://togithub.com/googleapis/java-pubsub/commit/403b7e72c275464a67f6998bb975d95026a8480d)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#1783](https://togithub.com/googleapis/java-pubsub/issues/1783)) ([5e39b79](https://togithub.com/googleapis/java-pubsub/commit/5e39b799d5d7b41325f9564a6044c0f0b4b05fdc)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#1666](https://togithub.com/googleapis/java-pubsub/issues/1666)) ([d8712a3](https://togithub.com/googleapis/java-pubsub/commit/d8712a31459b8f9497dff7a866c8a8795ca60af9)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 ([#1819](https://togithub.com/googleapis/java-pubsub/issues/1819)) ([af84aa3](https://togithub.com/googleapis/java-pubsub/commit/af84aa3f5434d3e8ff2122b72cae0fc1c7323742)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://togithub.com/googleapis/java-pubsub/issues/1891)) ([231ba51](https://togithub.com/googleapis/java-pubsub/commit/231ba51c8bd2e6a8f3e0171626d35761bd07ae19)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#2096](https://togithub.com/googleapis/java-pubsub/issues/2096)) ([42f12ed](https://togithub.com/googleapis/java-pubsub/commit/42f12ed3270e66beae316deb729b445c94dcb1a8)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.1 - abandoned ([#1616](https://togithub.com/googleapis/java-pubsub/issues/1616)) ([48ec282](https://togithub.com/googleapis/java-pubsub/commit/48ec282753f8068df135cee55febe5dba97be1b5)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.2 ([#1654](https://togithub.com/googleapis/java-pubsub/issues/1654)) ([05445f0](https://togithub.com/googleapis/java-pubsub/commit/05445f0ccf1cd78a604ec267d7a146cdd1770c59)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.3 ([#1665](https://togithub.com/googleapis/java-pubsub/issues/1665)) ([ad1c515](https://togithub.com/googleapis/java-pubsub/commit/ad1c5157eadc4bf2d43b7dc332ac4150d732912d)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.4 [security] ([#1742](https://togithub.com/googleapis/java-pubsub/issues/1742)) ([70ba500](https://togithub.com/googleapis/java-pubsub/commit/70ba500cc014cb9d0e1799997aa0682239b97cde)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.5 ([#1746](https://togithub.com/googleapis/java-pubsub/issues/1746)) ([a4b1994](https://togithub.com/googleapis/java-pubsub/commit/a4b199414cad5cb061330832b2bf2a8bbe76bcbd)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.6 ([#2135](https://togithub.com/googleapis/java-pubsub/issues/2135)) ([102ff84](https://togithub.com/googleapis/java-pubsub/commit/102ff844594687b3bbaca1ff92e650fe9e8d3f1e)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://togithub.com/googleapis/java-pubsub/issues/2165)) ([e7fb60e](https://togithub.com/googleapis/java-pubsub/commit/e7fb60ecccb8bb9fbc6147210491a52ee0f5a817)) * Update dependency ubuntu to v24 ([#2193](https://togithub.com/googleapis/java-pubsub/issues/2193)) ([f295b01](https://togithub.com/googleapis/java-pubsub/commit/f295b01cb93fe26612c79c3d2ba0bb68f0404d7e)) * Update gapic-generator-java to 2.26.0 ([935849c](https://togithub.com/googleapis/java-pubsub/commit/935849cedbb70a0821be56828dd0abeccbccc21c)) ### Documentation * Add Kinesis ingestion samples ([#1947](https://togithub.com/googleapis/java-pubsub/issues/1947)) ([5b5c14b](https://togithub.com/googleapis/java-pubsub/commit/5b5c14ba31636c037c2b8d6a166bd48670e23688)) * Adding a GCS subscription example ([#1762](https://togithub.com/googleapis/java-pubsub/issues/1762)) ([3ce824c](https://togithub.com/googleapis/java-pubsub/commit/3ce824c78c7eaf37fc3bc0ed2a4b3b1d952ed9bc)) * Clarified where ordering_key will be written if write_metadata is set ([#1675](https://togithub.com/googleapis/java-pubsub/issues/1675)) ([462746c](https://togithub.com/googleapis/java-pubsub/commit/462746cfbf9b712118b67349f2f4f4cebf45932a)) * Modified some descriptions ([#1773](https://togithub.com/googleapis/java-pubsub/issues/1773)) ([17bd055](https://togithub.com/googleapis/java-pubsub/commit/17bd05512ba71083eb898a3ff8c5dc53c9bbb08d)) * Renaming the CreateUnwrappedPushSubscription File ([#1794](https://togithub.com/googleapis/java-pubsub/issues/1794)) ([3264290](https://togithub.com/googleapis/java-pubsub/commit/326429092ac73d184b5e887ce5107220f96199b7)) * **samples:** Optimistic subscribe sample ([#2063](https://togithub.com/googleapis/java-pubsub/issues/2063)) ([53a4844](https://togithub.com/googleapis/java-pubsub/commit/53a4844f09eace777142b8cdcd06bc07cef0b432)) * Tightened requirements on cloud storage subscription filename suffixes ([#1639](https://togithub.com/googleapis/java-pubsub/issues/1639)) ([34a182a](https://togithub.com/googleapis/java-pubsub/commit/34a182a1655c843cd728850b278ba2e9ce9a5680)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdd324266..d3d69cddc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.133.0](https://github.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) + + +### Features + +* Add OpenTelemetry tracing to the Publisher and Subscriber ([#2086](https://github.com/googleapis/java-pubsub/issues/2086)) ([db522b6](https://github.com/googleapis/java-pubsub/commit/db522b60f1bbec9cc1bfa0c37477044fd2f807c7)) + + +### Dependencies + +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 ([#2205](https://github.com/googleapis/java-pubsub/issues/2205)) ([76f17e4](https://github.com/googleapis/java-pubsub/commit/76f17e4149bf369f2be12fe9d316a23a7f49f137)) +* Update dependency org.assertj:assertj-core to v3.26.3 ([#2204](https://github.com/googleapis/java-pubsub/issues/2204)) ([71c2e76](https://github.com/googleapis/java-pubsub/commit/71c2e762e94895c465c4e737ed8bf7bc583a9c14)) + ## [1.132.4](https://github.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) diff --git a/README.md b/README.md index 14ab466a3..718a40bc5 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.133.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.0" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ae20af593..de45a10b4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.5-SNAPSHOT + 1.133.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index bce1d9e5a..467f489aa 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 40ac5c98c..6f4ab6033 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/pom.xml b/pom.xml index fef252580..f8e73d5a5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.5-SNAPSHOT + 1.133.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 9620d5187..eed834a95 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3ee0f74d6..56c7c619e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/versions.txt b/versions.txt index 3ae78d30e..3074b8f25 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.4:1.132.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT +google-cloud-pubsub:1.133.0:1.133.0 +grpc-google-cloud-pubsub-v1:1.115.0:1.115.0 +proto-google-cloud-pubsub-v1:1.115.0:1.115.0 From fce6d070b0021f838f3231b4a2c7e986b6e8bbdd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Oct 2024 15:52:56 +0200 Subject: [PATCH 299/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.133.0 (#2207) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index da0ac10b1..965d7300f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.133.0 From f890585b83b84038acf527cd019058cc864fe1ad Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 3 Oct 2024 18:56:52 +0200 Subject: [PATCH 300/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.48.0 (#2210) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ec07da956..a6bcbd096 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.47.0 + 26.48.0 pom import From 21d5cfc3b9484ffc2c1a0084b8bc2f6f76b6bf62 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 3 Oct 2024 13:20:59 -0400 Subject: [PATCH 301/656] docs: Update emulator sample to create a topic and publish to it (#2039) * deps: Change scope of grpc-inprocess dependency from runtime to test * docs: Update emulator sample to create a topic and publish to it * docs: Small wording update to emulator sample --- .../java/pubsub/UsePubSubEmulatorExample.java | 40 +++++++++++++------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java b/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java index f4c69eac4..5da0bd7f8 100644 --- a/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java +++ b/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java @@ -16,6 +16,15 @@ package pubsub; +/** + * Snippet that demonstrates creating Pub/Sub clients using the Google Cloud Pub/Sub emulator. + * + *

Note: clients cannot start/stop the emulator. + */ + +// [START pubsub_use_emulator] + +import com.google.api.core.ApiFuture; import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GrpcTransportChannel; @@ -24,20 +33,16 @@ import com.google.cloud.pubsub.v1.Publisher; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import java.io.IOException; -/** - * Snippet that demonstrates creating Pub/Sub clients using the Google Cloud Pub/Sub emulator. - * - *

Note: clients cannot start/stop the emulator. - */ public class UsePubSubEmulatorExample { - - public static void main(String... args) throws IOException { - // [START pubsub_use_emulator] + public static void main(String... args) throws Exception { String hostport = System.getenv("PUBSUB_EMULATOR_HOST"); ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext().build(); try { @@ -46,8 +51,8 @@ public static void main(String... args) throws IOException { CredentialsProvider credentialsProvider = NoCredentialsProvider.create(); // Set the channel and credentials provider when creating a `TopicAdminClient`. - // Similarly for SubscriptionAdminClient - TopicAdminClient topicClient = + // Can be done similarly for a `SubscriptionAdminClient`. + TopicAdminClient topicAdminClient = TopicAdminClient.create( TopicAdminSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -55,16 +60,27 @@ public static void main(String... args) throws IOException { .build()); TopicName topicName = TopicName.of("my-project-id", "my-topic-id"); + Topic topic = topicAdminClient.createTopic(topicName); + System.out.println("Created topic: " + topic.getName()); + // Set the channel and credentials provider when creating a `Publisher`. - // Similarly for Subscriber + // Can be done similarly for a `Subscriber`. Publisher publisher = Publisher.newBuilder(topicName) .setChannelProvider(channelProvider) .setCredentialsProvider(credentialsProvider) .build(); + + String message = "Hello World!"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published message ID: " + messageId); } finally { channel.shutdown(); } - // [END pubsub_use_emulator] } } +// [END pubsub_use_emulator] \ No newline at end of file From 6a9723d2872c82bbb525119cac7471d1a2f3b7cd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:51:19 +0200 Subject: [PATCH 302/656] deps: update googleapis/sdk-platform-java action to v2.47.0 (#2212) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 9f1a24bd6..9399ebef2 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.46.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.47.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From d93870934f610cffb705837ed8391eb276a18c05 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:51:35 +0200 Subject: [PATCH 303/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 (#2214) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 664f10a28..9cd0e3037 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.37.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 0effa03c5..0f8b919c9 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.37.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 96a8059b9..e6553bd6e 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.37.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index de45a10b4..beba7d0a8 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.36.1 + 3.37.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index f8e73d5a5..6fd32bde2 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.36.1 + 3.37.0 From ddb739113b38d4e2f4617a105cd0ab071f21d4de Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 7 Oct 2024 15:53:39 -0400 Subject: [PATCH 304/656] docs: Add ingestion from GCS sample (#2211) * docs: Add ingestion from GCS Java sample * docs: Add ingestion from GCS sample * docs: Add test for GCS ingestion * docs: Move topicName declaration to satisfy style check * docs: Update bucket for Cloud Storage ingestion sample test --- ...TopicWithCloudStorageIngestionExample.java | 109 ++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 48 ++++++-- 2 files changed, 150 insertions(+), 7 deletions(-) create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java new file mode 100644 index 000000000..d795cdc28 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_cloud_storage_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.util.Timestamps; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.text.ParseException; + +public class CreateTopicWithCloudStorageIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Cloud Storage ingestion settings. + // bucket and inputFormat are required arguments. + String bucket = "your-bucket"; + String inputFormat = "text"; + String textDelimiter = "\n"; + String matchGlob = "**.txt"; + String minimumObjectCreateTime = "YYYY-MM-DDThh:mm:ssZ"; + + createTopicWithCloudStorageIngestionExample( + projectId, topicId, bucket, inputFormat, textDelimiter, matchGlob, minimumObjectCreateTime); + } + + public static void createTopicWithCloudStorageIngestionExample( + String projectId, + String topicId, + String bucket, + String inputFormat, + String textDelimiter, + String matchGlob, + String minimumObjectCreateTime) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + IngestionDataSourceSettings.CloudStorage.Builder cloudStorageBuilder = + IngestionDataSourceSettings.CloudStorage.newBuilder().setBucket(bucket); + switch (inputFormat) { + case "text": + cloudStorageBuilder.setTextFormat( + IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder() + .setDelimiter(textDelimiter) + .build()); + break; + case "avro": + cloudStorageBuilder.setAvroFormat( + IngestionDataSourceSettings.CloudStorage.AvroFormat.getDefaultInstance()); + break; + case "pubsub_avro": + cloudStorageBuilder.setPubsubAvroFormat( + IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.getDefaultInstance()); + break; + default: + throw new IllegalArgumentException( + "inputFormat must be in ('text', 'avro', 'pubsub_avro'); got value: " + inputFormat); + } + + if (matchGlob != null && !matchGlob.isEmpty()) { + cloudStorageBuilder.setMatchGlob(matchGlob); + } + + if (minimumObjectCreateTime != null && !minimumObjectCreateTime.isEmpty()) { + try { + cloudStorageBuilder.setMinimumObjectCreateTime(Timestamps.parse(minimumObjectCreateTime)); + } catch (ParseException e) { + System.err.println("Unable to parse timestamp: " + minimumObjectCreateTime); + } + } + + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder() + .setCloudStorage(cloudStorageBuilder.build()) + .build(); + + TopicName topicName = TopicName.of(projectId, topicId); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Cloud Storage ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_cloud_storage_ingestion] diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index a2eb7ebfd..fcfa74981 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -52,7 +52,9 @@ public class AdminIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); private static final String topicId = "iam-topic-" + _suffix; - private static final String ingestionTopicId = "ingestion-topic-" + _suffix; + private static final String kinesisIngestionTopicId = "kinesis-ingestion-topic-" + _suffix; + private static final String cloudStorageIngestionTopicId = + "cloud-storage-ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -75,9 +77,18 @@ public class AdminIT { private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; private static final String gcpServiceAccount = "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + private static final String cloudStorageBucket = "pubsub-cloud-storage-bucket"; + private static final String cloudStorageInputFormat = "text"; + private static final String cloudStorageTextDelimiter = ","; + private static final String cloudStorageMatchGlob = "**.txt"; + private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:00Z"; + private static final String cloudStorageMinimumObjectCreateTimeSeconds = "0"; private static final TopicName topicName = TopicName.of(projectId, topicId); - private static final TopicName ingestionTopicName = TopicName.of(projectId, ingestionTopicId); + private static final TopicName kinesisIngestionTopicName = + TopicName.of(projectId, kinesisIngestionTopicId); + private static final TopicName cloudStorageIngestionTopicName = + TopicName.of(projectId, cloudStorageIngestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -304,9 +315,9 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with Kinesis ingestion settings. CreateTopicWithKinesisIngestionExample.createTopicWithKinesisIngestionExample( - projectId, ingestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + projectId, kinesisIngestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) - .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + .contains("google.pubsub.v1.Topic.name=" + kinesisIngestionTopicName.toString()); assertThat(bout.toString()).contains(streamArn); assertThat(bout.toString()).contains(consumerArn); assertThat(bout.toString()).contains(awsRoleArn); @@ -315,9 +326,9 @@ public void testAdmin() throws Exception { bout.reset(); // Test update existing Kinesis ingestion settings. UpdateTopicTypeExample.updateTopicTypeExample( - projectId, ingestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); + projectId, kinesisIngestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) - .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + .contains("google.pubsub.v1.Topic.name=" + kinesisIngestionTopicName.toString()); assertThat(bout.toString()).contains(streamArn); assertThat(bout.toString()).contains(consumerArn2); assertThat(bout.toString()).contains(awsRoleArn); @@ -325,7 +336,30 @@ public void testAdmin() throws Exception { bout.reset(); // Test delete Kinesis ingestion topic. - DeleteTopicExample.deleteTopicExample(projectId, ingestionTopicId); + DeleteTopicExample.deleteTopicExample(projectId, kinesisIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Cloud Storage ingestion settings. + CreateTopicWithCloudStorageIngestionExample.createTopicWithCloudStorageIngestionExample( + projectId, + cloudStorageIngestionTopicId, + cloudStorageBucket, + cloudStorageInputFormat, + cloudStorageTextDelimiter, + cloudStorageMatchGlob, + cloudStorageMinimumObjectCreateTime); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + cloudStorageIngestionTopicName.toString()); + assertThat(bout.toString()).contains(cloudStorageBucket); + assertThat(bout.toString()).contains(cloudStorageInputFormat); + assertThat(bout.toString()).contains(cloudStorageTextDelimiter); + assertThat(bout.toString()).contains(cloudStorageMatchGlob); + assertThat(bout.toString()).contains(cloudStorageMinimumObjectCreateTimeSeconds); + + bout.reset(); + // Test delete Cloud Storage ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, cloudStorageIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); } } From 5ee969bb9ed873073895881062ec72f419bbc837 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:54:50 +0200 Subject: [PATCH 305/656] deps: update dependency com.google.cloud:google-cloud-core to v2.45.0 (#2213) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 965d7300f..554ce23e0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 56c7c619e..9caa9ec07 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a6bcbd096..9e84bb419 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests From 7a4fb829cc966a899d5824a3c4a0dea38abc7dd7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:48:24 +0000 Subject: [PATCH 306/656] chore(main): release 1.133.1-SNAPSHOT (#2209) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- README.md | 5 +++-- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 718a40bc5..70c4f0748 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.47.0 + 26.48.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.3 + 1.133.0 ``` @@ -255,6 +255,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index beba7d0a8..6f92bfa6a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.0 + 1.133.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 467f489aa..32a6b6d72 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 6f4ab6033..d5014c284 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6fd32bde2..0c5d2362c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.0 + 1.133.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index eed834a95..01ddfa21b 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9caa9ec07..2b2c8b925 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3074b8f25..85cfe1c94 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.0:1.133.0 -grpc-google-cloud-pubsub-v1:1.115.0:1.115.0 -proto-google-cloud-pubsub-v1:1.115.0:1.115.0 +google-cloud-pubsub:1.133.0:1.133.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT From ccd23afd99e7cb5a28747b06d0a97d1cb8163391 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:05:48 -0400 Subject: [PATCH 307/656] chore: Update generation configuration at Sun Oct 6 02:28:51 UTC 2024 (#2196) * chore: Update generation configuration at Fri Sep 27 02:26:54 UTC 2024 * chore: Update generation configuration at Sat Sep 28 02:25:28 UTC 2024 * chore: Update generation configuration at Tue Oct 1 02:30:17 UTC 2024 * chore: Update generation configuration at Wed Oct 2 02:26:30 UTC 2024 * chore: Update generation configuration at Thu Oct 3 02:26:41 UTC 2024 * chore: Update generation configuration at Fri Oct 4 02:26:51 UTC 2024 * chore: generate libraries at Fri Oct 4 02:27:14 UTC 2024 * chore: Update generation configuration at Sat Oct 5 02:25:14 UTC 2024 * chore: Update generation configuration at Sun Oct 6 02:28:51 UTC 2024 * chore: generate libraries at Sun Oct 6 02:29:15 UTC 2024 --- README.md | 2 +- generation_config.yaml | 6 +++--- renovate.json | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 70c4f0748..61cd87fed 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.47.0') +implementation platform('com.google.cloud:libraries-bom:26.48.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 726eccc07..d83d36916 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.46.0 -googleapis_commitish: 005df4681b89bd204a90b76168a6dc9d9e7bf4fe -libraries_bom_version: 26.47.0 +gapic_generator_version: 2.47.0 +googleapis_commitish: 1f8352cf46df74d7db6fd544181655c590689b8c +libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/renovate.json b/renovate.json index f67202e06..9afb4c0bf 100644 --- a/renovate.json +++ b/renovate.json @@ -41,6 +41,16 @@ ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" + }, + { + "fileMatch": [ + "^.github/workflows/hermetic_library_generation.yaml$" + ], + "matchStrings": [ + "uses: googleapis/sdk-platform-java/.github/scripts@v(?.+?)\\n" + ], + "depNameTemplate": "com.google.api:gapic-generator-java", + "datasourceTemplate": "maven" } ], "packageRules": [ @@ -101,6 +111,13 @@ "^com.fasterxml.jackson.core" ], "groupName": "jackson dependencies" + }, + { + "matchPackagePatterns": [ + "^com.google.api:gapic-generator-java", + "^com.google.cloud:sdk-platform-java-config" + ], + "groupName": "SDK platform Java dependencies" } ], "semanticCommits": true, From 2a89027d2512eab031922f18ffaa987018edb7ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:38:23 -0400 Subject: [PATCH 308/656] chore(main): release 1.133.1 (#2215) * chore(main): release 1.133.1 * chore: generate libraries at Mon Oct 7 21:06:29 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 20 ++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 41 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d69cddc..980d2335a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [1.133.1](https://github.com/googleapis/java-pubsub/compare/v1.133.0...v1.133.1) (2024-10-07) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.47.0 ([ccd23af](https://github.com/googleapis/java-pubsub/commit/ccd23afd99e7cb5a28747b06d0a97d1cb8163391)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.45.0 ([#2213](https://github.com/googleapis/java-pubsub/issues/2213)) ([5ee969b](https://github.com/googleapis/java-pubsub/commit/5ee969bb9ed873073895881062ec72f419bbc837)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 ([#2214](https://github.com/googleapis/java-pubsub/issues/2214)) ([d938709](https://github.com/googleapis/java-pubsub/commit/d93870934f610cffb705837ed8391eb276a18c05)) +* Update googleapis/sdk-platform-java action to v2.47.0 ([#2212](https://github.com/googleapis/java-pubsub/issues/2212)) ([6a9723d](https://github.com/googleapis/java-pubsub/commit/6a9723d2872c82bbb525119cac7471d1a2f3b7cd)) + + +### Documentation + +* Add ingestion from GCS sample ([#2211](https://github.com/googleapis/java-pubsub/issues/2211)) ([ddb7391](https://github.com/googleapis/java-pubsub/commit/ddb739113b38d4e2f4617a105cd0ab071f21d4de)) +* Update emulator sample to create a topic and publish to it ([#2039](https://github.com/googleapis/java-pubsub/issues/2039)) ([21d5cfc](https://github.com/googleapis/java-pubsub/commit/21d5cfc3b9484ffc2c1a0084b8bc2f6f76b6bf62)) + ## [1.133.0](https://github.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) diff --git a/README.md b/README.md index 61cd87fed..c3bb6365b 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.133.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.133.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" ``` @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 6f92bfa6a..06cf1c5cb 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.1-SNAPSHOT + 1.133.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 32a6b6d72..6fd413704 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index d5014c284..523d9fbb8 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/pom.xml b/pom.xml index 0c5d2362c..6bec01496 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.1-SNAPSHOT + 1.133.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 01ddfa21b..81e833e88 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2b2c8b925..185dda2d0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/versions.txt b/versions.txt index 85cfe1c94..0a4b0ca10 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.0:1.133.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT +google-cloud-pubsub:1.133.1:1.133.1 +grpc-google-cloud-pubsub-v1:1.115.1:1.115.1 +proto-google-cloud-pubsub-v1:1.115.1:1.115.1 From c447fe500ba48ba4fde27d97f10ef7664d09363b Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 7 Oct 2024 23:43:44 -0400 Subject: [PATCH 309/656] docs: Add OpenTelemetry samples (#2208) * docs: Add OpenTelemetry samples * docs: Fix sample file naming --- .../pubsub/OpenTelemetryPublisherExample.java | 99 +++++++++++++++++ .../OpenTelemetrySubscriberExample.java | 100 ++++++++++++++++++ 2 files changed, 199 insertions(+) create mode 100644 samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java create mode 100644 samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java new file mode 100644 index 000000000..606c6fe36 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_otel_tracing] + +import com.google.api.core.ApiFuture; +import com.google.cloud.opentelemetry.trace.TraceConfiguration; +import com.google.cloud.opentelemetry.trace.TraceExporter; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.resources.Resource; +import io.opentelemetry.sdk.trace.SdkTracerProvider; +import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor; +import io.opentelemetry.sdk.trace.export.SpanExporter; +import io.opentelemetry.sdk.trace.samplers.Sampler; +import io.opentelemetry.semconv.ResourceAttributes; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class OpenTelemetryPublisherExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + openTelemetryPublisherExample(projectId, topicId); + } + + public static void openTelemetryPublisherExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + Resource resource = + Resource.getDefault().toBuilder() + .put(ResourceAttributes.SERVICE_NAME, "publisher-example") + .build(); + + // Creates a Cloud Trace exporter. + SpanExporter traceExporter = + TraceExporter.createWithConfiguration( + TraceConfiguration.builder().setProjectId(projectId).build()); + + SdkTracerProvider sdkTracerProvider = + SdkTracerProvider.builder() + .setResource(resource) + .addSpanProcessor(SimpleSpanProcessor.create(traceExporter)) + .setSampler(Sampler.alwaysOn()) + .build(); + + OpenTelemetry openTelemetry = + OpenTelemetrySdk.builder().setTracerProvider(sdkTracerProvider).buildAndRegisterGlobal(); + + TopicName topicName = TopicName.of(projectId, topicId); + + Publisher publisher = null; + try { + // Create a publisher instance with the created OpenTelemetry object and enabling tracing. + publisher = + Publisher.newBuilder(topicName) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + String message = "Hello World!"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published message ID: " + messageId); + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_otel_tracing] diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java new file mode 100644 index 000000000..f78c38d19 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscribe_otel_tracing] + +import com.google.cloud.opentelemetry.trace.TraceConfiguration; +import com.google.cloud.opentelemetry.trace.TraceExporter; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.resources.Resource; +import io.opentelemetry.sdk.trace.SdkTracerProvider; +import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor; +import io.opentelemetry.sdk.trace.export.SpanExporter; +import io.opentelemetry.sdk.trace.samplers.Sampler; +import io.opentelemetry.semconv.ResourceAttributes; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class OpenTelemetrySubscriberExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + openTelemetrySubscriberExample(projectId, subscriptionId); + } + + public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { + Resource resource = + Resource.getDefault().toBuilder() + .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") + .build(); + + // Creates a Cloud Trace exporter. + SpanExporter traceExporter = + TraceExporter.createWithConfiguration( + TraceConfiguration.builder().setProjectId(projectId).build()); + + SdkTracerProvider sdkTracerProvider = + SdkTracerProvider.builder() + .setResource(resource) + .addSpanProcessor(SimpleSpanProcessor.create(traceExporter)) + .setSampler(Sampler.alwaysOn()) + .build(); + + OpenTelemetry openTelemetry = + OpenTelemetrySdk.builder().setTracerProvider(sdkTracerProvider).buildAndRegisterGlobal(); + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = + Subscriber.newBuilder(subscriptionName, receiver) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} + // [END pubsub_subscribe_otel_tracing] From 30542e60f9ea72d8bde5c16772a0acc728bda231 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 8 Oct 2024 12:21:38 -0400 Subject: [PATCH 310/656] test: Fix flaky tests (#2221) * test: Add logs to flaky OpenTelemetry test * test: Ensure publisher is shutdown before checking spans in test * test: Remove logs from test * test: Check that subscription is created in subscriber samples test * test: Use err to log for testing * test: Only setup and teardown before and after the entire test suite for SubscriberIT * test: Remove logs from test * test: Import AfterClass class * test: Fix errors in test * test: Add small change to GCS ingestion test --- .../google/cloud/pubsub/v1/PublisherImplTest.java | 1 + samples/snippets/src/test/java/pubsub/AdminIT.java | 4 ++-- .../snippets/src/test/java/pubsub/SubscriberIT.java | 13 +++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index fedd17436..219326db5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -1342,6 +1342,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { fakeExecutor.advanceTime(Duration.ofSeconds(5)); assertEquals("1", publishFuture.get()); fakeExecutor.advanceTime(Duration.ofSeconds(5)); + shutdownTestPublisher(publisher); List allSpans = openTelemetryTesting.getSpans(); assertEquals(4, allSpans.size()); diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index fcfa74981..e0c45e8e1 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -81,8 +81,8 @@ public class AdminIT { private static final String cloudStorageInputFormat = "text"; private static final String cloudStorageTextDelimiter = ","; private static final String cloudStorageMatchGlob = "**.txt"; - private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:00Z"; - private static final String cloudStorageMinimumObjectCreateTimeSeconds = "0"; + private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:01Z"; + private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName kinesisIngestionTopicName = diff --git a/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/samples/snippets/src/test/java/pubsub/SubscriberIT.java index 3f91a2a31..b1c827d50 100644 --- a/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -39,6 +39,7 @@ import java.util.List; import java.util.UUID; import org.junit.After; +import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; @@ -46,8 +47,8 @@ import org.junit.rules.Timeout; public class SubscriberIT { - private ByteArrayOutputStream bout; - private PrintStream out; + private static ByteArrayOutputStream bout; + private static PrintStream out; private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); @@ -129,8 +130,8 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } - @Before - public void setUp() throws Exception { + @BeforeClass + public static void setUp() throws Exception { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); @@ -162,8 +163,8 @@ public void setUp() throws Exception { } } - @After - public void tearDown() throws Exception { + @AfterClass + public static void tearDown() throws Exception { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); subscriptionAdminClient.deleteSubscription(subscriptionEodName.toString()); From 31f276b10a96c53ecbd828972a9e3457c0c7c700 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Oct 2024 18:22:38 +0200 Subject: [PATCH 311/656] deps: update dependency org.apache.avro:avro to v1.11.4 [security] (#2223) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 554ce23e0..8499374ff 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 compile diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 185dda2d0..9708d76e7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 compile diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9e84bb419..dca65a4c7 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 org.xerial.snappy From 0a597bd98baf0202a5dba45cc68aeb846d283a58 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 8 Oct 2024 23:57:37 -0400 Subject: [PATCH 312/656] chore: Update generation configuration at Wed Oct 9 02:26:41 UTC 2024 (#2218) * chore: Update generation configuration at Tue Oct 8 02:28:09 UTC 2024 * chore: Update generation configuration at Wed Oct 9 02:26:41 UTC 2024 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index d83d36916..01aee2285 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 1f8352cf46df74d7db6fd544181655c590689b8c +googleapis_commitish: 8692273ae7e0ef95d264e1bb8bcb900fa950674f libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub From cc1b0726009524ddee3c2ce7f1446608dd3bc752 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 05:58:58 +0200 Subject: [PATCH 313/656] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.33.0 (#2225) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8499374ff..1c59653be 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9708d76e7..f4780ddac 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index dca65a4c7..f0b396364 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 org.apache.avro From eb87c04619f7bdaf59ce2b562a96b8c25d3c8196 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:20:50 +0200 Subject: [PATCH 314/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.2 (#2226) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1c59653be..b847b02d6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.1 + 2.43.2 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f4780ddac..10e226ac7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.1 + 2.43.2 com.google.cloud.opentelemetry From 9d6b8a0390cdfdc2e823b07925694d42771c0284 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:20:58 +0200 Subject: [PATCH 315/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.133.1 (#2219) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b847b02d6..5a812c85e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1 From acaf5f2e3686a939d4b972c73a4d039142f753df Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:21:37 +0200 Subject: [PATCH 316/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.43.1 (#2202) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5a812c85e..388009d83 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.3 + 2.43.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 10e226ac7..74eb7c5c0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.3 + 2.43.1 com.google.cloud From 4264aa25c6b0226cc8a9b6d4b9745f0270d3ab7b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:48:31 +0000 Subject: [PATCH 317/656] chore(main): release 1.133.2-SNAPSHOT (#2216) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- README.md | 4 +++- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index c3bb6365b..c66789341 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1 ``` @@ -274,6 +274,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | | List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Open Telemetry Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | +| Open Telemetry Subscriber Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | | Optimistic Subscribe Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | | Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | | Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 06cf1c5cb..29750bbfd 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.1 + 1.133.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 6fd413704..600a997e3 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 523d9fbb8..3598f8f50 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6bec01496..9dc5c8da6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.1 + 1.133.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 81e833e88..ef4e86cc3 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 74eb7c5c0..8b7a9f9c9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 0a4b0ca10..4335d336b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.1:1.133.1 -grpc-google-cloud-pubsub-v1:1.115.1:1.115.1 -proto-google-cloud-pubsub-v1:1.115.1:1.115.1 +google-cloud-pubsub:1.133.1:1.133.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT From 6c67798c6b7442d77eb30fbba874344f32a926b4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:15:28 -0400 Subject: [PATCH 318/656] chore: Update generation configuration at Thu Oct 10 02:26:42 UTC 2024 (#2229) * chore: Update generation configuration at Thu Oct 10 02:26:42 UTC 2024 * chore: generate libraries at Thu Oct 10 02:27:09 UTC 2024 --- generation_config.yaml | 2 +- .../reflect-config.json | 72 + .../pubsub/v1/IngestionFailureEvent.java | 3913 +++++++++++++++++ .../v1/IngestionFailureEventOrBuilder.java | 122 + .../com/google/pubsub/v1/PubsubProto.java | 837 ++-- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 57 + 8 files changed, 4620 insertions(+), 393 deletions(-) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java diff --git a/generation_config.yaml b/generation_config.yaml index 01aee2285..34111da58 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 8692273ae7e0ef95d264e1bb8bcb900fa950674f +googleapis_commitish: 10b8dc3b54c9a609dcfda8060b8c4c734a942e8c libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 97fb8db41..e63fd836f 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1970,6 +1970,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ApiViolationReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ApiViolationReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AvroFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AvroFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$CloudStorageFailure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$CloudStorageFailure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java new file mode 100644 index 000000000..98eefa8aa --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -0,0 +1,3913 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *

+ * Payload of the Platform Log entry sent when a failure is encountered while
+ * ingesting.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ +public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent) + IngestionFailureEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestionFailureEvent.newBuilder() to construct. + private IngestionFailureEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestionFailureEvent() { + topic_ = ""; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestionFailureEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + public interface ApiViolationReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Specifies the reason why some data may have been left out of
+   * the desired Pub/Sub message due to the API message limits
+   * (https://cloud.google.com/pubsub/quotas#resource_limits). For example,
+   * when the number of attributes is larger than 100, the number of
+   * attributes is truncated to 100 to respect the limit on the attribute count.
+   * Other attribute limits are treated similarly. When the size of the desired
+   * message would've been larger than 10MB, the message won't be published at
+   * all, and ingestion of the subsequent messages will proceed as normal.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} + */ + public static final class ApiViolationReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + ApiViolationReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiViolationReason.newBuilder() to construct. + private ApiViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiViolationReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiViolationReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason 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.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason 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.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason 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.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason 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.pubsub.v1.IngestionFailureEvent.ApiViolationReason 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; + } + /** + * + * + *
+     * Specifies the reason why some data may have been left out of
+     * the desired Pub/Sub message due to the API message limits
+     * (https://cloud.google.com/pubsub/quotas#resource_limits). For example,
+     * when the number of attributes is larger than 100, the number of
+     * attributes is truncated to 100 to respect the limit on the attribute count.
+     * Other attribute limits are treated similarly. When the size of the desired
+     * message would've been larger than 10MB, the message won't be published at
+     * all, and ingestion of the subsequent messages will proceed as normal.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiViolationReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvroFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Set when an Avro file is unsupported or its format is not valid. When this
+   * occurs, one or more Avro objects won't be ingested.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} + */ + public static final class AvroFailureReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + AvroFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroFailureReason.newBuilder() to construct. + private AvroFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroFailureReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason 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.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason 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.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason 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.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason 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.pubsub.v1.IngestionFailureEvent.AvroFailureReason 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; + } + /** + * + * + *
+     * Set when an Avro file is unsupported or its format is not valid. When this
+     * occurs, one or more Avro objects won't be ingested.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CloudStorageFailureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Name of the Cloud Storage bucket used for ingestion.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
+     * Optional. Name of the Cloud Storage bucket used for ingestion.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
+     * Optional. Name of the Cloud Storage object which contained the section
+     * that couldn't be ingested.
+     * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + /** + * + * + *
+     * Optional. Name of the Cloud Storage object which contained the section
+     * that couldn't be ingested.
+     * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
+     * Optional. Generation of the Cloud Storage object which contained the
+     * section that couldn't be ingested.
+     * 
+ * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + long getObjectGeneration(); + + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + boolean hasAvroFailureReason(); + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder(); + + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + } + /** + * + * + *
+   * Failure when ingesting from a Cloud Storage source.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + CloudStorageFailureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageFailure.newBuilder() to construct. + private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageFailure() { + bucket_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_FAILURE_REASON(5), + API_VIOLATION_REASON(6), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return AVRO_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
+     * Optional. Name of the Cloud Storage bucket used for ingestion.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Name of the Cloud Storage bucket used for ingestion.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + /** + * + * + *
+     * Optional. Name of the Cloud Storage object which contained the section
+     * that couldn't be ingested.
+     * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Name of the Cloud Storage object which contained the section
+     * that couldn't be ingested.
+     * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; + private long objectGeneration_ = 0L; + /** + * + * + *
+     * Optional. Generation of the Cloud Storage object which contained the
+     * section that couldn't be ingested.
+     * 
+ * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + /** + * + * + *
+     * Optional. Failure encountered when parsing an Avro file.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + if (objectGeneration_ != 0L) { + output.writeInt64(3, objectGeneration_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + if (objectGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getAvroFailureReason().hashCode(); + break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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; + } + /** + * + * + *
+     * Failure when ingesting from a Cloud Storage source.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + objectName_ = ""; + objectGeneration_ = 0L; + if (avroFailureReasonBuilder_ != null) { + avroFailureReasonBuilder_.clear(); + } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = + new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectName_ = objectName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.objectGeneration_ = objectGeneration_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { + result.reason_ = avroFailureReasonBuilder_.build(); + } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getObjectGeneration() != 0L) { + setObjectGeneration(other.getObjectGeneration()); + } + switch (other.getReasonCase()) { + case AVRO_FAILURE_REASON: + { + mergeAvroFailureReason(other.getAvroFailureReason()); + break; + } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + objectGeneration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + /** + * + * + *
+       * Optional. Name of the Cloud Storage bucket used for ingestion.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage bucket used for ingestion.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage bucket used for ingestion.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage bucket used for ingestion.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage bucket used for ingestion.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + /** + * + * + *
+       * Optional. Name of the Cloud Storage object which contained the section
+       * that couldn't be ingested.
+       * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage object which contained the section
+       * that couldn't be ingested.
+       * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage object which contained the section
+       * that couldn't be ingested.
+       * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage object which contained the section
+       * that couldn't be ingested.
+       * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the Cloud Storage object which contained the section
+       * that couldn't be ingested.
+       * 
+ * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long objectGeneration_; + /** + * + * + *
+       * Optional. Generation of the Cloud Storage object which contained the
+       * section that couldn't be ingested.
+       * 
+ * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + /** + * + * + *
+       * Optional. Generation of the Cloud Storage object which contained the
+       * section that couldn't be ingested.
+       * 
+ * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectGeneration to set. + * @return This builder for chaining. + */ + public Builder setObjectGeneration(long value) { + + objectGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Generation of the Cloud Storage object which contained the
+       * section that couldn't be ingested.
+       * 
+ * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + objectGeneration_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + avroFailureReasonBuilder_; + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return avroFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { + if (avroFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + avroFailureReasonBuilder_.mergeFrom(value); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + avroFailureReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder + getAvroFailureReasonBuilder() { + return getAvroFailureReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { + return avroFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Failure encountered when parsing an Avro file.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + getAvroFailureReasonFieldBuilder() { + if (avroFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + avroFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return avroFailureReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int failureCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object failure_; + + public enum FailureCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_FAILURE(3), + FAILURE_NOT_SET(0); + private final int value; + + private FailureCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCase valueOf(int value) { + return forNumber(value); + } + + public static FailureCase forNumber(int value) { + switch (value) { + case 3: + return CLOUD_STORAGE_FAILURE; + case 0: + return FAILURE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + if (failureCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + if (failureCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent other = + (com.google.pubsub.v1.IngestionFailureEvent) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getFailureCase().equals(other.getFailureCase())) return false; + switch (failureCase_) { + case 3: + if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + switch (failureCase_) { + case 3: + hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageFailure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent 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; + } + /** + * + * + *
+   * Payload of the Platform Log entry sent when a failure is encountered while
+   * ingesting.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) + com.google.pubsub.v1.IngestionFailureEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + errorMessage_ = ""; + if (cloudStorageFailureBuilder_ != null) { + cloudStorageFailureBuilder_.clear(); + } + failureCase_ = 0; + failure_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent build() { + com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent result = + new com.google.pubsub.v1.IngestionFailureEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { + result.failureCase_ = failureCase_; + result.failure_ = this.failure_; + if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { + result.failure_ = cloudStorageFailureBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { + if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getFailureCase()) { + case CLOUD_STORAGE_FAILURE: + { + mergeCloudStorageFailure(other.getCloudStorageFailure()); + break; + } + case FAILURE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int failureCase_ = 0; + private java.lang.Object failure_; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public Builder clearFailure() { + failureCase_ = 0; + failure_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + cloudStorageFailureBuilder_; + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } else { + if (failureCase_ == 3) { + return cloudStorageFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } + failureCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { + if (cloudStorageFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(builderForValue.build()); + } + failureCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 3) { + cloudStorageFailureBuilder_.mergeFrom(value); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } + } + failureCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + } + cloudStorageFailureBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder + getCloudStorageFailureBuilder() { + return getCloudStorageFailureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { + return cloudStorageFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + getCloudStorageFailureFieldBuilder() { + if (cloudStorageFailureBuilder_ == null) { + if (!(failureCase_ == 3)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + cloudStorageFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 3; + onChanged(); + return cloudStorageFailureBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent) + private static final com.google.pubsub.v1.IngestionFailureEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionFailureEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java new file mode 100644 index 000000000..af081e3d7 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface IngestionFailureEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + boolean hasCloudStorageFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 5a149347f..28c7f6b27 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -64,6 +64,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -365,351 +381,365 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" - + "NG\020\004\022\t\n\005ERROR\020\005\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub.v1." - + "Topic.LabelsEntryB\003\340A\001\022K\n\026message_storag" - + "e_policy\030\003 \001(\0132&.google.pubsub.v1.Messag" - + "eStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(" - + "\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .google" - + ".pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisf" - + "ies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" - + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1" - + ".Topic.StateB\003\340A\003\022Z\n\036ingestion_data_sour" - + "ce_settings\030\n \001(\0132-.google.pubsub.v1.Ing" - + "estionDataSourceSettingsB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" - + "\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}\022\017_deleted-topic_\"\200\002\n" - + "\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\natt" - + "ributes\030\002 \003(\0132/.google.pubsub.v1.PubsubM" - + "essage.AttributesEntryB\003\340A\001\022\022\n\nmessage_i" - + "d\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB" - + "\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005to" - + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 " - + "\001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\t" - + "B#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n" - + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsu" - + "bMessageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013mess" - + "age_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest" - + "\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresource" - + "manager.googleapis.com/Project\022\026\n\tpage_s" - + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" - + "`\n\022ListTopicsResponse\022,\n\006topics\030\001 \003(\0132\027." - + "google.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page" - + "_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscript" - + "ionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubs" - + "ub.googleapis.com/Topic\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036Lis" - + "tTopicSubscriptionsResponse\022A\n\rsubscript" - + "ions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\001\"\200\001\n\031ListTopicSnapshotsRequest\0222\n\005to" - + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsRes" - + "ponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_pa" - + "ge_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicReques" - + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\"]\n\031DetachSubscriptionReque" + + "NG\020\004\022\t\n\005ERROR\020\005\"\221\004\n\025IngestionFailureEven" + + "t\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_message\030\002" + + " \001(\tB\003\340A\002\022a\n\025cloud_storage_failure\030\003 \001(\013" + + "2;.google.pubsub.v1.IngestionFailureEven" + + "t.CloudStorageFailureB\003\340A\001H\000\032\024\n\022ApiViola" + + "tionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Clou" + + "dStorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013" + + "object_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generat" + + "ion\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 " + + "\001(\01329.google.pubsub.v1.IngestionFailureE" + + "vent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_vio" + + "lation_reason\030\006 \001(\0132:.google.pubsub.v1.I" + + "ngestionFailureEvent.ApiViolationReasonB" + + "\003\340A\001H\000B\010\n\006reasonB\t\n\007failure\"\272\005\n\005Topic\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.googl" + + "e.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026me" + + "ssage_storage_policy\030\003 \001(\0132&.google.pubs" + + "ub.v1.MessageStoragePolicyB\003\340A\001\022\031\n\014kms_k" + + "ey_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 " + + "\001(\0132 .google.pubsub.v1.SchemaSettingsB\003\340" + + "A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032messag" + + "e_retention_duration\030\010 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.goog" + + "le.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingesti" + + "on_data_source_settings\030\n \001(\0132-.google.p" + + "ubsub.v1.IngestionDataSourceSettingsB\003\340A" + + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR" + + "\020\002:T\352AQ\n\033pubsub.googleapis.com/Topic\022!pr" + + "ojects/{project}/topics/{topic}\022\017_delete" + + "d-topic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014" + + "B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsu" + + "b.v1.PubsubMessage.AttributesEntryB\003\340A\001\022" + + "\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022\031\n\014orderin" + + "g_key\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicR" + + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + + "ogleapis.com/Topic\"w\n\022UpdateTopicRequest" + + "\022+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.Topic" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis." + + "com/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pub" + + "sub.v1.PubsubMessageB\003\340A\002\"+\n\017PublishResp" + + "onse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListT" + + "opicsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006top" + + "ics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022" + + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTo" + + "picSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"\201\001\n\036ListTopicSubscriptionsResponse\022" + + "A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\022\034\n\017next_page_" + + "token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsR" + + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopic" + + "SnapshotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A" + + "\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022Delet" + + "eTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\"]\n\031DetachSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\034\n\032DetachSubscriptionResponse\"\253\n\n\014Subsc" + + "ription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(" + + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226" + + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + + "ushConfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132" + + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G" + + "\n\024cloud_storage_config\030\026 \001(\0132$.google.pu" + + "bsub.v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_d" + + "eadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_ack" + + "ed_messages\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" + + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubs" + + "ub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n\027e" + + "nable_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021exp" + + "iration_policy\030\013 \001(\0132\".google.pubsub.v1." + + "ExpirationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340" + + "A\001\022C\n\022dead_letter_policy\030\r \001(\0132\".google." + + "pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry" + + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" + + "licyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enab" + + "le_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n t" + + "opic_message_retention_duration\030\021 \001(\0132\031." + + "google.protobuf.DurationB\003\340A\003\0228\n\005state\030\023" + + " \001(\0162$.google.pubsub.v1.Subscription.Sta" + + "teB\003\340A\003\022i\n\037analytics_hub_subscription_in" + + "fo\030\027 \001(\0132;.google.pubsub.v1.Subscription" + + ".AnalyticsHubSubscriptionInfoB\003\340A\003\032O\n\034An" + + "alyticsHubSubscriptionInfo\022\024\n\007listing\030\001 " + + "\001(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006AC" + + "TIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub." + + "googleapis.com/Subscription\022/projects/{p" + + "roject}/subscriptions/{subscription}\"\177\n\013" + + "RetryPolicy\0227\n\017minimum_backoff\030\001 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\0227\n\017maximum_" + + "backoff\030\002 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead_letter" + + "_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery_attemp" + + "ts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy\022+\n\003ttl" + + "\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232" + + "\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A" + + "\001\022E\n\nattributes\030\002 \003(\0132,.google.pubsub.v1" + + ".PushConfig.AttributesEntryB\003\340A\001\022A\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 " + + "\001(\0132*.google.pubsub.v1.PushConfig.Pubsub" + + "WrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(\0132&.goo" + + "gle.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H" + + "\001\032F\n\tOidcToken\022\"\n\025service_account_email\030" + + "\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPub" + + "subWrapper\032(\n\tNoWrapper\022\033\n\016write_metadat" + + "a\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio" + + "n_methodB\t\n\007wrapper\"\216\003\n\016BigQueryConfig\022\022" + + "\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_schema\030\002" + + " \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010B\003\340A\001\022 " + + "\n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n\005stat" + + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" + + "g.StateB\003\340A\003\022\035\n\020use_table_schema\030\006 \001(\010B\003" + + "\340A\001\022\"\n\025service_account_email\030\007 \001(\tB\003\340A\001\"" + + "\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" + + "VE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND" + + "\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRANSIT_LO" + + "CATION_RESTRICTION\020\005\"\351\005\n\022CloudStorageCon" + + "fig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filename_pre" + + "fix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix\030\003 \001(\tB" + + "\003\340A\001\022%\n\030filename_datetime_format\030\n \001(\tB\003" + + "\340A\001\022K\n\013text_config\030\004 \001(\0132/.google.pubsub" + + ".v1.CloudStorageConfig.TextConfigB\003\340A\001H\000" + + "\022K\n\013avro_config\030\005 \001(\0132/.google.pubsub.v1" + + ".CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\014max_duration\030\006 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014m" + + "ax_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*." + + "google.pubsub.v1.CloudStorageConfig.Stat" + + "eB\003\340A\003\022\"\n\025service_account_email\030\013 \001(\tB\003\340" + + "A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n\016write_" + + "metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_schema\030" + + "\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + + "\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RES" + + "TRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017\n\routpu" + + "t_format\"|\n\017ReceivedMessage\022\023\n\006ack_id\030\001 " + + "\001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.google.pubsu" + + "b.v1.PubsubMessageB\003\340A\001\022\035\n\020delivery_atte" + + "mpt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscriptionRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub" + + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036" + + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRequest\022D" + + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\031ListSubscriptionsResponse\022:\n\rsubscripti" + + "ons\030\001 \003(\0132\036.google.pubsub.v1.Subscriptio" + + "nB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n\031" + + "DeleteSubscriptionRequest\022@\n\014subscriptio" + + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" + + "ubscription\"\223\001\n\027ModifyPushConfigRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\0226\n\013push_config" + + "\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A" + + "\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031" + + "\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014PullRespons" + + "e\022A\n\021received_messages\030\001 \003(\0132!.google.pu" + + "bsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030ModifyA" + + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin" + + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque" + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\"\034\n\032DetachSu" - + "bscriptionResponse\"\253\n\n\014Subscription\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\0226\n\013push_confi" - + "g\030\004 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340" - + "A\001\022>\n\017bigquery_config\030\022 \001(\0132 .google.pub" - + "sub.v1.BigQueryConfigB\003\340A\001\022G\n\024cloud_stor" - + "age_config\030\026 \001(\0132$.google.pubsub.v1.Clou" - + "dStorageConfigB\003\340A\001\022!\n\024ack_deadline_seco" - + "nds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030" - + "\007 \001(\010B\003\340A\001\022B\n\032message_retention_duration" - + "\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?" - + "\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subscr" - + "iption.LabelsEntryB\003\340A\001\022$\n\027enable_messag" - + "e_ordering\030\n \001(\010B\003\340A\001\022B\n\021expiration_poli" - + "cy\030\013 \001(\0132\".google.pubsub.v1.ExpirationPo" - + "licyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_l" - + "etter_policy\030\r \001(\0132\".google.pubsub.v1.De" - + "adLetterPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(" - + "\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" - + "\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_o" - + "nce_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_message" - + "_retention_duration\030\021 \001(\0132\031.google.proto" - + "buf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.googl" - + "e.pubsub.v1.Subscription.StateB\003\340A\003\022i\n\037a" - + "nalytics_hub_subscription_info\030\027 \001(\0132;.g" - + "oogle.pubsub.v1.Subscription.AnalyticsHu" - + "bSubscriptionInfoB\003\340A\003\032O\n\034AnalyticsHubSu" - + "bscriptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014" - + "subscription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RE" - + "SOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleapis.c" - + "om/Subscription\022/projects/{project}/subs" - + "criptions/{subscription}\"\177\n\013RetryPolicy\022" - + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" - + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" - + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" - + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" - + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" - + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." - + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcToken" - + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" - + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" - + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" - + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" - + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" - + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" - + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" - + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" - + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" - + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" - + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" - + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" - + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" - + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" - + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" - + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" - + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" - + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" - + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" - + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" - + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" - + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" - + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" - + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" - + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" - + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" - + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" - + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" - + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" - + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" - + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" - + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" - + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" - + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" - + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" - + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" - + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" - + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" - + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" - + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." - + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" - + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\"" - + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022!\n\022retur" - + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" - + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" - + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022\024\n\007ack_i" - + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " - + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" - + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." - + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" - + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" - + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" - + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" - + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" - + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" - + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " - + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" - + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" - + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" - + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" - + "mingPullResponse.AcknowledgeConfirmation" - + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" - + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" - + "Response.ModifyAckDeadlineConfirmationB\003" - + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" - + "oogle.pubsub.v1.StreamingPullResponse.Su" - + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" - + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" - + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" - + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" - + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" - + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" - + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" - + "erties\022*\n\035exactly_once_delivery_enabled\030" - + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" - + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" - + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022H\n\006l" - + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" - + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" - + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" - + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" - + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" - + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" - + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" - + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" - + "om/Snapshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007" - + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" - + "ger.googleapis.com/Project\022\026\n\tpage_size\030" - + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025L" - + "istSnapshotsResponse\0222\n\tsnapshots\030\001 \003(\0132" - + "\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next" - + "_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshot" - + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu" - + "b.googleapis.com/Snapshot\"\306\001\n\013SeekReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022/\n\004time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n\010" - + "snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapi" - + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" - + "se2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027.google" - + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" - + "c\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/t" - + "opics/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pub" - + "sub.v1.UpdateTopicRequest\032\027.google.pubsu" - + "b.v1.Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$" - + "/v1/{topic.name=projects/*/topics/*}:\001*\022" - + "\223\001\n\007Publish\022 .google.pubsub.v1.PublishRe" - + "quest\032!.google.pubsub.v1.PublishResponse" - + "\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=pr" - + "ojects/*/topics/*}:publish:\001*\022w\n\010GetTopi" - + "c\022!.google.pubsub.v1.GetTopicRequest\032\027.g" - + "oogle.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/" - + "v1/{topic=projects/*/topics/*}\022\212\001\n\nListT" - + "opics\022#.google.pubsub.v1.ListTopicsReque" - + "st\032$.google.pubsub.v1.ListTopicsResponse" - + "\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=project" - + "s/*}/topics\022\272\001\n\026ListTopicSubscriptions\022/" - + ".google.pubsub.v1.ListTopicSubscriptions" - + "Request\0320.google.pubsub.v1.ListTopicSubs" - + "criptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{" - + "topic=projects/*/topics/*}/subscriptions" - + "\022\252\001\n\022ListTopicSnapshots\022+.google.pubsub." - + "v1.ListTopicSnapshotsRequest\032,.google.pu" - + "bsub.v1.ListTopicSnapshotsResponse\"9\332A\005t" - + "opic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" - + "/*}/snapshots\022|\n\013DeleteTopic\022$.google.pu" - + "bsub.v1.DeleteTopicRequest\032\026.google.prot" - + "obuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=p" - + "rojects/*/topics/*}\022\255\001\n\022DetachSubscripti" - + "on\022+.google.pubsub.v1.DetachSubscription" - + "Request\032,.google.pubsub.v1.DetachSubscri" - + "ptionResponse\"<\202\323\344\223\0026\"4/v1/{subscription" - + "=projects/*/subscriptions/*}:detach\032p\312A\025" - + "pubsub.googleapis.com\322AUhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/pubsub2\322\025\n\nSubscr" - + "iber\022\264\001\n\022CreateSubscription\022\036.google.pub" - + "sub.v1.Subscription\032\036.google.pubsub.v1.S" - + "ubscription\"^\332A+name,topic,push_config,a" - + "ck_deadline_seconds\202\323\344\223\002*\032%/v1/{name=pro" - + "jects/*/subscriptions/*}:\001*\022\241\001\n\017GetSubsc" - + "ription\022(.google.pubsub.v1.GetSubscripti" - + "onRequest\032\036.google.pubsub.v1.Subscriptio" - + "n\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscript" - + "ion=projects/*/subscriptions/*}\022\273\001\n\022Upda" - + "teSubscription\022+.google.pubsub.v1.Update" - + "SubscriptionRequest\032\036.google.pubsub.v1.S" - + "ubscription\"X\332A\030subscription,update_mask" - + "\202\323\344\223\002722/v1/{subscription.name=projects/" - + "*/subscriptions/*}:\001*\022\246\001\n\021ListSubscripti" - + "ons\022*.google.pubsub.v1.ListSubscriptions" - + "Request\032+.google.pubsub.v1.ListSubscript" - + "ionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{pro" - + "ject=projects/*}/subscriptions\022\237\001\n\022Delet" - + "eSubscription\022+.google.pubsub.v1.DeleteS" - + "ubscriptionRequest\032\026.google.protobuf.Emp" - + "ty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{subscrip" - + "tion=projects/*/subscriptions/*}\022\317\001\n\021Mod" - + "ifyAckDeadline\022*.google.pubsub.v1.Modify" - + "AckDeadlineRequest\032\026.google.protobuf.Emp" - + "ty\"v\332A)subscription,ack_ids,ack_deadline" - + "_seconds\202\323\344\223\002D\"?/v1/{subscription=projec" - + "ts/*/subscriptions/*}:modifyAckDeadline:" - + "\001*\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ac" - + "knowledgeRequest\032\026.google.protobuf.Empty" - + "\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{su" - + "bscription=projects/*/subscriptions/*}:a" - + "cknowledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v" - + "1.PullRequest\032\036.google.pubsub.v1.PullRes" - + "ponse\"\210\001\332A,subscription,return_immediate" - + "ly,max_messages\332A\031subscription,max_messa" - + "ges\202\323\344\223\0027\"2/v1/{subscription=projects/*/" - + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" - + "l\022&.google.pubsub.v1.StreamingPullReques" - + "t\032\'.google.pubsub.v1.StreamingPullRespon" - + "se\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.p" - + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" - + "e.protobuf.Empty\"d\332A\030subscription,push_c" - + "onfig\202\323\344\223\002C\">/v1/{subscription=projects/" - + "*/subscriptions/*}:modifyPushConfig:\001*\022\211" - + "\001\n\013GetSnapshot\022$.google.pubsub.v1.GetSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=proje" - + "cts/*/snapshots/*}\022\226\001\n\rListSnapshots\022&.g" - + "oogle.pubsub.v1.ListSnapshotsRequest\032\'.g" - + "oogle.pubsub.v1.ListSnapshotsResponse\"4\332" - + "A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*" - + "}/snapshots\022\227\001\n\016CreateSnapshot\022\'.google." - + "pubsub.v1.CreateSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"@\332A\021name,subscriptio" - + "n\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" - + "*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub" - + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"L\332A\024snapshot,update_mask\202\323" - + "\344\223\002/2*/v1/{snapshot.name=projects/*/snap" - + "shots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google." - + "pubsub.v1.DeleteSnapshotRequest\032\026.google" - + ".protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/" - + "{snapshot=projects/*/snapshots/*}\022\204\001\n\004Se" - + "ek\022\035.google.pubsub.v1.SeekRequest\032\036.goog" - + "le.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullRequest\022@\n\014s" + + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003" + + "\340A\001\022$\n\027modify_deadline_seconds\030\003 \003(\005B\003\340A" + + "\001\022$\n\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022" + + "(\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A" + + "\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstan" + + "ding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstand" + + "ing_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025StreamingPullRe" + + "sponse\022A\n\021received_messages\030\001 \003(\0132!.goog" + + "le.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n\030ack" + + "nowledge_confirmation\030\005 \001(\0132?.google.pub" + + "sub.v1.StreamingPullResponse.Acknowledge" + + "ConfirmationB\003\340A\001\022t\n modify_ack_deadline" + + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" + + "treamingPullResponse.ModifyAckDeadlineCo" + + "nfirmationB\003\340A\001\022d\n\027subscription_properti" + + "es\030\004 \001(\0132>.google.pubsub.v1.StreamingPul" + + "lResponse.SubscriptionPropertiesB\003\340A\001\032\224\001" + + "\n\027AcknowledgeConfirmation\022\024\n\007ack_ids\030\001 \003" + + "(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" + + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030tempora" + + "ry_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAc" + + "kDeadlineConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003" + + "\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030tem" + + "porary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026Subs" + + "criptionProperties\022*\n\035exactly_once_deliv" + + "ery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message_orderi" + + "ng_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshot" + + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.go" + + "ogleapis.com/Snapshot\022@\n\014subscription\030\002 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\022H\n\006labels\030\003 \003(\01323.google.pubsub." + + "v1.CreateSnapshotRequest.LabelsEntryB\003\340A" + + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" + + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubs" + + "ub.googleapis.com/Topic\0224\n\013expire_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" + + "\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsho" + + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.g" + + "oogleapis.com/Snapshot\022\'projects/{projec" + + "t}/snapshots/{snapshot}\"N\n\022GetSnapshotRe" + + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." + + "googleapis.com/Snapshot\"\215\001\n\024ListSnapshot" + + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnap" + + "shots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB" + + "\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025De" + + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340" + + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306\001" + + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "/\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubs" + + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + + "\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateTo" + + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + + "bsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=" + + "projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022" + + "$.google.pubsub.v1.UpdateTopicRequest\032\027." + + "google.pubsub.v1.Topic\"C\332A\021topic,update_" + + "mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/t" + + "opics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub." + + "v1.PublishRequest\032!.google.pubsub.v1.Pub" + + "lishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/" + + "v1/{topic=projects/*/topics/*}:publish:\001" + + "*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopi" + + "cRequest\032\027.google.pubsub.v1.Topic\"/\332A\005to" + + "pic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/" + + "*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Lis" + + "tTopicsRequest\032$.google.pubsub.v1.ListTo" + + "picsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pro" + + "ject=projects/*}/topics\022\272\001\n\026ListTopicSub" + + "scriptions\022/.google.pubsub.v1.ListTopicS" + + "ubscriptionsRequest\0320.google.pubsub.v1.L" + + "istTopicSubscriptionsResponse\"=\332A\005topic\202" + + "\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/s" + + "ubscriptions\022\252\001\n\022ListTopicSnapshots\022+.go" + + "ogle.pubsub.v1.ListTopicSnapshotsRequest" + + "\032,.google.pubsub.v1.ListTopicSnapshotsRe" + + "sponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proje" + + "cts/*/topics/*}/snapshots\022|\n\013DeleteTopic" + + "\022$.google.pubsub.v1.DeleteTopicRequest\032\026" + + ".google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037" + + "/v1/{topic=projects/*/topics/*}\022\255\001\n\022Deta" + + "chSubscription\022+.google.pubsub.v1.Detach" + + "SubscriptionRequest\032,.google.pubsub.v1.D" + + "etachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{" + "subscription=projects/*/subscriptions/*}" - + ":seek:\001*\032p\312A\025pubsub.googleapis.com\322AUhtt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/pubs" - + "ubB\252\001\n\024com.google.pubsub.v1B\013PubsubProto" - + "P\001Z2cloud.google.com/go/pubsub/apiv1/pub" - + "subpb;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.", - "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" + "oud::PubSub::V1b\006proto3" + + ":detach\032p\312A\025pubsub.googleapis.com\322AUhttp" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm,https://www.googleapis.com/auth/pubsu" + + "b2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022" + + "\036.google.pubsub.v1.Subscription\032\036.google" + + ".pubsub.v1.Subscription\"^\332A+name,topic,p" + + "ush_config,ack_deadline_seconds\202\323\344\223\002*\032%/" + + "v1/{name=projects/*/subscriptions/*}:\001*\022" + + "\241\001\n\017GetSubscription\022(.google.pubsub.v1.G" + + "etSubscriptionRequest\032\036.google.pubsub.v1" + + ".Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}\022\273\001\n\022UpdateSubscription\022+.google.pubs" + + "ub.v1.UpdateSubscriptionRequest\032\036.google" + + ".pubsub.v1.Subscription\"X\332A\030subscription" + + ",update_mask\202\323\344\223\002722/v1/{subscription.na" + + "me=projects/*/subscriptions/*}:\001*\022\246\001\n\021Li" + + "stSubscriptions\022*.google.pubsub.v1.ListS" + + "ubscriptionsRequest\032+.google.pubsub.v1.L" + + "istSubscriptionsResponse\"8\332A\007project\202\323\344\223" + + "\002(\022&/v1/{project=projects/*}/subscriptio" + + "ns\022\237\001\n\022DeleteSubscription\022+.google.pubsu" + + "b.v1.DeleteSubscriptionRequest\032\026.google." + + "protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/" + + "v1/{subscription=projects/*/subscription" + + "s/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pubs" + + "ub.v1.ModifyAckDeadlineRequest\032\026.google." + + "protobuf.Empty\"v\332A)subscription,ack_ids," + + "ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscri" + + "ption=projects/*/subscriptions/*}:modify" + + "AckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google." + + "pubsub.v1.AcknowledgeRequest\032\026.google.pr" + + "otobuf.Empty\"[\332A\024subscription,ack_ids\202\323\344" + + "\223\002>\"9/v1/{subscription=projects/*/subscr" + + "iptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.goo" + + "gle.pubsub.v1.PullRequest\032\036.google.pubsu" + + "b.v1.PullResponse\"\210\001\332A,subscription,retu" + + "rn_immediately,max_messages\332A\031subscripti" + + "on,max_messages\202\323\344\223\0027\"2/v1/{subscription" + + "=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.Streami" + + "ngPullRequest\032\'.google.pubsub.v1.Streami" + + "ngPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfi" + + "g\022).google.pubsub.v1.ModifyPushConfigReq" + + "uest\032\026.google.protobuf.Empty\"d\332A\030subscri" + + "ption,push_config\202\323\344\223\002C\">/v1/{subscripti" + + "on=projects/*/subscriptions/*}:modifyPus" + + "hConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubs" + + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" + + ".v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{sn" + + "apshot=projects/*/snapshots/*}\022\226\001\n\rListS" + + "napshots\022&.google.pubsub.v1.ListSnapshot" + + "sRequest\032\'.google.pubsub.v1.ListSnapshot" + + "sResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{projec" + + "t=projects/*}/snapshots\022\227\001\n\016CreateSnapsh" + + "ot\022\'.google.pubsub.v1.CreateSnapshotRequ" + + "est\032\032.google.pubsub.v1.Snapshot\"@\332A\021name" + + ",subscription\202\323\344\223\002&\032!/v1/{name=projects/" + + "*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.g" + + "oogle.pubsub.v1.UpdateSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"L\332A\024snapshot,u" + + "pdate_mask\202\323\344\223\002/2*/v1/{snapshot.name=pro", + "jects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsh" + + "ot\022\'.google.pubsub.v1.DeleteSnapshotRequ" + + "est\032\026.google.protobuf.Empty\"8\332A\010snapshot" + + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + + "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" + + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" + + "criptions/*}:seek:\001*\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsubB\252\001\n\024com.google.pubsub.v1B" + + "\013PubsubProtoP\001Z2cloud.google.com/go/pubs" + + "ub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.C" + + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352" + + "\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -810,7 +840,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Severity", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor, + new java.lang.String[] { + "Topic", "ErrorMessage", "CloudStorageFailure", "Failure", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, + new java.lang.String[] { + "Bucket", + "ObjectName", + "ObjectGeneration", + "AvroFailureReason", + "ApiViolationReason", + "Reason", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -834,7 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -850,7 +913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -858,7 +921,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -866,7 +929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -874,7 +937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -882,7 +945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -890,7 +953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -898,7 +961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -906,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -914,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -922,7 +985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -930,7 +993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -938,7 +1001,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -946,13 +1009,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -994,7 +1057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -1002,7 +1065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -1010,7 +1073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -1018,7 +1081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -1062,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -1076,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1109,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1117,7 +1180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1125,7 +1188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1133,7 +1196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1141,7 +1204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1149,7 +1212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1157,7 +1220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1165,7 +1228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1173,7 +1236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1181,7 +1244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1189,7 +1252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1197,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1212,7 +1275,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1247,7 +1310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1263,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1271,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1287,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1295,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1303,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1311,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1319,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1327,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 339188193..ed976fea0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bbd1aadfb..6c5f66a36 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 54b44b822..0f269f525 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -365,6 +365,63 @@ message PlatformLogsSettings { Severity severity = 1 [(google.api.field_behavior) = OPTIONAL]; } +// Payload of the Platform Log entry sent when a failure is encountered while +// ingesting. +message IngestionFailureEvent { + // Specifies the reason why some data may have been left out of + // the desired Pub/Sub message due to the API message limits + // (https://cloud.google.com/pubsub/quotas#resource_limits). For example, + // when the number of attributes is larger than 100, the number of + // attributes is truncated to 100 to respect the limit on the attribute count. + // Other attribute limits are treated similarly. When the size of the desired + // message would've been larger than 10MB, the message won't be published at + // all, and ingestion of the subsequent messages will proceed as normal. + message ApiViolationReason {} + + // Set when an Avro file is unsupported or its format is not valid. When this + // occurs, one or more Avro objects won't be ingested. + message AvroFailureReason {} + + // Failure when ingesting from a Cloud Storage source. + message CloudStorageFailure { + // Optional. Name of the Cloud Storage bucket used for ingestion. + string bucket = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the Cloud Storage object which contained the section + // that couldn't be ingested. + string object_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Generation of the Cloud Storage object which contained the + // section that couldn't be ingested. + int64 object_generation = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified object. + oneof reason { + // Optional. Failure encountered when parsing an Avro file. + AvroFailureReason avro_failure_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Required. Name of the import topic. Format is: + // projects/{project_name}/topics/{topic_name}. + string topic = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Error details explaining why ingestion to Pub/Sub has failed. + string error_message = 2 [(google.api.field_behavior) = REQUIRED]; + + oneof failure { + // Optional. Failure when ingesting from Cloud Storage. + CloudStorageFailure cloud_storage_failure = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + // A topic resource. message Topic { option (google.api.resource) = { From be78e64f9fdfc9ddf0790189311fac673754e219 Mon Sep 17 00:00:00 2001 From: Steven van Rossum Date: Sat, 12 Oct 2024 01:10:18 +0200 Subject: [PATCH 319/656] feat: track batch size using serialized size of PublishRequest (#2113) * feat: track batch size using serialized size of PublishRequest * fix: compare against batchedBytes instead of messageSize in flush condition * fix: also count static overhead in flow control * fix: adjust thresholds in tests * fix: clean up merge issue * fix: revert use of topicNameSize in MessageFlowController * fix: store topicNameSize as initialBatchedBytes in MessagesBatch --------- Co-authored-by: Mike Prieto --- .../com/google/cloud/pubsub/v1/Publisher.java | 21 ++++++++++++++----- .../cloud/pubsub/v1/PublisherImplTest.java | 8 +++---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 99d0be17b..3713cf69b 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -46,6 +46,7 @@ import com.google.cloud.pubsub.v1.stub.PublisherStub; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import com.google.common.base.Preconditions; +import com.google.protobuf.CodedOutputStream; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -99,6 +100,7 @@ public class Publisher implements PublisherInterface { private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; private final String topicName; + private final int topicNameSize; private final BatchingSettings batchingSettings; private final boolean enableMessageOrdering; @@ -145,6 +147,8 @@ public static long getApiMaxRequestBytes() { private Publisher(Builder builder) throws IOException { topicName = builder.topicName; + topicNameSize = + CodedOutputStream.computeStringSize(PublishRequest.TOPIC_FIELD_NUMBER, this.topicName); this.batchingSettings = builder.batchingSettings; FlowControlSettings flowControl = this.batchingSettings.getFlowControlSettings(); @@ -309,7 +313,7 @@ public ApiFuture publish(PubsubMessage message) { } MessagesBatch messagesBatch = messagesBatches.get(orderingKey); if (messagesBatch == null) { - messagesBatch = new MessagesBatch(batchingSettings, orderingKey); + messagesBatch = new MessagesBatch(batchingSettings, topicNameSize, orderingKey); messagesBatches.put(orderingKey, messagesBatch); } @@ -636,7 +640,9 @@ private static final class OutstandingPublish { OutstandingPublish(PubsubMessageWrapper messageWrapper) { this.publishResult = SettableApiFuture.create(); this.messageWrapper = messageWrapper; - this.messageSize = messageWrapper.getPubsubMessage().getSerializedSize(); + this.messageSize = + CodedOutputStream.computeMessageSize( + PublishRequest.MESSAGES_FIELD_NUMBER, messageWrapper.getPubsubMessage()); } } @@ -1093,12 +1099,15 @@ void release(long messageSize) { private class MessagesBatch { private List messages; + private int initialBatchedBytes; private int batchedBytes; private String orderingKey; private final BatchingSettings batchingSettings; - private MessagesBatch(BatchingSettings batchingSettings, String orderingKey) { + private MessagesBatch( + BatchingSettings batchingSettings, int initialBatchedBytes, String orderingKey) { this.batchingSettings = batchingSettings; + this.initialBatchedBytes = initialBatchedBytes; this.orderingKey = orderingKey; reset(); } @@ -1111,7 +1120,7 @@ private OutstandingBatch popOutstandingBatch() { private void reset() { messages = new LinkedList<>(); - batchedBytes = 0; + batchedBytes = initialBatchedBytes; } private boolean isEmpty() { @@ -1150,7 +1159,9 @@ && getBatchedBytes() + outstandingPublish.messageSize >= getMaxBatchBytes()) { // immediately. // Alternatively if after adding the message we have reached the batch max messages then we // have a batch to send. - if ((hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) + // Note that exceeding {@link Publisher#getApiMaxRequestBytes()} will result in failed + // publishes without compression and may yet fail if a request is not sufficiently compressed. + if ((hasBatchingBytes() && getBatchedBytes() >= getMaxBatchBytes()) || getMessagesCount() == batchingSettings.getElementCountThreshold()) { batchesToSend.add(popOutstandingBatch()); } diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 219326db5..411b61d15 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -447,7 +447,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(10L) - .setRequestByteThreshold(20L) + .setRequestByteThreshold(64L) .setDelayThreshold(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) @@ -1150,7 +1150,7 @@ public void testPublishFlowControl_throwException() throws Exception { .setLimitExceededBehavior( FlowController.LimitExceededBehavior.ThrowException) .setMaxOutstandingElementCount(1L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .build(); @@ -1192,7 +1192,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except .setLimitExceededBehavior( FlowController.LimitExceededBehavior.ThrowException) .setMaxOutstandingElementCount(1L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .setEnableMessageOrdering(true) @@ -1238,7 +1238,7 @@ public void testPublishFlowControl_block() throws Exception { FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) .setMaxOutstandingElementCount(2L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .build(); From fa9ad171ea42f742f6b0b42448cfdba6b47950a2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:02:47 -0400 Subject: [PATCH 320/656] chore: Update generation configuration at Tue Oct 15 02:27:24 UTC 2024 (#2230) * chore: Update generation configuration at Fri Oct 11 02:26:15 UTC 2024 * chore: generate libraries at Fri Oct 11 02:26:38 UTC 2024 * chore: Update generation configuration at Sat Oct 12 02:24:17 UTC 2024 * chore: generate libraries at Sat Oct 12 02:24:38 UTC 2024 * chore: Update generation configuration at Sun Oct 13 02:28:28 UTC 2024 * chore: Update generation configuration at Tue Oct 15 02:27:24 UTC 2024 --- README.md | 2 - generation_config.yaml | 2 +- .../pubsub/OpenTelemetryPublisherExample.java | 3 +- .../OpenTelemetrySubscriberExample.java | 3 +- .../java/pubsub/UsePubSubEmulatorExample.java | 3 +- .../src/main/java/utilities/StateProto.java | 376 +++++++++--------- .../src/test/java/pubsub/SubscriberIT.java | 2 - 7 files changed, 199 insertions(+), 192 deletions(-) diff --git a/README.md b/README.md index c66789341..ab047b1b0 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -67,7 +66,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" ``` - ## Authentication diff --git a/generation_config.yaml b/generation_config.yaml index 34111da58..724bb0b0f 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 10b8dc3b54c9a609dcfda8060b8c4c734a942e8c +googleapis_commitish: f78cd2f7943b9a2eb9734e56a8f3428da75917e2 libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java index 606c6fe36..c812eed16 100644 --- a/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -49,7 +49,8 @@ public static void main(String... args) throws Exception { public static void openTelemetryPublisherExample(String projectId, String topicId) throws IOException, ExecutionException, InterruptedException { Resource resource = - Resource.getDefault().toBuilder() + Resource.getDefault() + .toBuilder() .put(ResourceAttributes.SERVICE_NAME, "publisher-example") .build(); diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java index f78c38d19..d46900b9b 100644 --- a/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -47,7 +47,8 @@ public static void main(String... args) throws Exception { public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { Resource resource = - Resource.getDefault().toBuilder() + Resource.getDefault() + .toBuilder() .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") .build(); diff --git a/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java b/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java index 5da0bd7f8..c73aca098 100644 --- a/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java +++ b/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java @@ -39,7 +39,6 @@ import com.google.pubsub.v1.TopicName; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; -import java.io.IOException; public class UsePubSubEmulatorExample { public static void main(String... args) throws Exception { @@ -83,4 +82,4 @@ public static void main(String... args) throws Exception { } } } -// [END pubsub_use_emulator] \ No newline at end of file +// [END pubsub_use_emulator] diff --git a/samples/snippets/src/main/java/utilities/StateProto.java b/samples/snippets/src/main/java/utilities/StateProto.java index 8c9ece5de..f43d6e092 100644 --- a/samples/snippets/src/main/java/utilities/StateProto.java +++ b/samples/snippets/src/main/java/utilities/StateProto.java @@ -32,55 +32,55 @@ public final class StateProto { private StateProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface StateOrBuilder extends + + public interface StateOrBuilder + extends // @@protoc_insertion_point(interface_extends:utilities.State) com.google.protobuf.MessageOrBuilder { /** * string name = 1; + * * @return The name. */ java.lang.String getName(); /** * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** * string post_abbr = 2; + * * @return The postAbbr. */ java.lang.String getPostAbbr(); /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ - com.google.protobuf.ByteString - getPostAbbrBytes(); + com.google.protobuf.ByteString getPostAbbrBytes(); } - /** - * Protobuf type {@code utilities.State} - */ - public static final class State extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code utilities.State} */ + public static final class State extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private State() { name_ = ""; postAbbr_ = ""; @@ -88,13 +88,11 @@ private State() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new State(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -107,10 +105,12 @@ protected java.lang.Object newInstance( } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ @java.lang.Override @@ -119,8 +119,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -128,16 +127,15 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,10 +144,12 @@ public java.lang.String getName() { } public static final int POST_ABBR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; + * * @return The postAbbr. */ @java.lang.Override @@ -158,8 +158,7 @@ public java.lang.String getPostAbbr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -167,16 +166,15 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostAbbrBytes() { + public com.google.protobuf.ByteString getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -185,6 +183,7 @@ public java.lang.String getPostAbbr() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,17 +225,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof utilities.StateProto.State)) { return super.equals(obj); } utilities.StateProto.State other = (utilities.StateProto.State) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPostAbbr() - .equals(other.getPostAbbr())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPostAbbr().equals(other.getPostAbbr())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,90 +254,93 @@ public int hashCode() { return hash; } - public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data) + public static utilities.StateProto.State parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom( - com.google.protobuf.ByteString data) + + public static utilities.StateProto.State parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static utilities.StateProto.State parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static utilities.StateProto.State parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static utilities.StateProto.State parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static utilities.StateProto.State parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static utilities.StateProto.State parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static utilities.StateProto.State parseFrom( - com.google.protobuf.CodedInputStream input) + + public static utilities.StateProto.State parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static utilities.StateProto.State parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(utilities.StateProto.State prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -350,15 +349,13 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code utilities.State} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code utilities.State} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:utilities.State) utilities.StateProto.StateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -371,15 +368,12 @@ public static final class Builder extends } // Construct using utilities.StateProto.State.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,8 +384,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -412,7 +405,9 @@ public utilities.StateProto.State build() { @java.lang.Override public utilities.StateProto.State buildPartial() { utilities.StateProto.State result = new utilities.StateProto.State(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -431,38 +426,41 @@ private void buildPartial0(utilities.StateProto.State result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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 utilities.StateProto.State) { - return mergeFrom((utilities.StateProto.State)other); + return mergeFrom((utilities.StateProto.State) other); } else { super.mergeFrom(other); return this; @@ -507,22 +505,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - postAbbr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + postAbbr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,18 +533,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -553,15 +555,14 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,12 +571,14 @@ public java.lang.String getName() { } /** * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -583,6 +586,7 @@ public Builder setName( } /** * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,12 +597,14 @@ public Builder clearName() { } /** * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,13 +615,13 @@ public Builder setNameBytes( private java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; + * * @return The postAbbr. */ public java.lang.String getPostAbbr() { java.lang.Object ref = postAbbr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -625,15 +631,14 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ - public com.google.protobuf.ByteString - getPostAbbrBytes() { + public com.google.protobuf.ByteString getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -642,12 +647,14 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @param value The postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostAbbr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } postAbbr_ = value; bitField0_ |= 0x00000002; onChanged(); @@ -655,6 +662,7 @@ public Builder setPostAbbr( } /** * string post_abbr = 2; + * * @return This builder for chaining. */ public Builder clearPostAbbr() { @@ -665,18 +673,21 @@ public Builder clearPostAbbr() { } /** * string post_abbr = 2; + * * @param value The bytes for postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostAbbrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); postAbbr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -689,12 +700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:utilities.State) } // @@protoc_insertion_point(class_scope:utilities.State) private static final utilities.StateProto.State DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new utilities.StateProto.State(); } @@ -703,27 +714,28 @@ public static utilities.StateProto.State getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public State parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,37 +750,35 @@ public com.google.protobuf.Parser getParserForType() { public utilities.StateProto.State getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_utilities_State_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_utilities_State_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_utilities_State_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + - "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + - "rotob\006proto3" + "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + + "rotob\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_utilities_State_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_utilities_State_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_utilities_State_descriptor, - new java.lang.String[] { "Name", "PostAbbr", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_utilities_State_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_utilities_State_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_utilities_State_descriptor, + new java.lang.String[] { + "Name", "PostAbbr", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/samples/snippets/src/test/java/pubsub/SubscriberIT.java index b1c827d50..dc4bf0f7b 100644 --- a/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -38,9 +38,7 @@ import java.util.HashSet; import java.util.List; import java.util.UUID; -import org.junit.After; import org.junit.AfterClass; -import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; From 0cbadd2084100d47f5ef24f40336795c751dca1d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Oct 2024 19:38:47 +0200 Subject: [PATCH 321/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.49.0 (#2231) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f0b396364..2eae4754e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import From 5ae0c20beda4b528f5b274ea599a7a14cd1468dd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:58:32 -0400 Subject: [PATCH 322/656] chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024 (#2232) * chore: Update generation configuration at Wed Oct 16 02:27:51 UTC 2024 * chore: generate libraries at Wed Oct 16 02:28:13 UTC 2024 * chore: Update generation configuration at Thu Oct 17 02:26:59 UTC 2024 * chore: generate libraries at Thu Oct 17 02:27:22 UTC 2024 * chore: Update generation configuration at Fri Oct 18 02:27:26 UTC 2024 * chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024 --- README.md | 4 ++-- generation_config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ab047b1b0..5f4d18613 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.48.0') +implementation platform('com.google.cloud:libraries-bom:26.49.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 724bb0b0f..b57c1c1c5 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: f78cd2f7943b9a2eb9734e56a8f3428da75917e2 -libraries_bom_version: 26.48.0 +googleapis_commitish: 211a72fa5cd90bfbfe2d86d4e8163eee23171687 +libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 0d4beac3f9badafa992f37fd8ef6f4adbade0447 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 22 Oct 2024 00:00:59 +0200 Subject: [PATCH 323/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.8.0 (#2233) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9dc5c8da6..1b52d791a 100644 --- a/pom.xml +++ b/pom.xml @@ -151,7 +151,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.7.0 + 3.8.0 From 031bae5a08d39bdfb2a16f29bcf9f889970a6b09 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:01:41 -0400 Subject: [PATCH 324/656] chore: Update generation configuration at Tue Oct 22 02:27:16 UTC 2024 (#2234) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index b57c1c1c5..2fd8b678d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 211a72fa5cd90bfbfe2d86d4e8163eee23171687 +googleapis_commitish: beea48a164c2a8cc8485185c3a4f56c587090e1a libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub From 8f4f8556414aaef731a7226dcbffe59d91819775 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:07:13 +0200 Subject: [PATCH 325/656] deps: update sdk platform java dependencies (#2239) --- .github/workflows/hermetic_library_generation.yaml | 2 +- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 9399ebef2..4943e3e93 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.47.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.48.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 9cd0e3037..bfcdca700 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.37.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.38.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 0f8b919c9..9a49f7df6 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.37.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.38.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index e6553bd6e..e434ee684 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.37.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.38.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 29750bbfd..08501116c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.37.0 + 3.38.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 1b52d791a..33a1d8225 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.37.0 + 3.38.0 From 8a307b2f3ecef454bcfecbc360695c8c91a907ce Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:07:35 -0400 Subject: [PATCH 326/656] chore: Update generation configuration at Wed Oct 23 02:26:52 UTC 2024 (#2236) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 2fd8b678d..b4be54356 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: beea48a164c2a8cc8485185c3a4f56c587090e1a +googleapis_commitish: 099f913ac825d05776acbe656d44069b302d2345 libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub From dc06d5456ab6fe8d94b7b845ca9159391949517f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:08:41 +0200 Subject: [PATCH 327/656] deps: update dependency com.google.cloud:google-cloud-core to v2.46.0 (#2238) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 388009d83..fab6de6d3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8b7a9f9c9..882dc32c9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2eae4754e..93db4d4bd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests From 75abe83a9b14c2e5cc3f136ff97b5340bfa904db Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:11:13 +0200 Subject: [PATCH 328/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.3 (#2237) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fab6de6d3..ca64c4a22 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 882dc32c9..91e094996 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 93db4d4bd..94b5e3ee8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 From 36e83f675783038814ce29d697a369d2d0f7de4f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:25:04 -0400 Subject: [PATCH 329/656] chore(main): release 1.134.0 (#2228) * chore(main): release 1.134.0 * chore: generate libraries at Wed Oct 23 21:12:54 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 24 ++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 45 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 980d2335a..82b486058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.134.0](https://github.com/googleapis/java-pubsub/compare/v1.133.1...v1.134.0) (2024-10-23) + + +### Features + +* Add IngestionFailureEvent to the external proto ([6c67798](https://github.com/googleapis/java-pubsub/commit/6c67798c6b7442d77eb30fbba874344f32a926b4)) +* Track batch size using serialized size of PublishRequest ([#2113](https://github.com/googleapis/java-pubsub/issues/2113)) ([be78e64](https://github.com/googleapis/java-pubsub/commit/be78e64f9fdfc9ddf0790189311fac673754e219)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.43.1 ([#2202](https://github.com/googleapis/java-pubsub/issues/2202)) ([acaf5f2](https://github.com/googleapis/java-pubsub/commit/acaf5f2e3686a939d4b972c73a4d039142f753df)) +* Update dependency com.google.cloud:google-cloud-core to v2.46.0 ([#2238](https://github.com/googleapis/java-pubsub/issues/2238)) ([dc06d54](https://github.com/googleapis/java-pubsub/commit/dc06d5456ab6fe8d94b7b845ca9159391949517f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.43.2 ([#2226](https://github.com/googleapis/java-pubsub/issues/2226)) ([eb87c04](https://github.com/googleapis/java-pubsub/commit/eb87c04619f7bdaf59ce2b562a96b8c25d3c8196)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.33.0 ([#2225](https://github.com/googleapis/java-pubsub/issues/2225)) ([cc1b072](https://github.com/googleapis/java-pubsub/commit/cc1b0726009524ddee3c2ce7f1446608dd3bc752)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.3 ([#2237](https://github.com/googleapis/java-pubsub/issues/2237)) ([75abe83](https://github.com/googleapis/java-pubsub/commit/75abe83a9b14c2e5cc3f136ff97b5340bfa904db)) +* Update dependency org.apache.avro:avro to v1.11.4 [security] ([#2223](https://github.com/googleapis/java-pubsub/issues/2223)) ([31f276b](https://github.com/googleapis/java-pubsub/commit/31f276b10a96c53ecbd828972a9e3457c0c7c700)) +* Update sdk platform java dependencies ([#2239](https://github.com/googleapis/java-pubsub/issues/2239)) ([8f4f855](https://github.com/googleapis/java-pubsub/commit/8f4f8556414aaef731a7226dcbffe59d91819775)) + + +### Documentation + +* Add OpenTelemetry samples ([#2208](https://github.com/googleapis/java-pubsub/issues/2208)) ([c447fe5](https://github.com/googleapis/java-pubsub/commit/c447fe500ba48ba4fde27d97f10ef7664d09363b)) + ## [1.133.1](https://github.com/googleapis/java-pubsub/compare/v1.133.0...v1.133.1) (2024-10-07) diff --git a/README.md b/README.md index 5f4d18613..ff46e520d 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.133.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 08501116c..0e5d1576d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.2-SNAPSHOT + 1.134.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 600a997e3..ce3586669 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 3598f8f50..68ee5ba6b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/pom.xml b/pom.xml index 33a1d8225..f913cddb2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.2-SNAPSHOT + 1.134.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index ef4e86cc3..577ec7095 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 91e094996..bf16a43cf 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/versions.txt b/versions.txt index 4335d336b..33b8d64d5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.1:1.133.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT +google-cloud-pubsub:1.134.0:1.134.0 +grpc-google-cloud-pubsub-v1:1.116.0:1.116.0 +proto-google-cloud-pubsub-v1:1.116.0:1.116.0 From af0f194369d4a9f16dd14378aa90280adc194d98 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 01:00:25 +0200 Subject: [PATCH 330/656] deps: update googleapis/sdk-platform-java action to v2.49.0 (#2250) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 4943e3e93..46b80edc1 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.48.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.49.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From a492ecdabf6236e29c1d20d6d13aec1311eda870 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:00:44 -0400 Subject: [PATCH 331/656] chore(main): release 1.134.1-SNAPSHOT (#2243) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 0e5d1576d..28401db52 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.0 + 1.134.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index ce3586669..94981d829 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 68ee5ba6b..3e6dd844d 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index f913cddb2..2bd8c7f30 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.0 + 1.134.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 577ec7095..d151cf110 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bf16a43cf..3c9b7782e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 33b8d64d5..77a00b612 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.0:1.134.0 -grpc-google-cloud-pubsub-v1:1.116.0:1.116.0 -proto-google-cloud-pubsub-v1:1.116.0:1.116.0 +google-cloud-pubsub:1.134.0:1.134.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT From 31f427a69d2aa585a53d1f0dbf2db955819ad62d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:16:16 -0400 Subject: [PATCH 332/656] chore: Update generation configuration at Fri Oct 25 02:27:23 UTC 2024 (#2241) * chore: Update generation configuration at Thu Oct 24 02:26:45 UTC 2024 * chore: generate libraries at Thu Oct 24 02:27:12 UTC 2024 * chore: Update generation configuration at Fri Oct 25 02:27:23 UTC 2024 --- generation_config.yaml | 4 ++-- .../reflect-config.json | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index b4be54356..e461a523d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.47.0 -googleapis_commitish: 099f913ac825d05776acbe656d44069b302d2345 +gapic_generator_version: 2.48.0 +googleapis_commitish: 537fd482f6bb8afb3a146d9b21673a8eb27958bd libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index e63fd836f..87835ca4b 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, From a1b7f9f368637ae71cf45c04126d41615ac6944f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 03:16:36 +0200 Subject: [PATCH 333/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.0 (#2245) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ca64c4a22..b8a346ccb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.134.0 From 083cc7c930fa2728d2322c1343b0fc025f9e255d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 03:17:42 +0200 Subject: [PATCH 334/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.39.0 (#2251) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index bfcdca700..9c438d076 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.38.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.39.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 9a49f7df6..5f84dd393 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.38.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.39.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index e434ee684..418a399b7 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.38.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.39.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 28401db52..36e1217d8 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.38.0 + 3.39.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 2bd8c7f30..fb72d0f39 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.38.0 + 3.39.0 From 2be51a58cdcf04a1dc28bfe0f658bdae088e7d17 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:48:37 -0400 Subject: [PATCH 335/656] chore(main): release 1.134.1 (#2252) * chore(main): release 1.134.1 * chore: generate libraries at Sat Oct 26 01:18:46 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 8 ++++++++ README.md | 8 ++++---- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 30 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b486058..c6d61b177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.134.1](https://github.com/googleapis/java-pubsub/compare/v1.134.0...v1.134.1) (2024-10-26) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.39.0 ([#2251](https://github.com/googleapis/java-pubsub/issues/2251)) ([083cc7c](https://github.com/googleapis/java-pubsub/commit/083cc7c930fa2728d2322c1343b0fc025f9e255d)) +* Update googleapis/sdk-platform-java action to v2.49.0 ([#2250](https://github.com/googleapis/java-pubsub/issues/2250)) ([af0f194](https://github.com/googleapis/java-pubsub/commit/af0f194369d4a9f16dd14378aa90280adc194d98)) + ## [1.134.0](https://github.com/googleapis/java-pubsub/compare/v1.133.1...v1.134.0) (2024-10-23) diff --git a/README.md b/README.md index ff46e520d..467308471 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.133.1 + 1.134.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.1" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 36e1217d8..2569276da 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.1-SNAPSHOT + 1.134.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 94981d829..e977d2831 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 3e6dd844d..fe956336e 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/pom.xml b/pom.xml index fb72d0f39..e97c81359 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.1-SNAPSHOT + 1.134.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d151cf110..6d103a3e6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3c9b7782e..f605e3e8f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/versions.txt b/versions.txt index 77a00b612..875d0755b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.0:1.134.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT +google-cloud-pubsub:1.134.1:1.134.1 +grpc-google-cloud-pubsub-v1:1.116.1:1.116.1 +proto-google-cloud-pubsub-v1:1.116.1:1.116.1 From f7fbc6c7e4f7d8a8b31d4778d2cd8c55efcb9be1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:00 +0100 Subject: [PATCH 336/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.43.3 (#2256) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b8a346ccb..fa40300ab 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.43.1 + 2.43.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f605e3e8f..5f3667637 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.43.1 + 2.43.3 com.google.cloud From 9e2677624e3f0703103284ce76c32b845ad50f97 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:18 +0100 Subject: [PATCH 337/656] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.6.0 (#2247) --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 4a6ba6ed7..521e6a914 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -74,7 +74,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.5.0 + 3.6.0 checkstyle-suppressions.xml From b999a1cf3f2a1e94b2af35bca2c11f269694f74e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:29 +0100 Subject: [PATCH 338/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.1 (#2255) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fa40300ab..0d086b789 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1 From f8dae4d68c1835930d4e39522a354cdfcc4cdd84 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:41 +0100 Subject: [PATCH 339/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.44.1 (#2240) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0d086b789..3906a8a4f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.2 + 2.44.1 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5f3667637..e0685bbdc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.2 + 2.44.1 com.google.cloud.opentelemetry From 3df572918523738e8f2f28299efa811aa23e297b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 6 Nov 2024 18:18:09 +0100 Subject: [PATCH 340/656] deps: update dependency com.google.cloud:google-cloud-core to v2.47.0 (#2249) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3906a8a4f..2c8bbd5b4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e0685bbdc..af02a49d2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 94b5e3ee8..a8bdc638f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests From 77546e0548e72e331523fb4f30edd1577b5fe6ea Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:18:52 -0500 Subject: [PATCH 341/656] chore: Update generation configuration at Wed Nov 6 02:24:47 UTC 2024 (#2254) * chore: Update generation configuration at Sat Oct 26 02:24:29 UTC 2024 * chore: Update generation configuration at Sun Oct 27 02:29:11 UTC 2024 * chore: Update generation configuration at Tue Oct 29 02:27:44 UTC 2024 * chore: Update generation configuration at Wed Oct 30 02:27:20 UTC 2024 * chore: Update generation configuration at Thu Oct 31 02:27:54 UTC 2024 * chore: Update generation configuration at Fri Nov 1 02:30:31 UTC 2024 * chore: Update generation configuration at Sat Nov 2 02:25:12 UTC 2024 * chore: generate libraries at Sat Nov 2 02:25:54 UTC 2024 * chore: Update generation configuration at Tue Nov 5 02:25:23 UTC 2024 * chore: Update generation configuration at Wed Nov 6 02:24:47 UTC 2024 --- README.md | 2 +- generation_config.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 467308471..9e74e4993 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.49.0') +implementation platform('com.google.cloud:libraries-bom:26.50.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index e461a523d..3418d0efb 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.48.0 -googleapis_commitish: 537fd482f6bb8afb3a146d9b21673a8eb27958bd -libraries_bom_version: 26.49.0 +gapic_generator_version: 2.49.0 +googleapis_commitish: 5e306b977beaf42766855a4a26ebe1f2dd133d92 +libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 111366f5bb7afcbdc7a5a5efa0ef9c60c5100bdb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Nov 2024 19:40:57 +0100 Subject: [PATCH 342/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.50.0 (#2258) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a8bdc638f..1396e7ccc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.49.0 + 26.50.0 pom import From 5b3b68b3220dad5078f7c4696327ddcde4fe9f85 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:41:27 -0500 Subject: [PATCH 343/656] chore: Update generation configuration at Thu Nov 7 02:25:25 UTC 2024 (#2259) * chore: Update generation configuration at Thu Nov 7 02:25:25 UTC 2024 * chore: generate libraries at Thu Nov 7 02:26:09 UTC 2024 --- README.md | 2 +- generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e74e4993..af0173034 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 3418d0efb..698706c11 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.49.0 -googleapis_commitish: 5e306b977beaf42766855a4a26ebe1f2dd133d92 +googleapis_commitish: 69c246d6fb31a16c2a23c62753117773cd6c57c8 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub From d0aab7d157c628ff5b8787b8c75dfaedc7a7305f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Nov 2024 16:20:58 +0100 Subject: [PATCH 344/656] deps: update googleapis/sdk-platform-java action to v2.50.0 (#2261) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 46b80edc1..35aa3b151 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.49.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.50.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From b689fe262b3a4c90264669ec87408bfeb6dc7659 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Nov 2024 18:44:47 +0100 Subject: [PATCH 345/656] deps: update sdk platform java dependencies (#2262) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 9c438d076..1834e52e1 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.39.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.40.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 5f84dd393..82ed3a43e 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.39.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.40.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 418a399b7..a836c97f0 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.39.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.40.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2569276da..ff63c3f56 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.39.0 + 3.40.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index e97c81359..52a0c7108 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.39.0 + 3.40.0 From fbb5621a938054a9dd5028f63e3320e3be4e1275 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:41:24 -0500 Subject: [PATCH 346/656] chore: Update generation configuration at Fri Nov 15 02:29:39 UTC 2024 (#2260) * chore: Update generation configuration at Fri Nov 8 02:25:44 UTC 2024 * chore: generate libraries at Fri Nov 8 02:26:26 UTC 2024 * chore: Update generation configuration at Sat Nov 9 02:22:26 UTC 2024 * chore: Update generation configuration at Tue Nov 12 02:24:14 UTC 2024 * chore: Update generation configuration at Wed Nov 13 02:26:04 UTC 2024 * chore: Update generation configuration at Thu Nov 14 02:26:28 UTC 2024 * chore: Update generation configuration at Fri Nov 15 02:29:39 UTC 2024 --- README.md | 2 +- generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af0173034..9a04a2556 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.49.0 + 26.50.0 pom import diff --git a/generation_config.yaml b/generation_config.yaml index 698706c11..936ad16a3 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.49.0 -googleapis_commitish: 69c246d6fb31a16c2a23c62753117773cd6c57c8 +googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub From b5978495c38f122dea160a1a16df157671411f68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:31:23 -0500 Subject: [PATCH 347/656] chore(main): release 1.134.2-SNAPSHOT (#2253) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ff63c3f56..db2d62348 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.1 + 1.134.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index e977d2831..cb7ff2bcd 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index fe956336e..a39a50a2b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 52a0c7108..2745b8319 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.1 + 1.134.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 6d103a3e6..b0a5435b6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index af02a49d2..c9e008cf6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 875d0755b..66b7108e3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.1:1.134.1 -grpc-google-cloud-pubsub-v1:1.116.1:1.116.1 -proto-google-cloud-pubsub-v1:1.116.1:1.116.1 +google-cloud-pubsub:1.134.1:1.134.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT From 3f21af3e3fbc6ef49ecbe80712350d8712133c59 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:10:57 -0500 Subject: [PATCH 348/656] chore: Update generation configuration at Mon Nov 18 02:30:38 UTC 2024 (#2265) * chore: Update generation configuration at Sat Nov 16 02:28:19 UTC 2024 * chore: generate libraries at Sat Nov 16 02:28:59 UTC 2024 * chore: Update generation configuration at Mon Nov 18 02:30:38 UTC 2024 --- generation_config.yaml | 4 +- .../pubsub/v1/stub/PublisherStubSettings.java | 34 +++++++-------- .../v1/stub/SchemaServiceStubSettings.java | 12 +++--- .../v1/stub/SubscriberStubSettings.java | 42 +++++++++---------- 4 files changed, 46 insertions(+), 46 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 936ad16a3..1cd5e6971 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.49.0 -googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2 +gapic_generator_version: 2.50.0 +googleapis_commitish: 0b5613ee74c9558dd284aa2b01a585ce297c0045 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index f8bb0b2ca..d1640b7aa 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -79,11 +79,11 @@ import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.UpdateTopicRequest; import java.io.IOException; +import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.annotation.Generated; -import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -655,35 +655,35 @@ public static class Builder extends StubSettings.Builder Date: Mon, 18 Nov 2024 14:24:15 -0500 Subject: [PATCH 349/656] chore(main): release 1.134.2 (#2264) * chore(main): release 1.134.2 * chore: generate libraries at Mon Nov 18 17:11:53 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6d61b177..82d9f118d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.134.2](https://github.com/googleapis/java-pubsub/compare/v1.134.1...v1.134.2) (2024-11-18) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.49.0 ([77546e0](https://github.com/googleapis/java-pubsub/commit/77546e0548e72e331523fb4f30edd1577b5fe6ea)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.50.0 ([3f21af3](https://github.com/googleapis/java-pubsub/commit/3f21af3e3fbc6ef49ecbe80712350d8712133c59)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.43.3 ([#2256](https://github.com/googleapis/java-pubsub/issues/2256)) ([f7fbc6c](https://github.com/googleapis/java-pubsub/commit/f7fbc6c7e4f7d8a8b31d4778d2cd8c55efcb9be1)) +* Update dependency com.google.cloud:google-cloud-core to v2.47.0 ([#2249](https://github.com/googleapis/java-pubsub/issues/2249)) ([3df5729](https://github.com/googleapis/java-pubsub/commit/3df572918523738e8f2f28299efa811aa23e297b)) +* Update dependency com.google.cloud:google-cloud-storage to v2.44.1 ([#2240](https://github.com/googleapis/java-pubsub/issues/2240)) ([f8dae4d](https://github.com/googleapis/java-pubsub/commit/f8dae4d68c1835930d4e39522a354cdfcc4cdd84)) +* Update googleapis/sdk-platform-java action to v2.50.0 ([#2261](https://github.com/googleapis/java-pubsub/issues/2261)) ([d0aab7d](https://github.com/googleapis/java-pubsub/commit/d0aab7d157c628ff5b8787b8c75dfaedc7a7305f)) +* Update sdk platform java dependencies ([#2262](https://github.com/googleapis/java-pubsub/issues/2262)) ([b689fe2](https://github.com/googleapis/java-pubsub/commit/b689fe262b3a4c90264669ec87408bfeb6dc7659)) + ## [1.134.1](https://github.com/googleapis/java-pubsub/compare/v1.134.0...v1.134.1) (2024-10-26) diff --git a/README.md b/README.md index 9a04a2556..fc05a067d 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.2" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index db2d62348..fd4ab205c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.2-SNAPSHOT + 1.134.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index cb7ff2bcd..34ccd6268 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index a39a50a2b..dea977515 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/pom.xml b/pom.xml index 2745b8319..6407100a6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.2-SNAPSHOT + 1.134.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index b0a5435b6..fa506eee8 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c9e008cf6..5e487e769 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/versions.txt b/versions.txt index 66b7108e3..83ccf2fa9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.1:1.134.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT +google-cloud-pubsub:1.134.2:1.134.2 +grpc-google-cloud-pubsub-v1:1.116.2:1.116.2 +proto-google-cloud-pubsub-v1:1.116.2:1.116.2 From d7e55886b62826f54f0bb12a6bfa4ef67dee6521 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:43:59 +0100 Subject: [PATCH 350/656] deps: update dependency com.google.cloud:google-cloud-core to v2.48.0 (#2263) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2c8bbd5b4..0b935d6cc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5e487e769..832ed3825 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1396e7ccc..fc08b048b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests From 80a09e69111229080c413eff8426bd0b3d50458d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:08 +0100 Subject: [PATCH 351/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.45.0 (#2268) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0b935d6cc..281a79c56 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.44.1 + 2.45.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 832ed3825..15d9e8385 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.44.1 + 2.45.0 com.google.cloud.opentelemetry From e621f78c53c28c0060063d891bf1db743a5c5c97 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:17 +0100 Subject: [PATCH 352/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.2 (#2269) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 281a79c56..722fb8789 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2 From a5f70a9c2397a2c8f4642729922b742a3df01ed6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:26 +0100 Subject: [PATCH 353/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.44.0 (#2270) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 722fb8789..d04a0348c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.43.3 + 2.44.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 15d9e8385..64cbe3041 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.43.3 + 2.44.0 com.google.cloud From 7edfd9c315405c7703509fb9b7bc4f0d2686d870 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 21 Nov 2024 13:19:53 -0500 Subject: [PATCH 354/656] feat: introduce `java.time` variables and methods (#2271) * feat: introduce `java.time` variables and methods * ignore package private public interface changes --- .../clirr-ignored-differences.xml | 14 +++ .../cloud/pubsub/v1/MessageDispatcher.java | 6 +- .../com/google/cloud/pubsub/v1/Publisher.java | 20 ++--- .../v1/StreamingSubscriberConnection.java | 2 +- .../google/cloud/pubsub/v1/Subscriber.java | 88 ++++++++++++++----- .../pubsub/v1/FakePublisherServiceImpl.java | 2 +- .../v1/FakeScheduledExecutorService.java | 4 +- .../pubsub/v1/MessageDispatcherTest.java | 2 +- .../cloud/pubsub/v1/PublisherImplTest.java | 74 ++++++++-------- .../v1/StreamingSubscriberConnectionTest.java | 2 +- .../cloud/pubsub/v1/SubscriberTest.java | 11 ++- 11 files changed, 145 insertions(+), 80 deletions(-) diff --git a/google-cloud-pubsub/clirr-ignored-differences.xml b/google-cloud-pubsub/clirr-ignored-differences.xml index fc73daacd..866962660 100644 --- a/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/google-cloud-pubsub/clirr-ignored-differences.xml @@ -1,4 +1,18 @@ + + 7005 + + com/google/cloud/pubsub/v1/MessageDispatcher$Builder + *(org.threeten.bp.Duration) + *(java.time.Duration) + + + 7005 + + com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder + *(org.threeten.bp.Duration) + *(java.time.Duration) + diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 860fcbcf9..7112d4c02 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,6 +28,9 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import java.time.Duration; +import java.time.Instant; +import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -48,9 +51,6 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import java.util.logging.Logger; -import org.threeten.bp.Duration; -import org.threeten.bp.Instant; -import org.threeten.bp.temporal.ChronoUnit; /** * Dispatches messages to a message receiver while handling the messages acking and lease diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 3713cf69b..af7a57471 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -57,6 +57,7 @@ import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.Tracer; import java.io.IOException; +import java.time.Duration; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -73,7 +74,6 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import java.util.logging.Logger; -import org.threeten.bp.Duration; /** * A Cloud Pub/Sub publisher, that is @@ -198,7 +198,7 @@ private Publisher(Builder builder) throws IOException { // key? retrySettingsBuilder .setMaxAttempts(Integer.MAX_VALUE) - .setTotalTimeout(Duration.ofNanos(Long.MAX_VALUE)); + .setTotalTimeoutDuration(Duration.ofNanos(Long.MAX_VALUE)); } PublisherStubSettings.Builder stubSettings = @@ -740,7 +740,7 @@ public static final class Builder { private static final double DEFAULT_MULTIPLIER = 4; static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() - .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) + .setDelayThresholdDuration(DEFAULT_DELAY_THRESHOLD) .setRequestByteThreshold(DEFAULT_REQUEST_BYTES_THRESHOLD) .setElementCountThreshold(DEFAULT_ELEMENT_COUNT_THRESHOLD) .setFlowControlSettings( @@ -750,13 +750,13 @@ public static final class Builder { .build(); static final RetrySettings DEFAULT_RETRY_SETTINGS = RetrySettings.newBuilder() - .setTotalTimeout(DEFAULT_TOTAL_TIMEOUT) - .setInitialRetryDelay(DEFAULT_INITIAL_RETRY_DELAY) + .setTotalTimeoutDuration(DEFAULT_TOTAL_TIMEOUT) + .setInitialRetryDelayDuration(DEFAULT_INITIAL_RETRY_DELAY) .setRetryDelayMultiplier(DEFAULT_MULTIPLIER) - .setMaxRetryDelay(DEFAULT_MAX_RETRY_DELAY) - .setInitialRpcTimeout(DEFAULT_INITIAL_RPC_TIMEOUT) + .setMaxRetryDelayDuration(DEFAULT_MAX_RETRY_DELAY) + .setInitialRpcTimeoutDuration(DEFAULT_INITIAL_RPC_TIMEOUT) .setRpcTimeoutMultiplier(DEFAULT_MULTIPLIER) - .setMaxRpcTimeout(DEFAULT_MAX_RPC_TIMEOUT) + .setMaxRpcTimeoutDuration(DEFAULT_MAX_RPC_TIMEOUT) .build(); static final boolean DEFAULT_ENABLE_MESSAGE_ORDERING = false; private static final int THREADS_PER_CPU = 5; @@ -876,9 +876,9 @@ public Builder setBatchingSettings(BatchingSettings batchingSettings) { /** Configures the Publisher's retry parameters. */ public Builder setRetrySettings(RetrySettings retrySettings) { Preconditions.checkArgument( - retrySettings.getTotalTimeout().compareTo(MIN_TOTAL_TIMEOUT) >= 0); + retrySettings.getTotalTimeoutDuration().compareTo(MIN_TOTAL_TIMEOUT) >= 0); Preconditions.checkArgument( - retrySettings.getInitialRpcTimeout().compareTo(MIN_RPC_TIMEOUT) >= 0); + retrySettings.getInitialRpcTimeoutDuration().compareTo(MIN_RPC_TIMEOUT) >= 0); this.retrySettings = retrySettings; return this; } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 60da55cee..3ad124f80 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -51,6 +51,7 @@ import io.grpc.Status; import io.grpc.protobuf.StatusProto; import io.opentelemetry.api.trace.Span; +import java.time.Duration; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -68,7 +69,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; -import org.threeten.bp.Duration; /** Implementation of {@link AckProcessor} based on Cloud Pub/Sub streaming pull. */ final class StreamingSubscriberConnection extends AbstractApiService implements AckProcessor { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index e9926fa58..4b9ea3825 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -16,12 +16,15 @@ package com.google.cloud.pubsub.v1; +import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration; + import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; import com.google.api.core.ApiService; import com.google.api.core.BetaApi; import com.google.api.core.CurrentMillisClock; import com.google.api.core.InternalApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.FlowController.LimitExceededBehavior; @@ -55,7 +58,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; -import org.threeten.bp.Duration; /** * A Cloud Pub/Sub subscriber that is @@ -98,24 +100,37 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private static final int MAX_INBOUND_METADATA_SIZE = 4 * 1024 * 1024; // 4MB API maximum metadata size - @InternalApi static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + @InternalApi + static final java.time.Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = + java.time.Duration.ofMinutes(60); @InternalApi - static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY = - Duration.ofMinutes(1); + static final java.time.Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY = + java.time.Duration.ofMinutes(1); - @InternalApi static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION = Duration.ofMinutes(0); - @InternalApi static final Duration DEFAULT_MAX_ACK_DEADLINE_EXTENSION = Duration.ofSeconds(0); + @InternalApi + static final java.time.Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION = + java.time.Duration.ofMinutes(0); - @InternalApi static final Duration MIN_STREAM_ACK_DEADLINE = Duration.ofSeconds(10); - @InternalApi static final Duration MAX_STREAM_ACK_DEADLINE = Duration.ofSeconds(600); + @InternalApi + static final java.time.Duration DEFAULT_MAX_ACK_DEADLINE_EXTENSION = + java.time.Duration.ofSeconds(0); - @InternalApi static final Duration STREAM_ACK_DEADLINE_DEFAULT = Duration.ofSeconds(60); + @InternalApi + static final java.time.Duration MIN_STREAM_ACK_DEADLINE = java.time.Duration.ofSeconds(10); @InternalApi - static final Duration STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT = Duration.ofSeconds(60); + static final java.time.Duration MAX_STREAM_ACK_DEADLINE = java.time.Duration.ofSeconds(600); - @InternalApi static final Duration ACK_EXPIRATION_PADDING_DEFAULT = Duration.ofSeconds(5); + @InternalApi + static final java.time.Duration STREAM_ACK_DEADLINE_DEFAULT = java.time.Duration.ofSeconds(60); + + @InternalApi + static final java.time.Duration STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT = + java.time.Duration.ofSeconds(60); + + @InternalApi + static final java.time.Duration ACK_EXPIRATION_PADDING_DEFAULT = java.time.Duration.ofSeconds(5); private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); @@ -124,10 +139,10 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final boolean useLegacyFlowControl; - private final Duration maxAckExtensionPeriod; - private final Duration maxDurationPerAckExtension; + private final java.time.Duration maxAckExtensionPeriod; + private final java.time.Duration maxDurationPerAckExtension; private final boolean maxDurationPerAckExtensionDefaultUsed; - private final Duration minDurationPerAckExtension; + private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; // The ExecutorProvider used to generate executors for processing messages. @@ -490,10 +505,10 @@ public static final class Builder { private MessageReceiver receiver; private MessageReceiverWithAckResponse receiverWithAckResponse; - private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; - private Duration minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION; + private java.time.Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; + private java.time.Duration minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION; private boolean minDurationPerAckExtensionDefaultUsed = true; - private Duration maxDurationPerAckExtension = DEFAULT_MAX_ACK_DEADLINE_EXTENSION; + private java.time.Duration maxDurationPerAckExtension = DEFAULT_MAX_ACK_DEADLINE_EXTENSION; private boolean maxDurationPerAckExtensionDefaultUsed = true; private boolean useLegacyFlowControl = false; @@ -505,7 +520,7 @@ public static final class Builder { SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) .setMaxInboundMetadataSize(MAX_INBOUND_METADATA_SIZE) - .setKeepAliveTime(Duration.ofMinutes(5)) + .setKeepAliveTimeDuration(java.time.Duration.ofMinutes(5)) .build(); private HeaderProvider headerProvider = new NoHeaderProvider(); private CredentialsProvider credentialsProvider = @@ -596,6 +611,15 @@ public Builder setUseLegacyFlowControl(boolean value) { return this; } + /** + * This method is obsolete. Use {@link #setMaxAckExtensionPeriodDuration(java.time.Duration)} + * instead. + */ + @ObsoleteApi("Use setMaxAckExtensionPeriodDuration(java.time.Duration) instead") + public Builder setMaxAckExtensionPeriod(org.threeten.bp.Duration maxAckExtensionPeriod) { + return setMaxAckExtensionPeriodDuration(toJavaTimeDuration(maxAckExtensionPeriod)); + } + /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * @@ -605,12 +629,22 @@ public Builder setUseLegacyFlowControl(boolean value) { * *

A zero duration effectively disables auto deadline extensions. */ - public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { + public Builder setMaxAckExtensionPeriodDuration(java.time.Duration maxAckExtensionPeriod) { Preconditions.checkArgument(maxAckExtensionPeriod.toMillis() >= 0); this.maxAckExtensionPeriod = maxAckExtensionPeriod; return this; } + /** + * This method is obsolete. Use {@link + * #setMaxDurationPerAckExtensionDuration(java.time.Duration)} instead. + */ + @ObsoleteApi("Use setMaxDurationPerAckExtensionDuration(java.time.Duration) instead") + public Builder setMaxDurationPerAckExtension( + org.threeten.bp.Duration maxDurationPerAckExtension) { + return setMaxDurationPerAckExtensionDuration(toJavaTimeDuration(maxDurationPerAckExtension)); + } + /** * Set the upper bound for a single mod ack extention period. * @@ -621,7 +655,8 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { * *

MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration. */ - public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { + public Builder setMaxDurationPerAckExtensionDuration( + java.time.Duration maxDurationPerAckExtension) { // If a non-default min is set, make sure min is less than max Preconditions.checkArgument( maxDurationPerAckExtension.toMillis() >= 0 @@ -633,6 +668,16 @@ public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension return this; } + /** + * This method is obsolete. Use {@link + * #setMinDurationPerAckExtensionDuration(java.time.Duration)} instead. + */ + @ObsoleteApi("Use setMinDurationPerAckExtensionDuration(java.time.Duration) instead") + public Builder setMinDurationPerAckExtension( + org.threeten.bp.Duration minDurationPerAckExtension) { + return setMinDurationPerAckExtensionDuration(toJavaTimeDuration(minDurationPerAckExtension)); + } + /** * Set the lower bound for a single mod ack extention period. * @@ -643,7 +688,8 @@ public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension * *

MinDurationPerAckExtension configuration can be disabled by specifying a zero duration. */ - public Builder setMinDurationPerAckExtension(Duration minDurationPerAckExtension) { + public Builder setMinDurationPerAckExtensionDuration( + java.time.Duration minDurationPerAckExtension) { // If a non-default max is set, make sure min is less than max Preconditions.checkArgument( minDurationPerAckExtension.toMillis() >= 0 diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java index 23817f558..9ab1dec73 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java @@ -21,13 +21,13 @@ import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; import io.grpc.stub.StreamObserver; +import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import org.threeten.bp.Duration; /** * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index cf067e2da..65e199e92 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -18,6 +18,8 @@ import com.google.common.primitives.Ints; import com.google.common.util.concurrent.SettableFuture; +import java.time.Duration; +import java.time.Instant; import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; @@ -32,8 +34,6 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicBoolean; -import org.threeten.bp.Duration; -import org.threeten.bp.Instant; /** * Fake implementation of {@link ScheduledExecutorService} that allows tests control the reference diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index c608ee8d5..bd3dccccf 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -26,13 +26,13 @@ import com.google.protobuf.ByteString; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import java.time.Duration; import java.util.*; import java.util.concurrent.*; import org.junit.Before; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import org.threeten.bp.Duration; public class MessageDispatcherTest { private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 411b61d15..cdefa84f7 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -54,6 +54,7 @@ import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; import io.opentelemetry.sdk.trace.data.SpanData; +import java.time.Duration; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; @@ -66,7 +67,6 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import org.threeten.bp.Duration; @RunWith(JUnit4.class) public class PublisherImplTest { @@ -120,7 +120,7 @@ public void testPublishByDuration() throws Exception { .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setElementCountThreshold(10L) .build()) .build(); @@ -151,7 +151,7 @@ public void testPublishByNumBatchedMessages() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .build(); @@ -190,7 +190,7 @@ public void testSinglePublishByNumBytes() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .build(); @@ -225,7 +225,7 @@ public void testPublishByShutdown() throws Exception { .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .setElementCountThreshold(10L) .build()) .build(); @@ -259,7 +259,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); @@ -300,7 +300,7 @@ public void testPublishWithCompression() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableCompression(true) .setCompressionBytesThreshold(100) @@ -331,7 +331,7 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(3L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -384,7 +384,7 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(10L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -448,7 +448,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { .toBuilder() .setElementCountThreshold(10L) .setRequestByteThreshold(64L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -490,7 +490,7 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) .setEnableMessageOrdering(true) @@ -613,7 +613,7 @@ public void testPublishThrowExceptionForUnsubmittedOrderingKeyMessage() throws E Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(500)) + .setDelayThresholdDuration(Duration.ofSeconds(500)) .build()) .setEnableMessageOrdering(true) .build(); @@ -674,7 +674,7 @@ public void testErrorPropagation() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); testPublisherServiceImpl.addPublishError(Status.DATA_LOSS.asException()); @@ -695,7 +695,7 @@ public void testPublishFailureRetries() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); // To demonstrate that reaching duration will trigger publish @@ -718,7 +718,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) .build(); @@ -743,7 +743,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(3) .build()) .build(); @@ -768,7 +768,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) .build(); @@ -794,13 +794,13 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .build()) .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); // To demonstrate that reaching duration will trigger publish @@ -825,7 +825,7 @@ public void testPublisherGetters() throws Exception { builder.setBatchingSettings( BatchingSettings.newBuilder() .setRequestByteThreshold(10L) - .setDelayThreshold(Duration.ofMillis(11)) + .setDelayThresholdDuration(Duration.ofMillis(11)) .setElementCountThreshold(12L) .build()); builder.setCredentialsProvider(NoCredentialsProvider.create()); @@ -833,7 +833,8 @@ public void testPublisherGetters() throws Exception { assertEquals(TEST_TOPIC, publisher.getTopicName()); assertEquals(10, (long) publisher.getBatchingSettings().getRequestByteThreshold()); - assertEquals(Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThreshold()); + assertEquals( + Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThresholdDuration()); assertEquals(12, (long) publisher.getBatchingSettings().getElementCountThreshold()); publisher.shutdown(); assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); @@ -848,7 +849,8 @@ public void testBuilderParametersAndDefaults() { Publisher.Builder.DEFAULT_REQUEST_BYTES_THRESHOLD, builder.batchingSettings.getRequestByteThreshold().longValue()); assertEquals( - Publisher.Builder.DEFAULT_DELAY_THRESHOLD, builder.batchingSettings.getDelayThreshold()); + Publisher.Builder.DEFAULT_DELAY_THRESHOLD, + builder.batchingSettings.getDelayThresholdDuration()); assertEquals( Publisher.Builder.DEFAULT_ELEMENT_COUNT_THRESHOLD, builder.batchingSettings.getElementCountThreshold().longValue()); @@ -906,7 +908,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofMillis(1)) + .setDelayThresholdDuration(Duration.ofMillis(1)) .build()); try { builder.setBatchingSettings( @@ -919,7 +921,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofMillis(-1)) + .setDelayThresholdDuration(Duration.ofMillis(-1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -965,13 +967,13 @@ public void testBuilderInvalidArguments() { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT) + .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT) .build()); try { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) + .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -980,13 +982,13 @@ public void testBuilderInvalidArguments() { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT) + .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT) .build()); try { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) + .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -1031,7 +1033,7 @@ public void testAwaitTermination() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) .build(); @@ -1066,7 +1068,7 @@ public void invalidFlowControlBytes_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1091,7 +1093,7 @@ public void invalidFlowControlElementCount_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1116,7 +1118,7 @@ public void testMessageExceedsFlowControlLimits_throwException() throws Exceptio Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) @@ -1144,7 +1146,7 @@ public void testPublishFlowControl_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1186,7 +1188,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1233,7 +1235,7 @@ public void testPublishFlowControl_block() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) @@ -1325,7 +1327,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 95f8897a4..412dd2ad8 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -34,6 +34,7 @@ import com.google.rpc.Status; import io.grpc.StatusException; import io.grpc.protobuf.StatusProto; +import java.time.Duration; import java.util.*; import java.util.concurrent.ExecutionException; import org.junit.After; @@ -41,7 +42,6 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; -import org.threeten.bp.Duration; /** Tests for {@link StreamingSubscriberConnection}. */ public class StreamingSubscriberConnectionTest { diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 612c244fe..679d37e40 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -35,13 +35,13 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; +import java.time.Duration; import java.util.concurrent.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; -import org.threeten.bp.Duration; /** Tests for {@link Subscriber}. */ public class SubscriberTest { @@ -241,7 +241,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { Subscriber subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( @@ -255,7 +256,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( @@ -269,7 +271,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( From 1696d02d4040f90c02337df77767a392e345d1e4 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 27 Nov 2024 20:22:40 +0000 Subject: [PATCH 355/656] chore: make library generation required (#2274) * chore: make library generation required * chore: generate libraries at Wed Nov 27 20:07:36 UTC 2024 --------- Co-authored-by: cloud-java-bot --- .github/sync-repo-settings.yaml | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 8f2999f82..491be19e7 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -18,6 +18,7 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - library_generation - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 diff --git a/README.md b/README.md index fc05a067d..de4683403 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2 ``` From 7b846fd3492bd36a7c721ac1c950dcc596d2c4d3 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 28 Nov 2024 07:42:26 -0500 Subject: [PATCH 356/656] chore: mark the unmanaged dependency check required (#2275) b/326247198 --- .github/sync-repo-settings.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 491be19e7..9908bfe38 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -19,6 +19,7 @@ branchProtectionRules: - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc - library_generation + - unmanaged_dependency_check - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 From 54ac1afeae155aec0418235a3c5cf5754c039890 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Dec 2024 00:54:48 +0100 Subject: [PATCH 357/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.51.0 (#2278) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fc08b048b..e1b5be620 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import From 54ef88d7f822d8130717e3be9bcf7fe9901d6cb0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Dec 2024 00:55:05 +0100 Subject: [PATCH 358/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.0 (#2276) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d04a0348c..aa16633ce 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 64cbe3041..a22da39b0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e1b5be620..6aa3fa562 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 From 44b13326443cee437ca048ce6303f0d72c924884 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:54:28 -0500 Subject: [PATCH 359/656] chore(main): release 1.134.3-SNAPSHOT (#2266) * chore(main): release 1.134.3-SNAPSHOT * chore: generate libraries at Wed Dec 4 23:56:04 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index de4683403..da72489ca 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index fd4ab205c..7c4533272 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.2 + 1.134.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 34ccd6268..81df2d440 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index dea977515..a216915ef 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6407100a6..8ff9d06eb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.2 + 1.134.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index fa506eee8..beac4e05e 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a22da39b0..a78025dc9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 83ccf2fa9..d397e309f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.2:1.134.2 -grpc-google-cloud-pubsub-v1:1.116.2:1.116.2 -proto-google-cloud-pubsub-v1:1.116.2:1.116.2 +google-cloud-pubsub:1.134.2:1.134.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT From 8aeff1a375f3aa989d2c4bde0ed3dd2f329601fc Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 6 Dec 2024 10:18:07 -0500 Subject: [PATCH 360/656] docs: Fix repository URL in samples README (#2280) --- samples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/README.md b/samples/README.md index 5656f6f4d..4390e7ea6 100644 --- a/samples/README.md +++ b/samples/README.md @@ -2,7 +2,7 @@ 1. Clone this repo and navigate to the `snippets` directory. ```shell - git clone https://github.com/googlepis/java-pubsub + git clone https://github.com/googleapis/java-pubsub cd java-pubsub/samples/snippets ``` From de3c9e1c7f2fe6413d0ae7a18955f16611df95c6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 6 Dec 2024 21:45:47 +0100 Subject: [PATCH 361/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.1 (#2279) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index aa16633ce..be35be282 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a78025dc9..330d16423 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6aa3fa562..63e037941 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 From 7e180475bad15851b5fe2b6c278a6e3f527a5dbe Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:46:05 -0500 Subject: [PATCH 362/656] chore: Update generation configuration at Fri Dec 6 02:31:00 UTC 2024 (#2267) * chore: Update generation configuration at Tue Nov 19 02:29:41 UTC 2024 * chore: Update generation configuration at Wed Nov 20 02:29:07 UTC 2024 * chore: Update generation configuration at Thu Nov 21 02:28:56 UTC 2024 * chore: Update generation configuration at Fri Nov 22 02:29:33 UTC 2024 * chore: Update generation configuration at Sat Nov 23 02:27:22 UTC 2024 * chore: Update generation configuration at Tue Nov 26 02:29:47 UTC 2024 * chore: Update generation configuration at Wed Nov 27 02:30:44 UTC 2024 * chore: Update generation configuration at Thu Nov 28 02:30:34 UTC 2024 * chore: Update generation configuration at Fri Nov 29 02:30:35 UTC 2024 * chore: Update generation configuration at Tue Dec 3 02:31:16 UTC 2024 * chore: Update generation configuration at Wed Dec 4 02:31:23 UTC 2024 * chore: Update generation configuration at Thu Dec 5 02:31:38 UTC 2024 * chore: Update generation configuration at Fri Dec 6 02:31:00 UTC 2024 * chore: generate libraries at Fri Dec 6 02:31:31 UTC 2024 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index da72489ca..3f0f73f52 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.50.0') +implementation platform('com.google.cloud:libraries-bom:26.51.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 1cd5e6971..7dac230ff 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.50.0 -googleapis_commitish: 0b5613ee74c9558dd284aa2b01a585ce297c0045 -libraries_bom_version: 26.50.0 +googleapis_commitish: 3be31fed1e19de78da8ae8a7f074ecaae5d1db60 +libraries_bom_version: 26.51.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 0be820e2044253bf484d88d703ce2dfade7aa137 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:04:27 +0100 Subject: [PATCH 363/656] deps: update googleapis/sdk-platform-java action to v2.51.0 (#2284) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 35aa3b151..604b674ba 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.50.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From cd94a1987271eea4d7744286a7daeb071bb9456a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:12:31 +0100 Subject: [PATCH 364/656] deps: update dependency com.google.cloud:google-cloud-core to v2.49.0 (#2285) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index be35be282..c9853204f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 330d16423..84b375212 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 63e037941..c74d17651 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests From 0c0a1b9231953e5c9878e0dfcf5a55d01794f6c4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:17:12 +0100 Subject: [PATCH 365/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 (#2286) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 1834e52e1..c1918a2b7 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.40.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 82ed3a43e..76ca3ee6d 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.40.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index a836c97f0..644bb62ce 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.40.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7c4533272..a69c63990 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.40.0 + 3.41.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 8ff9d06eb..d4dc1c90b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.40.0 + 3.41.0 From 0b0d52c8fca179a913a8b04d76b44748f1886f45 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:48:26 -0500 Subject: [PATCH 366/656] chore: Update generation configuration at Thu Dec 12 19:17:58 UTC 2024 (#2287) * chore: Update generation configuration at Thu Dec 12 19:17:58 UTC 2024 * update renovate.json * update generator version in config * update workflow script --------- Co-authored-by: JoeWang1127 --- .github/scripts/update_generation_config.sh | 63 ++++++++++++++++++--- generation_config.yaml | 4 +- renovate.json | 17 ------ 3 files changed, 57 insertions(+), 27 deletions(-) diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index 561a31304..91434688c 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -28,11 +28,23 @@ function update_config() { sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" } +# Update an action to a new version in GitHub action. +function update_action() { + local key_word=$1 + local new_value=$2 + local file=$3 + echo "Update ${key_word} to ${new_value} in ${file}" + # use a different delimiter because the key_word contains "/". + sed -i -e "s|${key_word}@v.*$|${key_word}@v${new_value}|" "${file}" +} + # The parameters of this script is: # 1. base_branch, the base branch of the result pull request. # 2. repo, organization/repo-name, e.g., googleapis/google-cloud-java # 3. [optional] generation_config, the path to the generation configuration, # the default value is generation_config.yaml in the repository root. +# 4. [optional] workflow, the library generation workflow file, +# the default value is .github/workflows/hermetic_library_generation.yaml. while [[ $# -gt 0 ]]; do key="$1" case "${key}" in @@ -48,6 +60,10 @@ case "${key}" in generation_config="$2" shift ;; + --workflow) + workflow="$2" + shift + ;; *) echo "Invalid option: [$1]" exit 1 @@ -71,21 +87,34 @@ if [ -z "${generation_config}" ]; then echo "Use default generation config: ${generation_config}" fi +if [ -z "${workflow}" ]; then + workflow=".github/workflows/hermetic_library_generation.yaml" + echo "Use default library generation workflow file: ${workflow}" +fi + current_branch="generate-libraries-${base_branch}" title="chore: Update generation configuration at $(date)" -# try to find a open pull request associated with the branch +git checkout "${base_branch}" +# Try to find a open pull request associated with the branch pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") -# create a branch if there's no open pull request associated with the +# Create a branch if there's no open pull request associated with the # branch; otherwise checkout the pull request. if [ -z "${pr_num}" ]; then git checkout -b "${current_branch}" + # Push the current branch to remote so that we can + # compare the commits later. + git push -u origin "${current_branch}" else gh pr checkout "${pr_num}" fi +# Only allow fast-forward merging; exit with non-zero result if there's merging +# conflict. +git merge -m "chore: merge ${base_branch} into ${current_branch}" "${base_branch}" + mkdir tmp-googleapis -# use partial clone because only commit history is needed. +# Use partial clone because only commit history is needed. git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis pushd tmp-googleapis git pull @@ -94,25 +123,43 @@ popd rm -rf tmp-googleapis update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" -# update gapic-generator-java version to the latest +# Update gapic-generator-java version to the latest latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") update_config "gapic_generator_version" "${latest_version}" "${generation_config}" -# update libraries-bom version to the latest +# Update composite action version to latest gapic-generator-java version +update_action "googleapis/sdk-platform-java/.github/scripts" \ + "${latest_version}" \ + "${workflow}" + +# Update libraries-bom version to the latest latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") update_config "libraries_bom_version" "${latest_version}" "${generation_config}" -git add "${generation_config}" +git add "${generation_config}" "${workflow}" changed_files=$(git diff --cached --name-only) if [[ "${changed_files}" == "" ]]; then echo "The latest generation config is not changed." echo "Skip committing to the pull request." +else + git commit -m "${title}" +fi + +# There are potentially at most two commits: merge commit and change commit. +# We want to exit the script if no commit happens (otherwise this will be an +# infinite loop). +# `git cherry` is a way to find whether the local branch has commits that are +# not in the remote branch. +# If we find any such commit, push them to remote branch. +unpushed_commit=$(git cherry -v "origin/${current_branch}" | wc -l) +if [[ "${unpushed_commit}" -eq 0 ]]; then + echo "No unpushed commits, exit" exit 0 fi -git commit -m "${title}" + if [ -z "${pr_num}" ]; then git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git" - git fetch -q --unshallow remote_repo + git fetch -q remote_repo git push -f remote_repo "${current_branch}" gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" else diff --git a/generation_config.yaml b/generation_config.yaml index 7dac230ff..a1f95639c 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.50.0 -googleapis_commitish: 3be31fed1e19de78da8ae8a7f074ecaae5d1db60 +gapic_generator_version: 2.51.0 +googleapis_commitish: 7d0c6bee2517d77635beb2a1dd6d6e7d4d943512 libraries_bom_version: 26.51.0 libraries: - api_shortname: pubsub diff --git a/renovate.json b/renovate.json index 9afb4c0bf..f67202e06 100644 --- a/renovate.json +++ b/renovate.json @@ -41,16 +41,6 @@ ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" - }, - { - "fileMatch": [ - "^.github/workflows/hermetic_library_generation.yaml$" - ], - "matchStrings": [ - "uses: googleapis/sdk-platform-java/.github/scripts@v(?.+?)\\n" - ], - "depNameTemplate": "com.google.api:gapic-generator-java", - "datasourceTemplate": "maven" } ], "packageRules": [ @@ -111,13 +101,6 @@ "^com.fasterxml.jackson.core" ], "groupName": "jackson dependencies" - }, - { - "matchPackagePatterns": [ - "^com.google.api:gapic-generator-java", - "^com.google.cloud:sdk-platform-java-config" - ], - "groupName": "SDK platform Java dependencies" } ], "semanticCommits": true, From 34704b0df3fa0be3359c585b8fe8d51ad3d2362d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:14:04 -0500 Subject: [PATCH 367/656] chore(main): release 1.135.0 (#2281) * chore(main): release 1.135.0 * chore: generate libraries at Thu Dec 12 20:49:16 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 29 ++++++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 50 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82d9f118d..2aebaf6bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [1.135.0](https://github.com/googleapis/java-pubsub/compare/v1.134.2...v1.135.0) (2024-12-12) + + +### Features + +* Introduce `java.time` variables and methods ([#2271](https://github.com/googleapis/java-pubsub/issues/2271)) ([7edfd9c](https://github.com/googleapis/java-pubsub/commit/7edfd9c315405c7703509fb9b7bc4f0d2686d870)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.0 ([0b0d52c](https://github.com/googleapis/java-pubsub/commit/0b0d52c8fca179a913a8b04d76b44748f1886f45)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.44.0 ([#2270](https://github.com/googleapis/java-pubsub/issues/2270)) ([a5f70a9](https://github.com/googleapis/java-pubsub/commit/a5f70a9c2397a2c8f4642729922b742a3df01ed6)) +* Update dependency com.google.cloud:google-cloud-core to v2.48.0 ([#2263](https://github.com/googleapis/java-pubsub/issues/2263)) ([d7e5588](https://github.com/googleapis/java-pubsub/commit/d7e55886b62826f54f0bb12a6bfa4ef67dee6521)) +* Update dependency com.google.cloud:google-cloud-core to v2.49.0 ([#2285](https://github.com/googleapis/java-pubsub/issues/2285)) ([cd94a19](https://github.com/googleapis/java-pubsub/commit/cd94a1987271eea4d7744286a7daeb071bb9456a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.45.0 ([#2268](https://github.com/googleapis/java-pubsub/issues/2268)) ([80a09e6](https://github.com/googleapis/java-pubsub/commit/80a09e69111229080c413eff8426bd0b3d50458d)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 ([#2286](https://github.com/googleapis/java-pubsub/issues/2286)) ([0c0a1b9](https://github.com/googleapis/java-pubsub/commit/0c0a1b9231953e5c9878e0dfcf5a55d01794f6c4)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.0 ([#2276](https://github.com/googleapis/java-pubsub/issues/2276)) ([54ef88d](https://github.com/googleapis/java-pubsub/commit/54ef88d7f822d8130717e3be9bcf7fe9901d6cb0)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.1 ([#2279](https://github.com/googleapis/java-pubsub/issues/2279)) ([de3c9e1](https://github.com/googleapis/java-pubsub/commit/de3c9e1c7f2fe6413d0ae7a18955f16611df95c6)) +* Update googleapis/sdk-platform-java action to v2.51.0 ([#2284](https://github.com/googleapis/java-pubsub/issues/2284)) ([0be820e](https://github.com/googleapis/java-pubsub/commit/0be820e2044253bf484d88d703ce2dfade7aa137)) + + +### Documentation + +* Fix repository URL in samples README ([#2280](https://github.com/googleapis/java-pubsub/issues/2280)) ([8aeff1a](https://github.com/googleapis/java-pubsub/commit/8aeff1a375f3aa989d2c4bde0ed3dd2f329601fc)) + ## [1.134.2](https://github.com/googleapis/java-pubsub/compare/v1.134.1...v1.134.2) (2024-11-18) diff --git a/README.md b/README.md index 3f0f73f52..682f9ea4d 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.135.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.135.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.135.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index a69c63990..44b72d4e4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.3-SNAPSHOT + 1.135.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 81df2d440..7547d60f8 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index a216915ef..c6109ceaa 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/pom.xml b/pom.xml index d4dc1c90b..7dd3d73a5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.3-SNAPSHOT + 1.135.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index beac4e05e..dcd873c02 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 84b375212..e5625cdb9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/versions.txt b/versions.txt index d397e309f..ee35354e8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.2:1.134.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT +google-cloud-pubsub:1.135.0:1.135.0 +grpc-google-cloud-pubsub-v1:1.117.0:1.117.0 +proto-google-cloud-pubsub-v1:1.117.0:1.117.0 From 7aa8605f03f596903fcb21144867bfd9636e4b5e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:39:30 -0500 Subject: [PATCH 368/656] chore(main): release 1.135.1-SNAPSHOT (#2288) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 44b72d4e4..c13eb6d38 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.135.0 + 1.135.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 7547d60f8..45b4eb493 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c6109ceaa..654c3e430 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7dd3d73a5..00fb220c2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.135.0 + 1.135.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index dcd873c02..8e099b522 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e5625cdb9..2b4d9a69a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index ee35354e8..4cb943167 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.135.0:1.135.0 -grpc-google-cloud-pubsub-v1:1.117.0:1.117.0 -proto-google-cloud-pubsub-v1:1.117.0:1.117.0 +google-cloud-pubsub:1.135.0:1.135.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT From 48d4ac1ab2f0b9f9005292977c288f55322dd16a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:18 +0100 Subject: [PATCH 369/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.2 (#2294) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c9853204f..f763d324f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2b4d9a69a..1f6996499 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c74d17651..7453dca7a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 From 978f57bdc3e024d168bd6969fbedcb998094cc6d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:32 +0100 Subject: [PATCH 370/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.52.0 (#2293) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7453dca7a..df9a7ab0b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.51.0 + 26.52.0 pom import From 79a89823c6cbcc9a718f44856040b1525863cab6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:45 +0100 Subject: [PATCH 371/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.45.0 (#2292) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f763d324f..72e67a59f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.44.0 + 2.45.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1f6996499..07d739b4d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.44.0 + 2.45.0 com.google.cloud From 7b60884cc4e17df616155f7530a056c4c5e3af29 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:59 +0100 Subject: [PATCH 372/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.46.0 (#2291) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 72e67a59f..8ca567557 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.45.0 + 2.46.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 07d739b4d..55e9d7dd6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.45.0 + 2.46.0 com.google.cloud.opentelemetry From 58df0aca3aa2640475133a0f7df90fc489751136 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:32:13 +0100 Subject: [PATCH 373/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.135.0 (#2290) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8ca567557..c4e1df71b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.135.0 From e5b68a563aa6ebb2bd69665624fc7fc6aef50b64 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 7 Jan 2025 21:24:22 +0100 Subject: [PATCH 374/656] deps: update dependency org.assertj:assertj-core to v3.27.2 (#2296) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 00fb220c2..c0389875e 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.26.3 + 3.27.2 test From 16e0144d83c149b60e7b8fca6c4e61546d93462f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Jan 2025 19:35:48 +0100 Subject: [PATCH 375/656] deps: update googleapis/sdk-platform-java action to v2.51.1 (#2298) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 604b674ba..c1be8aca5 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 53c1a8abdd3114e0f432b3b6618133fb93e44636 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Jan 2025 22:40:06 +0100 Subject: [PATCH 376/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 (#2301) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index c1918a2b7..a09089f86 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 76ca3ee6d..9705694f8 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 644bb62ce..b070666b4 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.1" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c13eb6d38..25e977e80 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.41.0 + 3.41.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index c0389875e..1e144d4f9 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.41.0 + 3.41.1 From 2947169c009fa553202bc1e44276cf5a7954cd96 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:43:32 -0500 Subject: [PATCH 377/656] chore: Update generation configuration at Wed Jan 8 17:05:08 UTC 2025 (#2299) * chore: Update generation configuration at Wed Jan 8 17:05:08 UTC 2025 * chore: generate libraries at Wed Jan 8 17:05:53 UTC 2025 --- README.md | 6 +- generation_config.yaml | 4 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 +- .../pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 2 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 2 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 2 +- .../reflect-config.json | 135 + .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../v1/TopicAdminClientHttpJsonTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../com/google/pubsub/v1/PublisherGrpc.java | 2 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 2 +- .../v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 8102 ++++++++++++++++- .../IngestionDataSourceSettingsOrBuilder.java | 127 +- .../pubsub/v1/IngestionFailureEvent.java | 7154 +++++++++++++-- .../v1/IngestionFailureEventOrBuilder.java | 128 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../pubsub/v1/PlatformLogsSettings.java | 2 +- .../v1/PlatformLogsSettingsOrBuilder.java | 2 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 955 +- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 2 +- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 252 + 183 files changed, 15395 insertions(+), 1826 deletions(-) diff --git a/README.md b/README.md index 682f9ea4d..477dccc0d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.51.0 + 26.52.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.2 + 1.135.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.51.0') +implementation platform('com.google.cloud:libraries-bom:26.52.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index a1f95639c..1bf7d40fa 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.51.0 -googleapis_commitish: 7d0c6bee2517d77635beb2a1dd6d6e7d4d943512 -libraries_bom_version: 26.51.0 +googleapis_commitish: 3322b91056db2735074b230c926e6ef3a958aa53 +libraries_bom_version: 26.52.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index ae7ee1af2..6c0fc95fe 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 103dee29d..5482df576 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 97d94c0e9..544f5e247 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index c2c8d217d..ccbf48885 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 6449c2f8c..28b77c12b 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 08c00b2d1..927b61b2c 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 70eed8c36..28c492a15 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 0ca66bdc8..c6ed49480 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 3ea32264e..7d44f29bf 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index e2728094e..c1cce2d8e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index d3fbc1d67..655027011 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 8b12c81c0..fe083befe 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index b3c3e671b..740dec357 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index 3d2309c69..8a3a1c577 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index 3c129b6ed..fb668a667 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index c4dedadb0..14136bdc5 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 1d797dc71..8816b63ad 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index ec35b3dfe..336a8bdef 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 53559f580..9cda4b223 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 011ad51e2..1d8945a23 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index d1640b7aa..8f039bbe9 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index b36f779af..2bfcab794 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 9a1ed164b..8964e9c42 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 94b56c5a1..9152cd6a2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 81a585537..0824d628b 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 87835ca4b..a818e377d 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1898,6 +1898,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionDataSourceSettings$Builder", "queryAllDeclaredConstructors": true, @@ -1988,6 +2042,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent", "queryAllDeclaredConstructors": true, @@ -2033,6 +2114,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AzureEventHubsFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AzureEventHubsFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$Builder", "queryAllDeclaredConstructors": true, @@ -2060,6 +2177,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ConfluentCloudFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ConfluentCloudFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 9b682f478..ee510a051 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index f65568ec0..f686ce75c 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index adb60419d..239ed0369 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 75c254dc5..5b2148c36 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index 2073458cc..838d5fbc6 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index f49e2cc45..c2324f0b7 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 33c80a111..067dcd861 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index d2d892031..e466178eb 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index 06df1993b..a8fcaedc6 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index a33b9c5bd..7e354bf49 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 3c0516832..59adc7841 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 5136ecd1b..005b32b9c 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 821411d6d..fd1ac7c90 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index fa7e7bd06..775b93750 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 18d2202b1..851a57745 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index ab612d2c5..076e1f798 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 3bf65b4e3..b4b3b9471 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 1f62eb3ed..7a24cea04 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index d68356fe1..9f3f8bd60 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 7e22cfa02..7508d4817 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index f9c4eb555..1856e1631 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index a90d77109..c2743bc50 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 71eeb90b4..d01518bda 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index d6c14b342..c2c5e3623 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 99b6a5cd0..1edbdf9f7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 619234747..dc1cfd98d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 244ba5160..bd5833c53 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 71be3fe16..33156b713 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 534be54bc..4e3005b50 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index b96e7ace6..f69e9df57 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ed5509aab..dd07b59c0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index f85adc58b..acef5dad6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 513d1cc69..2a41af559 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d8a7dc832..d92256e6f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 1a7006cc6..b5cf5e110 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index d69f8530d..42ed4e16e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index ecaa5ecc7..27df98b2d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6726b4fc3..fc6c3429b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index e97be3071..1d6385c58 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index cd5232d4e..9279189c5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 2900017e2..74e0aac50 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index bfb983560..b4d6d6a73 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index fb7690b35..16b220074 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 69c19fac1..808576ae5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 136f6e620..3765fe525 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index baf416761..1ae5ecf81 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 17c3e0753..c26db78ba 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 9a0d2e9d4..d61c44494 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 5a80fc97e..10ca7ae56 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index aca52209a..ff5c589a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index dc0fb2a57..87620b557 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 13775aea3..7e9d9a514 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 8e40e7537..70a2388eb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 0991d70f4..f77a5594e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 514c24e3f..3400ff350 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 23d05e8cb..dc6bdd088 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 17e7384ee..ba7ce4fc2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -6475,170 +6475,6486 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int sourceCase_ = 0; + public interface AzureEventHubsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.lang.Object source_; + /** + * + * + *

+     * Output only. An output-only field that indicates the state of the Event
+     * Hubs ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Event
+     * Hubs ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState(); - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AWS_KINESIS(1), - CLOUD_STORAGE(2), - SOURCE_NOT_SET(0); - private final int value; + /** + * + * + *
+     * Optional. Name of the resource group within the azure subscription.
+     * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + java.lang.String getResourceGroup(); + /** + * + * + *
+     * Optional. Name of the resource group within the azure subscription.
+     * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + com.google.protobuf.ByteString getResourceGroupBytes(); - private SourceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. The name of the Event Hubs namespace.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } + java.lang.String getNamespace(); + /** + * + * + *
+     * Optional. The name of the Event Hubs namespace.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); - public static SourceCase forNumber(int value) { - switch (value) { - case 1: - return AWS_KINESIS; - case 2: - return CLOUD_STORAGE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
+     * Optional. The name of the Event Hub.
+     * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + java.lang.String getEventHub(); + /** + * + * + *
+     * Optional. The name of the Event Hub.
+     * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + com.google.protobuf.ByteString getEventHubBytes(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Optional. The client id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+     * Optional. The client id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } + /** + * + * + *
+     * Optional. The tenant id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + /** + * + * + *
+     * Optional. The tenant id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); - public static final int AWS_KINESIS_FIELD_NUMBER = 1; - /** - * - * - *
-   * Optional. Amazon Kinesis Data Streams.
-   * 
- * - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the awsKinesis field is set. - */ - @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + /** + * + * + *
+     * Optional. The Azure subscription id.
+     * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + java.lang.String getSubscriptionId(); + /** + * + * + *
+     * Optional. The Azure subscription id.
+     * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + com.google.protobuf.ByteString getSubscriptionIdBytes(); + + /** + * + * + *
+     * Optional. The GCP service account to be used for Federated Identity
+     * authentication.
+     * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
+     * Optional. The GCP service account to be used for Federated Identity
+     * authentication.
+     * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); } /** * * *
-   * Optional. Amazon Kinesis Data Streams.
+   * Ingestion settings for Azure Event Hubs.
    * 
* - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The awsKinesis. + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} */ - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public static final class AzureEventHubs extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + AzureEventHubsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureEventHubs.newBuilder() to construct. + private AzureEventHubs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Amazon Kinesis Data Streams.
-   * 
- * - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + + private AzureEventHubs() { + state_ = 0; + resourceGroup_ = ""; + namespace_ = ""; + eventHub_ = ""; + clientId_ = ""; + tenantId_ = ""; + subscriptionId_ = ""; + gcpServiceAccount_ = ""; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. Cloud Storage.
-   * 
- * - * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cloudStorage field is set. - */ - @java.lang.Override - public boolean hasCloudStorage() { - return sourceCase_ == 2; - } - /** - * - * - *
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      return new AzureEventHubs();
+    }
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.class,
+              com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder.class);
+    }
+
+    /**
+     *
+     *
+     * 
+     * Possible states for managed ingestion from Event Hubs.
+     * 
+ * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+       * Permission denied encountered while consuming data from Event Hubs.
+       * This can happen when `client_id`, or `tenant_id` are invalid. Or the
+       * right permissions haven't been granted.
+       * 
+ * + * EVENT_HUBS_PERMISSION_DENIED = 2; + */ + EVENT_HUBS_PERMISSION_DENIED(2), + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
+       * The provided Event Hubs namespace couldn't be found.
+       * 
+ * + * NAMESPACE_NOT_FOUND = 4; + */ + NAMESPACE_NOT_FOUND(4), + /** + * + * + *
+       * The provided Event Hub couldn't be found.
+       * 
+ * + * EVENT_HUB_NOT_FOUND = 5; + */ + EVENT_HUB_NOT_FOUND(5), + /** + * + * + *
+       * The provided Event Hubs subscription couldn't be found.
+       * 
+ * + * SUBSCRIPTION_NOT_FOUND = 6; + */ + SUBSCRIPTION_NOT_FOUND(6), + /** + * + * + *
+       * The provided Event Hubs resource group couldn't be found.
+       * 
+ * + * RESOURCE_GROUP_NOT_FOUND = 7; + */ + RESOURCE_GROUP_NOT_FOUND(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+       * Permission denied encountered while consuming data from Event Hubs.
+       * This can happen when `client_id`, or `tenant_id` are invalid. Or the
+       * right permissions haven't been granted.
+       * 
+ * + * EVENT_HUBS_PERMISSION_DENIED = 2; + */ + public static final int EVENT_HUBS_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
+       * The provided Event Hubs namespace couldn't be found.
+       * 
+ * + * NAMESPACE_NOT_FOUND = 4; + */ + public static final int NAMESPACE_NOT_FOUND_VALUE = 4; + /** + * + * + *
+       * The provided Event Hub couldn't be found.
+       * 
+ * + * EVENT_HUB_NOT_FOUND = 5; + */ + public static final int EVENT_HUB_NOT_FOUND_VALUE = 5; + /** + * + * + *
+       * The provided Event Hubs subscription couldn't be found.
+       * 
+ * + * SUBSCRIPTION_NOT_FOUND = 6; + */ + public static final int SUBSCRIPTION_NOT_FOUND_VALUE = 6; + /** + * + * + *
+       * The provided Event Hubs resource group couldn't be found.
+       * 
+ * + * RESOURCE_GROUP_NOT_FOUND = 7; + */ + public static final int RESOURCE_GROUP_NOT_FOUND_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return EVENT_HUBS_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return NAMESPACE_NOT_FOUND; + case 5: + return EVENT_HUB_NOT_FOUND; + case 6: + return SUBSCRIPTION_NOT_FOUND; + case 7: + return RESOURCE_GROUP_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Event
+     * Hubs ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Event
+     * Hubs ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED + : result; + } + + public static final int RESOURCE_GROUP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceGroup_ = ""; + /** + * + * + *
+     * Optional. Name of the resource group within the azure subscription.
+     * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + @java.lang.Override + public java.lang.String getResourceGroup() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroup_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Name of the resource group within the azure subscription.
+     * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceGroupBytes() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * + * + *
+     * Optional. The name of the Event Hubs namespace.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the Event Hubs namespace.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_HUB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventHub_ = ""; + /** + * + * + *
+     * Optional. The name of the Event Hub.
+     * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + @java.lang.Override + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the Event Hub.
+     * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * + * + *
+     * Optional. The client id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The client id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + /** + * + * + *
+     * Optional. The tenant id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The tenant id of the Azure application that is being used to
+     * authenticate Pub/Sub.
+     * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscriptionId_ = ""; + /** + * + * + *
+     * Optional. The Azure subscription id.
+     * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + @java.lang.Override + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The Azure subscription id.
+     * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+     * Optional. The GCP service account to be used for Federated Identity
+     * authentication.
+     * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The GCP service account to be used for Federated Identity
+     * authentication.
+     * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, eventHub_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, eventHub_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) obj; + + if (state_ != other.state_) return false; + if (!getResourceGroup().equals(other.getResourceGroup())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getTenantId().equals(other.getTenantId())) return false; + if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RESOURCE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getResourceGroup().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionId().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs 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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs 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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + 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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs 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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs 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; + } + /** + * + * + *
+     * Ingestion settings for Azure Event Hubs.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + resourceGroup_ = ""; + namespace_ = ""; + eventHub_ = ""; + clientId_ = ""; + tenantId_ = ""; + subscriptionId_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceGroup_ = resourceGroup_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.eventHub_ = eventHub_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tenantId_ = tenantId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.subscriptionId_ = subscriptionId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getResourceGroup().isEmpty()) { + resourceGroup_ = other.resourceGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSubscriptionId().isEmpty()) { + subscriptionId_ = other.subscriptionId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + resourceGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + eventHub_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Event
+       * Hubs ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Event
+       * Hubs ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Event
+       * Hubs ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Event
+       * Hubs ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Event
+       * Hubs ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object resourceGroup_ = ""; + /** + * + * + *
+       * Optional. Name of the resource group within the azure subscription.
+       * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + public java.lang.String getResourceGroup() { + java.lang.Object ref = resourceGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Name of the resource group within the azure subscription.
+       * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + public com.google.protobuf.ByteString getResourceGroupBytes() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Name of the resource group within the azure subscription.
+       * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The resourceGroup to set. + * @return This builder for chaining. + */ + public Builder setResourceGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the resource group within the azure subscription.
+       * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearResourceGroup() { + resourceGroup_ = getDefaultInstance().getResourceGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Name of the resource group within the azure subscription.
+       * 
+ * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for resourceGroup to set. + * @return This builder for chaining. + */ + public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + /** + * + * + *
+       * Optional. The name of the Event Hubs namespace.
+       * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Event Hubs namespace.
+       * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Event Hubs namespace.
+       * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Event Hubs namespace.
+       * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Event Hubs namespace.
+       * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object eventHub_ = ""; + /** + * + * + *
+       * Optional. The name of the Event Hub.
+       * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Event Hub.
+       * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Event Hub.
+       * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventHub_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Event Hub.
+       * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Event Hub.
+       * 
+ * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventHub_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
+       * Optional. The client id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The client id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The client id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The client id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The client id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object tenantId_ = ""; + /** + * + * + *
+       * Optional. The tenant id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The tenant id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The tenant id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The tenant id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The tenant id of the Azure application that is being used to
+       * authenticate Pub/Sub.
+       * 
+ * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object subscriptionId_ = ""; + /** + * + * + *
+       * Optional. The Azure subscription id.
+       * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The Azure subscription id.
+       * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The Azure subscription id.
+       * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Azure subscription id.
+       * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionId() { + subscriptionId_ = getDefaultInstance().getSubscriptionId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Azure subscription id.
+       * 
+ * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscriptionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+       * Optional. The GCP service account to be used for Federated Identity
+       * authentication.
+       * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The GCP service account to be used for Federated Identity
+       * authentication.
+       * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The GCP service account to be used for Federated Identity
+       * authentication.
+       * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The GCP service account to be used for Federated Identity
+       * authentication.
+       * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The GCP service account to be used for Federated Identity
+       * authentication.
+       * 
+ * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000080; + 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.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureEventHubs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AwsMskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Amazon
+     * MSK ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Amazon
+     * MSK ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState(); + + /** + * + * + *
+     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+     * cluster.
+     * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + java.lang.String getClusterArn(); + /** + * + * + *
+     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+     * cluster.
+     * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + com.google.protobuf.ByteString getClusterArnBytes(); + + /** + * + * + *
+     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+     * will import from.
+     * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+     * will import from.
+     * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+     * the required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + java.lang.String getAwsRoleArn(); + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+     * the required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + com.google.protobuf.ByteString getAwsRoleArnBytes(); + + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+     * for the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+     * for the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
+   * Ingestion settings for Amazon MSK.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} + */ + public static final class AwsMsk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + AwsMskOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsMsk.newBuilder() to construct. + private AwsMsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsMsk() { + state_ = 0; + clusterArn_ = ""; + topic_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsMsk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder.class); + } + + /** + * + * + *
+     * Possible states for managed ingestion from Amazon MSK.
+     * 
+ * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+       * Permission denied encountered while consuming data from Amazon MSK.
+       * 
+ * + * MSK_PERMISSION_DENIED = 2; + */ + MSK_PERMISSION_DENIED(2), + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
+       * The provided MSK cluster wasn't found.
+       * 
+ * + * CLUSTER_NOT_FOUND = 4; + */ + CLUSTER_NOT_FOUND(4), + /** + * + * + *
+       * The provided topic wasn't found.
+       * 
+ * + * TOPIC_NOT_FOUND = 5; + */ + TOPIC_NOT_FOUND(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+       * Permission denied encountered while consuming data from Amazon MSK.
+       * 
+ * + * MSK_PERMISSION_DENIED = 2; + */ + public static final int MSK_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
+       * The provided MSK cluster wasn't found.
+       * 
+ * + * CLUSTER_NOT_FOUND = 4; + */ + public static final int CLUSTER_NOT_FOUND_VALUE = 4; + /** + * + * + *
+       * The provided topic wasn't found.
+       * 
+ * + * TOPIC_NOT_FOUND = 5; + */ + public static final int TOPIC_NOT_FOUND_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return MSK_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return CLUSTER_NOT_FOUND; + case 5: + return TOPIC_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Amazon
+     * MSK ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the Amazon
+     * MSK ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED + : result; + } + + public static final int CLUSTER_ARN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterArn_ = ""; + /** + * + * + *
+     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+     * cluster.
+     * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + @java.lang.Override + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+     * cluster.
+     * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
+     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+     * will import from.
+     * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+     * will import from.
+     * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AWS_ROLE_ARN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+     * the required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + @java.lang.Override + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } + } + /** + * + * + *
+     * Required. AWS role ARN to be used for Federated Identity authentication
+     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+     * the required permissions that need to be attached to it.
+     * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+     * for the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+     * for the provided role). The `aws_role_arn` must be set up with
+     * `accounts.google.com:sub` equals to this service account number.
+     * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) obj; + + if (state_ != other.state_) return false; + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (!getAwsRoleArn().equals(other.getAwsRoleArn())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + AWS_ROLE_ARN_FIELD_NUMBER; + hash = (53 * hash) + getAwsRoleArn().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk 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.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk 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.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk 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.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk 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.pubsub.v1.IngestionDataSourceSettings.AwsMsk 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; + } + /** + * + * + *
+     * Ingestion settings for Amazon MSK.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + clusterArn_ = ""; + topic_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterArn_ = clusterArn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.awsRoleArn_ = awsRoleArn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @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.pubsub.v1.IngestionDataSourceSettings.AwsMsk) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAwsRoleArn().isEmpty()) { + awsRoleArn_ = other.awsRoleArn_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + awsRoleArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Amazon
+       * MSK ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Amazon
+       * MSK ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Amazon
+       * MSK ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Amazon
+       * MSK ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the Amazon
+       * MSK ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterArn_ = ""; + /** + * + * + *
+       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+       * cluster.
+       * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+       * cluster.
+       * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+       * cluster.
+       * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+       * cluster.
+       * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
+       * cluster.
+       * 
+ * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+       * will import from.
+       * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+       * will import from.
+       * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+       * will import from.
+       * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+       * will import from.
+       * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
+       * will import from.
+       * 
+ * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+       * the required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+       * the required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+       * the required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+       * the required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAwsRoleArn() { + awsRoleArn_ = getDefaultInstance().getAwsRoleArn(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. AWS role ARN to be used for Federated Identity authentication
+       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
+       * the required permissions that need to be attached to it.
+       * 
+ * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+       * for the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+       * for the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+       * for the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+       * for the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
+       * for the provided role). The `aws_role_arn` must be set up with
+       * `accounts.google.com:sub` equals to this service account number.
+       * 
+ * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + 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.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsMsk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfluentCloudOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the
+     * Confluent Cloud ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the
+     * Confluent Cloud ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState(); + + /** + * + * + *
+     * Required. The address of the bootstrap server. The format is url:port.
+     * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + java.lang.String getBootstrapServer(); + /** + * + * + *
+     * Required. The address of the bootstrap server. The format is url:port.
+     * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + com.google.protobuf.ByteString getBootstrapServerBytes(); + + /** + * + * + *
+     * Required. The id of the cluster.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+     * Required. The id of the cluster.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+     * Required. The name of the topic in the Confluent Cloud cluster that
+     * Pub/Sub will import from.
+     * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+     * Required. The name of the topic in the Confluent Cloud cluster that
+     * Pub/Sub will import from.
+     * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+     * Required. The id of the identity pool to be used for Federated Identity
+     * authentication with Confluent Cloud. See
+     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+     * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + java.lang.String getIdentityPoolId(); + /** + * + * + *
+     * Required. The id of the identity pool to be used for Federated Identity
+     * authentication with Confluent Cloud. See
+     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+     * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + com.google.protobuf.ByteString getIdentityPoolIdBytes(); + + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with `identity_pool_id`.
+     * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with `identity_pool_id`.
+     * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
+   * Ingestion settings for Confluent Cloud.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} + */ + public static final class ConfluentCloud extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + ConfluentCloudOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfluentCloud.newBuilder() to construct. + private ConfluentCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfluentCloud() { + state_ = 0; + bootstrapServer_ = ""; + clusterId_ = ""; + topic_ = ""; + identityPoolId_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfluentCloud(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.class, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder.class); + } + + /** + * + * + *
+     * Possible states for managed ingestion from Confluent Cloud.
+     * 
+ * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+       * Permission denied encountered while consuming data from Confluent
+       * Cloud.
+       * 
+ * + * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + */ + CONFLUENT_CLOUD_PERMISSION_DENIED(2), + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
+       * The provided bootstrap server address is unreachable.
+       * 
+ * + * UNREACHABLE_BOOTSTRAP_SERVER = 4; + */ + UNREACHABLE_BOOTSTRAP_SERVER(4), + /** + * + * + *
+       * The provided cluster wasn't found.
+       * 
+ * + * CLUSTER_NOT_FOUND = 5; + */ + CLUSTER_NOT_FOUND(5), + /** + * + * + *
+       * The provided topic wasn't found.
+       * 
+ * + * TOPIC_NOT_FOUND = 6; + */ + TOPIC_NOT_FOUND(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Ingestion is active.
+       * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+       * Permission denied encountered while consuming data from Confluent
+       * Cloud.
+       * 
+ * + * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + */ + public static final int CONFLUENT_CLOUD_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
+       * Permission denied encountered while publishing to the topic.
+       * 
+ * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
+       * The provided bootstrap server address is unreachable.
+       * 
+ * + * UNREACHABLE_BOOTSTRAP_SERVER = 4; + */ + public static final int UNREACHABLE_BOOTSTRAP_SERVER_VALUE = 4; + /** + * + * + *
+       * The provided cluster wasn't found.
+       * 
+ * + * CLUSTER_NOT_FOUND = 5; + */ + public static final int CLUSTER_NOT_FOUND_VALUE = 5; + /** + * + * + *
+       * The provided topic wasn't found.
+       * 
+ * + * TOPIC_NOT_FOUND = 6; + */ + public static final int TOPIC_NOT_FOUND_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CONFLUENT_CLOUD_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return UNREACHABLE_BOOTSTRAP_SERVER; + case 5: + return CLUSTER_NOT_FOUND; + case 6: + return TOPIC_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the
+     * Confluent Cloud ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. An output-only field that indicates the state of the
+     * Confluent Cloud ingestion source.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED + : result; + } + + public static final int BOOTSTRAP_SERVER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bootstrapServer_ = ""; + /** + * + * + *
+     * Required. The address of the bootstrap server. The format is url:port.
+     * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + @java.lang.Override + public java.lang.String getBootstrapServer() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootstrapServer_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The address of the bootstrap server. The format is url:port.
+     * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootstrapServerBytes() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootstrapServer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The id of the cluster.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The id of the cluster.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
+     * Required. The name of the topic in the Confluent Cloud cluster that
+     * Pub/Sub will import from.
+     * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The name of the topic in the Confluent Cloud cluster that
+     * Pub/Sub will import from.
+     * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_POOL_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityPoolId_ = ""; + /** + * + * + *
+     * Required. The id of the identity pool to be used for Federated Identity
+     * authentication with Confluent Cloud. See
+     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+     * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + @java.lang.Override + public java.lang.String getIdentityPoolId() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityPoolId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The id of the identity pool to be used for Federated Identity
+     * authentication with Confluent Cloud. See
+     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+     * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityPoolIdBytes() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityPoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with `identity_pool_id`.
+     * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The GCP service account to be used for Federated Identity
+     * authentication with `identity_pool_id`.
+     * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bootstrapServer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, identityPoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bootstrapServer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, identityPoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud other = + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) obj; + + if (state_ != other.state_) return false; + if (!getBootstrapServer().equals(other.getBootstrapServer())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (!getIdentityPoolId().equals(other.getIdentityPoolId())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + BOOTSTRAP_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getBootstrapServer().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + IDENTITY_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getIdentityPoolId().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud 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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud 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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + 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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud 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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud 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; + } + /** + * + * + *
+     * Ingestion settings for Confluent Cloud.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.class, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + bootstrapServer_ = ""; + clusterId_ = ""; + topic_ = ""; + identityPoolId_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud build() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result = + new com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bootstrapServer_ = bootstrapServer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.identityPoolId_ = identityPoolId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getBootstrapServer().isEmpty()) { + bootstrapServer_ = other.bootstrapServer_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getIdentityPoolId().isEmpty()) { + identityPoolId_ = other.identityPoolId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + bootstrapServer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + identityPoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the
+       * Confluent Cloud ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the
+       * Confluent Cloud ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the
+       * Confluent Cloud ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the
+       * Confluent Cloud ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. An output-only field that indicates the state of the
+       * Confluent Cloud ingestion source.
+       * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object bootstrapServer_ = ""; + /** + * + * + *
+       * Required. The address of the bootstrap server. The format is url:port.
+       * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + public java.lang.String getBootstrapServer() { + java.lang.Object ref = bootstrapServer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootstrapServer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The address of the bootstrap server. The format is url:port.
+       * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + public com.google.protobuf.ByteString getBootstrapServerBytes() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootstrapServer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The address of the bootstrap server. The format is url:port.
+       * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bootstrapServer to set. + * @return This builder for chaining. + */ + public Builder setBootstrapServer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bootstrapServer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The address of the bootstrap server. The format is url:port.
+       * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBootstrapServer() { + bootstrapServer_ = getDefaultInstance().getBootstrapServer(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The address of the bootstrap server. The format is url:port.
+       * 
+ * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bootstrapServer to set. + * @return This builder for chaining. + */ + public Builder setBootstrapServerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bootstrapServer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+       * Required. The id of the cluster.
+       * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The id of the cluster.
+       * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The id of the cluster.
+       * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the cluster.
+       * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the cluster.
+       * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+       * Required. The name of the topic in the Confluent Cloud cluster that
+       * Pub/Sub will import from.
+       * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The name of the topic in the Confluent Cloud cluster that
+       * Pub/Sub will import from.
+       * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The name of the topic in the Confluent Cloud cluster that
+       * Pub/Sub will import from.
+       * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the topic in the Confluent Cloud cluster that
+       * Pub/Sub will import from.
+       * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The name of the topic in the Confluent Cloud cluster that
+       * Pub/Sub will import from.
+       * 
+ * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object identityPoolId_ = ""; + /** + * + * + *
+       * Required. The id of the identity pool to be used for Federated Identity
+       * authentication with Confluent Cloud. See
+       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+       * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + public java.lang.String getIdentityPoolId() { + java.lang.Object ref = identityPoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityPoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The id of the identity pool to be used for Federated Identity
+       * authentication with Confluent Cloud. See
+       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+       * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + public com.google.protobuf.ByteString getIdentityPoolIdBytes() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityPoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The id of the identity pool to be used for Federated Identity
+       * authentication with Confluent Cloud. See
+       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+       * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The identityPoolId to set. + * @return This builder for chaining. + */ + public Builder setIdentityPoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityPoolId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the identity pool to be used for Federated Identity
+       * authentication with Confluent Cloud. See
+       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+       * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIdentityPoolId() { + identityPoolId_ = getDefaultInstance().getIdentityPoolId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the identity pool to be used for Federated Identity
+       * authentication with Confluent Cloud. See
+       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
+       * 
+ * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for identityPoolId to set. + * @return This builder for chaining. + */ + public Builder setIdentityPoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityPoolId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with `identity_pool_id`.
+       * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with `identity_pool_id`.
+       * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with `identity_pool_id`.
+       * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with `identity_pool_id`.
+       * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The GCP service account to be used for Federated Identity
+       * authentication with `identity_pool_id`.
+       * 
+ * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000020; + 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.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfluentCloud parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_KINESIS(1), + CLOUD_STORAGE(2), + AZURE_EVENT_HUBS(3), + AWS_MSK(5), + CONFLUENT_CLOUD(6), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return AWS_KINESIS; + case 2: + return CLOUD_STORAGE; + case 3: + return AZURE_EVENT_HUBS; + case 5: + return AWS_MSK; + case 6: + return CONFLUENT_CLOUD; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + @java.lang.Override + public boolean hasCloudStorage() { + return sourceCase_ == 2; + } + /** + * + * + *
+   * Optional. Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + /** + * + * + *
    * Optional. Cloud Storage.
    * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + + public static final int AZURE_EVENT_HUBS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ + @java.lang.Override + public boolean hasAzureEventHubs() { + return sourceCase_ == 3; + } + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs() { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + + public static final int AWS_MSK_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorage. + * @return Whether the awsMsk field is set. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public boolean hasAwsMsk() { + return sourceCase_ == 5; + } + /** + * + * + *
+   * Optional. Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMsk. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } /** * * *
-   * Optional. Cloud Storage.
+   * Optional. Amazon MSK.
    * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder - getCloudStorageOrBuilder() { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + + public static final int CONFLUENT_CLOUD_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloud field is set. + */ + @java.lang.Override + public boolean hasConfluentCloud() { + return sourceCase_ == 6; + } + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloud. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud() { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; @@ -6721,9 +13037,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); } + if (sourceCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPlatformLogsSettings()); } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_); + } + if (sourceCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_); + } getUnknownFields().writeTo(output); } @@ -6743,10 +13070,25 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPlatformLogsSettings()); } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_); + } + if (sourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6775,6 +13117,15 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getCloudStorage().equals(other.getCloudStorage())) return false; break; + case 3: + if (!getAzureEventHubs().equals(other.getAzureEventHubs())) return false; + break; + case 5: + if (!getAwsMsk().equals(other.getAwsMsk())) return false; + break; + case 6: + if (!getConfluentCloud().equals(other.getConfluentCloud())) return false; + break; case 0: default: } @@ -6802,6 +13153,18 @@ public int hashCode() { hash = (37 * hash) + CLOUD_STORAGE_FIELD_NUMBER; hash = (53 * hash) + getCloudStorage().hashCode(); break; + case 3: + hash = (37 * hash) + AZURE_EVENT_HUBS_FIELD_NUMBER; + hash = (53 * hash) + getAzureEventHubs().hashCode(); + break; + case 5: + hash = (37 * hash) + AWS_MSK_FIELD_NUMBER; + hash = (53 * hash) + getAwsMsk().hashCode(); + break; + case 6: + hash = (37 * hash) + CONFLUENT_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getConfluentCloud().hashCode(); + break; case 0: default: } @@ -6924,367 +13287,1117 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.class, - com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlatformLogsSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsKinesisBuilder_ != null) { + awsKinesisBuilder_.clear(); + } + if (cloudStorageBuilder_ != null) { + cloudStorageBuilder_.clear(); + } + if (azureEventHubsBuilder_ != null) { + azureEventHubsBuilder_.clear(); + } + if (awsMskBuilder_ != null) { + awsMskBuilder_.clear(); + } + if (confluentCloudBuilder_ != null) { + confluentCloudBuilder_.clear(); + } + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings build() { + com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings result = + new com.google.pubsub.v1.IngestionDataSourceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.platformLogsSettings_ = + platformLogsSettingsBuilder_ == null + ? platformLogsSettings_ + : platformLogsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { + result.source_ = awsKinesisBuilder_.build(); + } + if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { + result.source_ = cloudStorageBuilder_.build(); + } + if (sourceCase_ == 3 && azureEventHubsBuilder_ != null) { + result.source_ = azureEventHubsBuilder_.build(); + } + if (sourceCase_ == 5 && awsMskBuilder_ != null) { + result.source_ = awsMskBuilder_.build(); + } + if (sourceCase_ == 6 && confluentCloudBuilder_ != null) { + result.source_ = confluentCloudBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionDataSourceSettings) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) + return this; + if (other.hasPlatformLogsSettings()) { + mergePlatformLogsSettings(other.getPlatformLogsSettings()); + } + switch (other.getSourceCase()) { + case AWS_KINESIS: + { + mergeAwsKinesis(other.getAwsKinesis()); + break; + } + case CLOUD_STORAGE: + { + mergeCloudStorage(other.getCloudStorage()); + break; + } + case AZURE_EVENT_HUBS: + { + mergeAzureEventHubs(other.getAzureEventHubs()); + break; + } + case AWS_MSK: + { + mergeAwsMsk(other.getAwsMsk()); + break; + } + case CONFLUENT_CLOUD: + { + mergeConfluentCloud(other.getConfluentCloud()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAzureEventHubsFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage(getAwsMskFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getConfluentCloudFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPlatformLogsSettingsFieldBuilder(); - } + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (awsKinesisBuilder_ != null) { + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } awsKinesisBuilder_.clear(); } - if (cloudStorageBuilder_ != null) { - cloudStorageBuilder_.clear(); - } - platformLogsSettings_ = null; - if (platformLogsSettingsBuilder_ != null) { - platformLogsSettingsBuilder_.dispose(); - platformLogsSettingsBuilder_ = null; - } - sourceCase_ = 0; - source_ = null; return this; } - + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Amazon Kinesis Data Streams.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + cloudStorageBuilder_; + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + public boolean hasCloudStorage() { + return sourceCase_ == 2; } - + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings build() { - com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return cloudStorageBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { - com.google.pubsub.v1.IngestionDataSourceSettings result = - new com.google.pubsub.v1.IngestionDataSourceSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudStorageBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + sourceCase_ = 2; + return this; } - - private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.platformLogsSettings_ = - platformLogsSettingsBuilder_ == null - ? platformLogsSettings_ - : platformLogsSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { + if (cloudStorageBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageBuilder_.setMessage(builderForValue.build()); } - result.bitField0_ |= to_bitField0_; + sourceCase_ = 2; + return this; } - - private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { - result.source_ = awsKinesisBuilder_.build(); + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + cloudStorageBuilder_.mergeFrom(value); + } else { + cloudStorageBuilder_.setMessage(value); + } } - if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { - result.source_ = cloudStorageBuilder_.build(); + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + cloudStorageBuilder_.clear(); } + return this; } - - @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); + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder + getCloudStorageBuilder() { + return getCloudStorageFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { + return cloudStorageBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Optional. Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + getCloudStorageFieldBuilder() { + if (cloudStorageBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + cloudStorageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return cloudStorageBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> + azureEventHubsBuilder_; + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasAzureEventHubs() { + return sourceCase_ == 3; } - + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings) { - return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs() { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + return azureEventHubsBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { - if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) - return this; - if (other.hasPlatformLogsSettings()) { - mergePlatformLogsSettings(other.getPlatformLogsSettings()); - } - switch (other.getSourceCase()) { - case AWS_KINESIS: - { - mergeAwsKinesis(other.getAwsKinesis()); - break; - } - case CLOUD_STORAGE: - { - mergeCloudStorage(other.getCloudStorage()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs value) { + if (azureEventHubsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + azureEventHubsBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + sourceCase_ = 3; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder builderForValue) { + if (azureEventHubsBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + azureEventHubsBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - input.readMessage( - getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs value) { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } onChanged(); - } // finally + } else { + if (sourceCase_ == 3) { + azureEventHubsBuilder_.mergeFrom(value); + } else { + azureEventHubsBuilder_.setMessage(value); + } + } + sourceCase_ = 3; return this; } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAzureEventHubs() { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + azureEventHubsBuilder_.clear(); + } + return this; } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder + getAzureEventHubsBuilder() { + return getAzureEventHubsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder() { + if ((sourceCase_ == 3) && (azureEventHubsBuilder_ != null)) { + return azureEventHubsBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Azure Event Hubs.
+     * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> + getAzureEventHubsFieldBuilder() { + if (azureEventHubsBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + azureEventHubsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return azureEventHubsBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - awsKinesisBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> + awsMskBuilder_; /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the awsMsk field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasAwsMsk() { + return sourceCase_ == 5; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The awsMsk. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } else { - if (sourceCase_ == 1) { - return awsKinesisBuilder_.getMessage(); + if (sourceCase_ == 5) { + return awsMskBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { + public Builder setAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk value) { + if (awsMskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - awsKinesisBuilder_.setMessage(value); + awsMskBuilder_.setMessage(value); } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { - if (awsKinesisBuilder_ == null) { + public Builder setAwsMsk( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder builderForValue) { + if (awsMskBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - awsKinesisBuilder_.setMessage(builderForValue.build()); + awsMskBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1 + public Builder mergeAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk value) { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis - .getDefaultInstance()) { + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_) .mergeFrom(value) .buildPartial(); } else { @@ -7292,39 +14405,39 @@ public Builder mergeAwsKinesis( } onChanged(); } else { - if (sourceCase_ == 1) { - awsKinesisBuilder_.mergeFrom(value); + if (sourceCase_ == 5) { + awsMskBuilder_.mergeFrom(value); } else { - awsKinesisBuilder_.setMessage(value); + awsMskBuilder_.setMessage(value); } } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { + public Builder clearAwsMsk() { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 1) { + if (sourceCase_ == 5) { sourceCase_ = 0; source_ = null; } - awsKinesisBuilder_.clear(); + awsMskBuilder_.clear(); } return this; } @@ -7332,193 +14445,190 @@ public Builder clearAwsKinesis() { * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder - getAwsKinesisBuilder() { - return getAwsKinesisFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder getAwsMskBuilder() { + return getAwsMskFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { - return awsKinesisBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder() { + if ((sourceCase_ == 5) && (awsMskBuilder_ != null)) { + return awsMskBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } /** * * *
-     * Optional. Amazon Kinesis Data Streams.
+     * Optional. Amazon MSK.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - getAwsKinesisFieldBuilder() { - if (awsKinesisBuilder_ == null) { - if (!(sourceCase_ == 1)) { - source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - awsKinesisBuilder_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> + getAwsMskFieldBuilder() { + if (awsMskBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + awsMskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 1; + sourceCase_ = 5; onChanged(); - return awsKinesisBuilder_; + return awsMskBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> - cloudStorageBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> + confluentCloudBuilder_; /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the cloudStorage field is set. + * @return Whether the confluentCloud field is set. */ @java.lang.Override - public boolean hasCloudStorage() { - return sourceCase_ == 2; + public boolean hasConfluentCloud() { + return sourceCase_ == 6; } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorage. + * @return The confluentCloud. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud() { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } else { - if (sourceCase_ == 2) { - return cloudStorageBuilder_.getMessage(); + if (sourceCase_ == 6) { + return confluentCloudBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { - if (cloudStorageBuilder_ == null) { + public Builder setConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud value) { + if (confluentCloudBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - cloudStorageBuilder_.setMessage(value); + confluentCloudBuilder_.setMessage(value); } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { - if (cloudStorageBuilder_ == null) { + public Builder setConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder builderForValue) { + if (confluentCloudBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - cloudStorageBuilder_.setMessage(builderForValue.build()); + confluentCloudBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2 + public Builder mergeConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud value) { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud .getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_) .mergeFrom(value) .buildPartial(); } else { @@ -7526,39 +14636,39 @@ public Builder mergeCloudStorage( } onChanged(); } else { - if (sourceCase_ == 2) { - cloudStorageBuilder_.mergeFrom(value); + if (sourceCase_ == 6) { + confluentCloudBuilder_.mergeFrom(value); } else { - cloudStorageBuilder_.setMessage(value); + confluentCloudBuilder_.setMessage(value); } } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCloudStorage() { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2) { + public Builder clearConfluentCloud() { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 2) { + if (sourceCase_ == 6) { sourceCase_ = 0; source_ = null; } - cloudStorageBuilder_.clear(); + confluentCloudBuilder_.clear(); } return this; } @@ -7566,74 +14676,74 @@ public Builder clearCloudStorage() { * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder - getCloudStorageBuilder() { - return getCloudStorageFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder + getConfluentCloudBuilder() { + return getConfluentCloudFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder - getCloudStorageOrBuilder() { - if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { - return cloudStorageBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder() { + if ((sourceCase_ == 6) && (confluentCloudBuilder_ != null)) { + return confluentCloudBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } /** * * *
-     * Optional. Cloud Storage.
+     * Optional. Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> - getCloudStorageFieldBuilder() { - if (cloudStorageBuilder_ == null) { - if (!(sourceCase_ == 2)) { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> + getConfluentCloudFieldBuilder() { + if (confluentCloudBuilder_ == null) { + if (!(sourceCase_ == 6)) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } - cloudStorageBuilder_ = + confluentCloudBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 2; + sourceCase_ = 6; onChanged(); - return cloudStorageBuilder_; + return confluentCloudBuilder_; } private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; @@ -7657,7 +14767,7 @@ public Builder clearCloudStorage() { * @return Whether the platformLogsSettings field is set. */ public boolean hasPlatformLogsSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -7703,7 +14813,7 @@ public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings } else { platformLogsSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7726,7 +14836,7 @@ public Builder setPlatformLogsSettings( } else { platformLogsSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7744,7 +14854,7 @@ public Builder setPlatformLogsSettings( */ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { if (platformLogsSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000020) != 0) && platformLogsSettings_ != null && platformLogsSettings_ != com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) { @@ -7756,7 +14866,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin platformLogsSettingsBuilder_.mergeFrom(value); } if (platformLogsSettings_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -7774,7 +14884,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin * */ public Builder clearPlatformLogsSettings() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); platformLogsSettings_ = null; if (platformLogsSettingsBuilder_ != null) { platformLogsSettingsBuilder_.dispose(); @@ -7796,7 +14906,7 @@ public Builder clearPlatformLogsSettings() { * */ public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettingsBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return getPlatformLogsSettingsFieldBuilder().getBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 28c04d607..aba0b49cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,6 +106,131 @@ public interface IngestionDataSourceSettingsOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder getCloudStorageOrBuilder(); + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ + boolean hasAzureEventHubs(); + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs(); + /** + * + * + *
+   * Optional. Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder(); + + /** + * + * + *
+   * Optional. Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMsk field is set. + */ + boolean hasAwsMsk(); + /** + * + * + *
+   * Optional. Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMsk. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk(); + /** + * + * + *
+   * Optional. Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder(); + + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloud field is set. + */ + boolean hasConfluentCloud(); + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloud. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud(); + /** + * + * + *
+   * Optional. Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 98eefa8aa..624ec551c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2754,985 +2754,6637 @@ public com.google.protobuf.Parser getParserForType() { } } - private int failureCase_ = 0; + public interface AwsMskFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.lang.Object failure_; + /** + * + * + *
+     * Optional. The ARN of the cluster of the topic being ingested from.
+     * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + java.lang.String getClusterArn(); + /** + * + * + *
+     * Optional. The ARN of the cluster of the topic being ingested from.
+     * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + com.google.protobuf.ByteString getClusterArnBytes(); - public enum FailureCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CLOUD_STORAGE_FAILURE(3), - FAILURE_NOT_SET(0); - private final int value; + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + java.lang.String getKafkaTopic(); + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + com.google.protobuf.ByteString getKafkaTopicBytes(); - private FailureCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. */ - @java.lang.Deprecated - public static FailureCase valueOf(int value) { - return forNumber(value); - } + long getPartitionId(); - public static FailureCase forNumber(int value) { - switch (value) { - case 3: - return CLOUD_STORAGE_FAILURE; - case 0: - return FAILURE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); - public FailureCase getFailureCase() { - return FailureCase.forNumber(failureCase_); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } - - public static final int TOPIC_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; /** * * *
-   * Required. Name of the import topic. Format is:
-   * projects/{project_name}/topics/{topic_name}.
+   * Failure when ingesting from an Amazon MSK source.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The topic. + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + AwsMskFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsMskFailureReason.newBuilder() to construct. + private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - /** - * - * - *
-   * Required. Name of the import topic. Format is:
-   * projects/{project_name}/topics/{topic_name}.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private AwsMskFailureReason() { + clusterArn_ = ""; + kafkaTopic_ = ""; } - } - public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsMskFailureReason(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object errorMessage_ = ""; - /** - * - * - *
-   * Required. Error details explaining why ingestion to Pub/Sub has failed.
-   * 
- * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The errorMessage. - */ - @java.lang.Override - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } - } - /** - * - * - *
-   * Required. Error details explaining why ingestion to Pub/Sub has failed.
-   * 
- * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for errorMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } - } - public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Failure when ingesting from Cloud Storage.
-   * 
- * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cloudStorageFailure field is set. - */ - @java.lang.Override - public boolean hasCloudStorageFailure() { - return failureCase_ == 3; - } - /** - * - * - *
-   * Optional. Failure when ingesting from Cloud Storage.
-   * 
- * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cloudStorageFailure. - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; - } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Failure when ingesting from Cloud Storage.
-   * 
- * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder - getCloudStorageFailureOrBuilder() { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; - } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); - } + private int reasonCase_ = 0; - private byte memoizedIsInitialized = -1; + @SuppressWarnings("serial") + private java.lang.Object reason_; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; - memoizedIsInitialized = 1; - return true; - } + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); - } - if (failureCase_ == 3) { - output.writeMessage( - 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); - } - getUnknownFields().writeTo(output); - } + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public int getNumber() { + return this.value; + } + }; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); - } - if (failureCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final int CLUSTER_ARN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterArn_ = ""; + /** + * + * + *
+     * Optional. The ARN of the cluster of the topic being ingested from.
+     * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + @java.lang.Override + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { - return super.equals(obj); + /** + * + * + *
+     * Optional. The ARN of the cluster of the topic being ingested from.
+     * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - com.google.pubsub.v1.IngestionFailureEvent other = - (com.google.pubsub.v1.IngestionFailureEvent) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getFailureCase().equals(other.getFailureCase())) return false; - switch (failureCase_) { - case 3: - if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + @java.lang.Override + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getErrorMessage().hashCode(); - switch (failureCase_) { - case 3: - hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + getCloudStorageFailure().hashCode(); - break; - case 0: - default: + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } - public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder(com.google.pubsub.v1.IngestionFailureEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Payload of the Platform Log entry sent when a failure is encountered while
-   * ingesting.
-   * 
- * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) - com.google.pubsub.v1.IngestionFailureEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.class, - com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() - private Builder() {} + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - topic_ = ""; - errorMessage_ = ""; - if (cloudStorageFailureBuilder_ != null) { - cloudStorageFailureBuilder_.clear(); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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; + } + /** + * + * + *
+     * Failure when ingesting from an Amazon MSK source.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterArn_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterArn_ = clusterArn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kafkaTopic_ = kafkaTopic_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) + return this; + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kafkaTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object clusterArn_ = ""; + /** + * + * + *
+       * Optional. The ARN of the cluster of the topic being ingested from.
+       * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The ARN of the cluster of the topic being ingested from.
+       * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The ARN of the cluster of the topic being ingested from.
+       * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterArn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The ARN of the cluster of the topic being ingested from.
+       * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The ARN of the cluster of the topic being ingested from.
+       * 
+ * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterArn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsMskFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AzureEventHubsFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The namespace containing the event hub being ingested from.
+     * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + java.lang.String getNamespace(); + /** + * + * + *
+     * Optional. The namespace containing the event hub being ingested from.
+     * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); + + /** + * + * + *
+     * Optional. The name of the event hub being ingested from.
+     * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + java.lang.String getEventHub(); + /** + * + * + *
+     * Optional. The name of the event hub being ingested from.
+     * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + com.google.protobuf.ByteString getEventHubBytes(); + + /** + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + long getPartitionId(); + + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + getReasonCase(); + } + /** + * + * + *
+   * Failure when ingesting from an Azure Event Hubs source.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + */ + public static final class AzureEventHubsFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + AzureEventHubsFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureEventHubsFailureReason.newBuilder() to construct. + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureEventHubsFailureReason() { + namespace_ = ""; + eventHub_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureEventHubsFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int NAMESPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * + * + *
+     * Optional. The namespace containing the event hub being ingested from.
+     * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The namespace containing the event hub being ingested from.
+     * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_HUB_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventHub_ = ""; + /** + * + * + *
+     * Optional. The name of the event hub being ingested from.
+     * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + @java.lang.Override + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the event hub being ingested from.
+     * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; + + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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; + } + /** + * + * + *
+     * Failure when ingesting from an Azure Event Hubs source.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + namespace_ = ""; + eventHub_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventHub_ = eventHub_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + eventHub_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object namespace_ = ""; + /** + * + * + *
+       * Optional. The namespace containing the event hub being ingested from.
+       * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The namespace containing the event hub being ingested from.
+       * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The namespace containing the event hub being ingested from.
+       * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The namespace containing the event hub being ingested from.
+       * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The namespace containing the event hub being ingested from.
+       * 
+ * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object eventHub_ = ""; + /** + * + * + *
+       * Optional. The name of the event hub being ingested from.
+       * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the event hub being ingested from.
+       * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the event hub being ingested from.
+       * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventHub_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the event hub being ingested from.
+       * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the event hub being ingested from.
+       * 
+ * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventHub_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureEventHubsFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfluentCloudFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The cluster ID containing the topic being ingested from.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+     * Optional. The cluster ID containing the topic being ingested from.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + java.lang.String getKafkaTopic(); + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + com.google.protobuf.ByteString getKafkaTopicBytes(); + + /** + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + long getPartitionId(); + + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase + getReasonCase(); + } + /** + * + * + *
+   * Failure when ingesting from a Confluent Cloud source.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + */ + public static final class ConfluentCloudFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + ConfluentCloudFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfluentCloudFailureReason.newBuilder() to construct. + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfluentCloudFailureReason() { + clusterId_ = ""; + kafkaTopic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfluentCloudFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Optional. The cluster ID containing the topic being ingested from.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The cluster ID containing the topic being ingested from.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + @java.lang.Override + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of the Kafka topic being ingested from.
+     * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
+     * Optional. The partition ID of the message that failed to be ingested.
+     * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
+     * Optional. The offset within the partition of the message that failed to
+     * be ingested.
+     * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
+     * Optional. The Pub/Sub API limits prevented the desired message from
+     * being published.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; + + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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; + } + /** + * + * + *
+     * Failure when ingesting from a Confluent Cloud source.
+     * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterId_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kafkaTopic_ = kafkaTopic_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance()) return this; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kafkaTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+       * Optional. The cluster ID containing the topic being ingested from.
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The cluster ID containing the topic being ingested from.
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The cluster ID containing the topic being ingested from.
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The cluster ID containing the topic being ingested from.
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The cluster ID containing the topic being ingested from.
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of the Kafka topic being ingested from.
+       * 
+ * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The partition ID of the message that failed to be ingested.
+       * 
+ * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The offset within the partition of the message that failed to
+       * be ingested.
+       * 
+ * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. The Pub/Sub API limits prevented the desired message from
+       * being published.
+       * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfluentCloudFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int failureCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object failure_; + + public enum FailureCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_FAILURE(3), + AWS_MSK_FAILURE(4), + AZURE_EVENT_HUBS_FAILURE(5), + CONFLUENT_CLOUD_FAILURE(6), + FAILURE_NOT_SET(0); + private final int value; + + private FailureCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCase valueOf(int value) { + return forNumber(value); + } + + public static FailureCase forNumber(int value) { + switch (value) { + case 3: + return CLOUD_STORAGE_FAILURE; + case 4: + return AWS_MSK_FAILURE; + case 5: + return AZURE_EVENT_HUBS_FAILURE; + case 6: + return CONFLUENT_CLOUD_FAILURE; + case 0: + return FAILURE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the import topic. Format is:
+   * projects/{project_name}/topics/{topic_name}.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Error details explaining why ingestion to Pub/Sub has failed.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Failure when ingesting from Cloud Storage.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + public static final int AWS_MSK_FAILURE_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ + @java.lang.Override + public boolean hasAwsMskFailure() { + return failureCase_ == 4; + } + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure() { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder() { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + + public static final int AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubsFailure field is set. + */ + @java.lang.Override + public boolean hasAzureEventHubsFailure() { + return failureCase_ == 5; + } + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubsFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getAzureEventHubsFailure() { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder() { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + + public static final int CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloudFailure field is set. + */ + @java.lang.Override + public boolean hasConfluentCloudFailure() { + return failureCase_ == 6; + } + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloudFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getConfluentCloudFailure() { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder() { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + if (failureCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + if (failureCase_ == 4) { + output.writeMessage( + 4, (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_); + } + if (failureCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_); + } + if (failureCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + if (failureCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + if (failureCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_); + } + if (failureCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_); + } + if (failureCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent other = + (com.google.pubsub.v1.IngestionFailureEvent) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getFailureCase().equals(other.getFailureCase())) return false; + switch (failureCase_) { + case 3: + if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; + break; + case 4: + if (!getAwsMskFailure().equals(other.getAwsMskFailure())) return false; + break; + case 5: + if (!getAzureEventHubsFailure().equals(other.getAzureEventHubsFailure())) return false; + break; + case 6: + if (!getConfluentCloudFailure().equals(other.getConfluentCloudFailure())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + switch (failureCase_) { + case 3: + hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageFailure().hashCode(); + break; + case 4: + hash = (37 * hash) + AWS_MSK_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAwsMskFailure().hashCode(); + break; + case 5: + hash = (37 * hash) + AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAzureEventHubsFailure().hashCode(); + break; + case 6: + hash = (37 * hash) + CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getConfluentCloudFailure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent 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.pubsub.v1.IngestionFailureEvent 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; + } + /** + * + * + *
+   * Payload of the Platform Log entry sent when a failure is encountered while
+   * ingesting.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) + com.google.pubsub.v1.IngestionFailureEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + errorMessage_ = ""; + if (cloudStorageFailureBuilder_ != null) { + cloudStorageFailureBuilder_.clear(); + } + if (awsMskFailureBuilder_ != null) { + awsMskFailureBuilder_.clear(); + } + if (azureEventHubsFailureBuilder_ != null) { + azureEventHubsFailureBuilder_.clear(); + } + if (confluentCloudFailureBuilder_ != null) { + confluentCloudFailureBuilder_.clear(); + } + failureCase_ = 0; + failure_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent build() { + com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent result = + new com.google.pubsub.v1.IngestionFailureEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { + result.failureCase_ = failureCase_; + result.failure_ = this.failure_; + if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { + result.failure_ = cloudStorageFailureBuilder_.build(); + } + if (failureCase_ == 4 && awsMskFailureBuilder_ != null) { + result.failure_ = awsMskFailureBuilder_.build(); + } + if (failureCase_ == 5 && azureEventHubsFailureBuilder_ != null) { + result.failure_ = azureEventHubsFailureBuilder_.build(); + } + if (failureCase_ == 6 && confluentCloudFailureBuilder_ != null) { + result.failure_ = confluentCloudFailureBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { + if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getFailureCase()) { + case CLOUD_STORAGE_FAILURE: + { + mergeCloudStorageFailure(other.getCloudStorageFailure()); + break; + } + case AWS_MSK_FAILURE: + { + mergeAwsMskFailure(other.getAwsMskFailure()); + break; + } + case AZURE_EVENT_HUBS_FAILURE: + { + mergeAzureEventHubsFailure(other.getAzureEventHubsFailure()); + break; + } + case CONFLUENT_CLOUD_FAILURE: + { + mergeConfluentCloudFailure(other.getConfluentCloudFailure()); + break; + } + case FAILURE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAwsMskFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getAzureEventHubsFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getConfluentCloudFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int failureCase_ = 0; + private java.lang.Object failure_; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public Builder clearFailure() { failureCase_ = 0; failure_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the import topic. Format is:
+     * projects/{project_name}/topics/{topic_name}.
+     * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + cloudStorageFailureBuilder_; + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; } - + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent build() { - com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } else { + if (failureCase_ == 3) { + return cloudStorageFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent result = - new com.google.pubsub.v1.IngestionFailureEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + failureCase_ = 3; + return this; } - - private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topic_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.errorMessage_ = errorMessage_; + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { + if (cloudStorageFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(builderForValue.build()); } + failureCase_ = 3; + return this; } - - private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { - result.failureCase_ = failureCase_; - result.failure_ = this.failure_; - if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { - result.failure_ = cloudStorageFailureBuilder_.build(); + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 3) { + cloudStorageFailureBuilder_.mergeFrom(value); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } } + failureCase_ = 3; + return this; } - - @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); + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + } + cloudStorageFailureBuilder_.clear(); + } + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder + getCloudStorageFailureBuilder() { + return getCloudStorageFailureFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { + return cloudStorageFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Optional. Failure when ingesting from Cloud Storage.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + getCloudStorageFailureFieldBuilder() { + if (cloudStorageFailureBuilder_ == null) { + if (!(failureCase_ == 3)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + cloudStorageFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 3; + onChanged(); + return cloudStorageFailureBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> + awsMskFailureBuilder_; + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasAwsMskFailure() { + return failureCase_ == 4; } - + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure() { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (failureCase_ == 4) { + return awsMskFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { - if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - bitField0_ |= 0x00000001; + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason value) { + if (awsMskFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; onChanged(); + } else { + awsMskFailureBuilder_.setMessage(value); } - if (!other.getErrorMessage().isEmpty()) { - errorMessage_ = other.errorMessage_; - bitField0_ |= 0x00000002; + failureCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder builderForValue) { + if (awsMskFailureBuilder_ == null) { + failure_ = builderForValue.build(); onChanged(); + } else { + awsMskFailureBuilder_.setMessage(builderForValue.build()); } - switch (other.getFailureCase()) { - case CLOUD_STORAGE_FAILURE: - { - mergeCloudStorageFailure(other.getCloudStorageFailure()); - break; - } - case FAILURE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + failureCase_ = 4; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); - failureCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason value) { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } onChanged(); - } // finally + } else { + if (failureCase_ == 4) { + awsMskFailureBuilder_.mergeFrom(value); + } else { + awsMskFailureBuilder_.setMessage(value); + } + } + failureCase_ = 4; return this; } - - private int failureCase_ = 0; - private java.lang.Object failure_; - - public FailureCase getFailureCase() { - return FailureCase.forNumber(failureCase_); - } - - public Builder clearFailure() { - failureCase_ = 0; - failure_ = null; - onChanged(); + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsMskFailure() { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 4) { + failureCase_ = 0; + failure_ = null; + } + awsMskFailureBuilder_.clear(); + } return this; } - - private int bitField0_; - - private java.lang.Object topic_ = ""; /** * * *
-     * Required. Name of the import topic. Format is:
-     * projects/{project_name}/topics/{topic_name}.
+     * Optional. Failure when ingesting from Amazon MSK.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder + getAwsMskFailureBuilder() { + return getAwsMskFailureFieldBuilder().getBuilder(); + } + /** * - * @return The topic. + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder() { + if ((failureCase_ == 4) && (awsMskFailureBuilder_ != null)) { + return awsMskFailureBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Failure when ingesting from Amazon MSK.
+     * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> + getAwsMskFailureFieldBuilder() { + if (awsMskFailureBuilder_ == null) { + if (!(failureCase_ == 4)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + awsMskFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; } + failureCase_ = 4; + onChanged(); + return awsMskFailureBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> + azureEventHubsFailureBuilder_; /** * * *
-     * Required. Name of the import topic. Format is:
-     * projects/{project_name}/topics/{topic_name}.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for topic. + * @return Whether the azureEventHubsFailure field is set. */ - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean hasAzureEventHubsFailure() { + return failureCase_ == 5; } /** * * *
-     * Required. Name of the import topic. Format is:
-     * projects/{project_name}/topics/{topic_name}.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The topic to set. - * @return This builder for chaining. + * @return The azureEventHubsFailure. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getAzureEventHubsFailure() { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } else { + if (failureCase_ == 5) { + return azureEventHubsFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); } - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
-     * Required. Name of the import topic. Format is:
-     * projects/{project_name}/topics/{topic_name}.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder setAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason value) { + if (azureEventHubsFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + azureEventHubsFailureBuilder_.setMessage(value); + } + failureCase_ = 5; return this; } /** * * *
-     * Required. Name of the import topic. Format is:
-     * projects/{project_name}/topics/{topic_name}.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for topic to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + builderForValue) { + if (azureEventHubsFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + azureEventHubsFailureBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); + failureCase_ = 5; return this; } - - private java.lang.Object errorMessage_ = ""; /** * * *
-     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The errorMessage. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; + public Builder mergeAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason value) { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (failureCase_ == 5) { + azureEventHubsFailureBuilder_.mergeFrom(value); + } else { + azureEventHubsFailureBuilder_.setMessage(value); + } } + failureCase_ = 5; + return this; } /** * * *
-     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for errorMessage. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; + public Builder clearAzureEventHubsFailure() { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } } else { - return (com.google.protobuf.ByteString) ref; + if (failureCase_ == 5) { + failureCase_ = 0; + failure_ = null; + } + azureEventHubsFailureBuilder_.clear(); } + return this; } /** * * *
-     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The errorMessage to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - errorMessage_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + getAzureEventHubsFailureBuilder() { + return getAzureEventHubsFailureFieldBuilder().getBuilder(); } /** * * *
-     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearErrorMessage() { - errorMessage_ = getDefaultInstance().getErrorMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder() { + if ((failureCase_ == 5) && (azureEventHubsFailureBuilder_ != null)) { + return azureEventHubsFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } } /** * * *
-     * Required. Error details explaining why ingestion to Pub/Sub has failed.
+     * Optional. Failure when ingesting from Azure Event Hubs.
      * 
* - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for errorMessage to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> + getAzureEventHubsFailureFieldBuilder() { + if (azureEventHubsFailureBuilder_ == null) { + if (!(failureCase_ == 5)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + azureEventHubsFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; } - checkByteStringIsUtf8(value); - errorMessage_ = value; - bitField0_ |= 0x00000002; + failureCase_ = 5; onChanged(); - return this; + return azureEventHubsFailureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> - cloudStorageFailureBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> + confluentCloudFailureBuilder_; /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the cloudStorageFailure field is set. + * @return Whether the confluentCloudFailure field is set. */ @java.lang.Override - public boolean hasCloudStorageFailure() { - return failureCase_ == 3; + public boolean hasConfluentCloudFailure() { + return failureCase_ == 6; } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorageFailure. + * @return The confluentCloudFailure. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getConfluentCloudFailure() { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } else { - if (failureCase_ == 3) { - return cloudStorageFailureBuilder_.getMessage(); + if (failureCase_ == 6) { + return confluentCloudFailureBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { - if (cloudStorageFailureBuilder_ == null) { + public Builder setConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason value) { + if (confluentCloudFailureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failure_ = value; onChanged(); } else { - cloudStorageFailureBuilder_.setMessage(value); + confluentCloudFailureBuilder_.setMessage(value); } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { - if (cloudStorageFailureBuilder_ == null) { + public Builder setConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + builderForValue) { + if (confluentCloudFailureBuilder_ == null) { failure_ = builderForValue.build(); onChanged(); } else { - cloudStorageFailureBuilder_.setMessage(builderForValue.build()); + confluentCloudFailureBuilder_.setMessage(builderForValue.build()); } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3 + public Builder mergeConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason value) { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6 && failure_ - != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + != com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance()) { failure_ = - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + failure_) .mergeFrom(value) .buildPartial(); } else { @@ -3740,39 +9392,39 @@ public Builder mergeCloudStorageFailure( } onChanged(); } else { - if (failureCase_ == 3) { - cloudStorageFailureBuilder_.mergeFrom(value); + if (failureCase_ == 6) { + confluentCloudFailureBuilder_.mergeFrom(value); } else { - cloudStorageFailureBuilder_.setMessage(value); + confluentCloudFailureBuilder_.setMessage(value); } } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCloudStorageFailure() { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3) { + public Builder clearConfluentCloudFailure() { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6) { failureCase_ = 0; failure_ = null; onChanged(); } } else { - if (failureCase_ == 3) { + if (failureCase_ == 6) { failureCase_ = 0; failure_ = null; } - cloudStorageFailureBuilder_.clear(); + confluentCloudFailureBuilder_.clear(); } return this; } @@ -3780,74 +9432,76 @@ public Builder clearCloudStorageFailure() { * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder - getCloudStorageFailureBuilder() { - return getCloudStorageFailureFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + getConfluentCloudFailureBuilder() { + return getConfluentCloudFailureFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder - getCloudStorageFailureOrBuilder() { - if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { - return cloudStorageFailureBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder() { + if ((failureCase_ == 6) && (confluentCloudFailureBuilder_ != null)) { + return confluentCloudFailureBuilder_.getMessageOrBuilder(); } else { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } } /** * * *
-     * Optional. Failure when ingesting from Cloud Storage.
+     * Optional. Failure when ingesting from Confluent Cloud.
      * 
* * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> - getCloudStorageFailureFieldBuilder() { - if (cloudStorageFailureBuilder_ == null) { - if (!(failureCase_ == 3)) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> + getConfluentCloudFailureFieldBuilder() { + if (confluentCloudFailureBuilder_ == null) { + if (!(failureCase_ == 6)) { failure_ = - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } - cloudStorageFailureBuilder_ = + confluentCloudFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_, getParentForChildren(), isClean()); failure_ = null; } - failureCase_ = 3; + failureCase_ = 6; onChanged(); - return cloudStorageFailureBuilder_; + return confluentCloudFailureBuilder_; } @java.lang.Override diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index af081e3d7..b488636cf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,5 +118,131 @@ public interface IngestionFailureEventOrBuilder com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder getCloudStorageFailureOrBuilder(); + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ + boolean hasAwsMskFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Amazon MSK.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder(); + + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubsFailure field is set. + */ + boolean hasAzureEventHubsFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubsFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getAzureEventHubsFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Azure Event Hubs.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder(); + + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloudFailure field is set. + */ + boolean hasConfluentCloudFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloudFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getConfluentCloudFailure(); + /** + * + * + *
+   * Optional. Failure when ingesting from Confluent Cloud.
+   * 
+ * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3d406f6bf..0ab2ac7a9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 2fa49de7d..681c829bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 50e5dd19d..826388448 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index cadb88f17..de9f891d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index d1c082ca8..0c98c0d84 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 571e88b81..050de5229 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 581624bcc..1ac5143e8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index b2145b6ac..dfe71b9a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 7a1cf826a..55485115b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 1fce5f0b0..e8711c1ef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 74fed6e23..bc58cb7c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index d53121a32..5a20d8d27 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index c2c66a388..846b75ce1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 3dd31b9e7..ff862e1c3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index c0ce6fc00..0a3209dd1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 20b021f93..579430360 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index f39c3c4b6..bf2ba6738 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6844d32f0..6eddb25e0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 1a8092115..c57f292fc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 5b80ee609..c9cb3d6b1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 021630379..d9420dffc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index f25ea7858..d389accaf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index dcb6c60f4..08dd87b28 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 3f6ad98e1..279a179a6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index c36f242a2..592003e43 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 267473b95..6334aae4c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index aca359bbf..1c54ae35d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 29832578e..ef5341c96 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 59aa717bd..5846d2918 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index fb791a330..e0e236c5e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index b9417cac9..e03117116 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index c148ebc72..ede114b6e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 54cab839b..74224f5d1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 29779beff..8ac64d9d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index a63c3a4df..6703c9690 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index fbaf39e00..e03a44ad4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 64195e3fc..4079c54b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 3d14d1cb7..b840d49fc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 612be7a12..9a2d623ae 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index d9a71ff8b..c39c3e567 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 0b9a71790..d5a3f1c93 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index b97bf7147..c2480df87 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 763d033d3..0e159683a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 28c7f6b27..57f1e97fc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -340,406 +364,471 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\251\013\n\033IngestionDataSourceSetting" + + " \001(\tB\003\340A\001\"\310\027\n\033IngestionDataSourceSetting" + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesis" + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." + "pubsub.v1.IngestionDataSourceSettings.Cl" - + "oudStorageB\003\340A\001H\000\022K\n\026platform_logs_setti" - + "ngs\030\004 \001(\0132&.google.pubsub.v1.PlatformLog" - + "sSettingsB\003\340A\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001" - + " \001(\0162>.google.pubsub.v1.IngestionDataSou" - + "rceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\nstr" - + "eam_arn\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\t" - + "B\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_" - + "service_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINES" - + "IS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" - + "SION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022C" - + "ONSUMER_NOT_FOUND\020\005\032\225\006\n\014CloudStorage\022T\n\005" - + "state\030\001 \001(\0162@.google.pubsub.v1.Ingestion" - + "DataSourceSettings.CloudStorage.StateB\003\340" - + "A\003\022\023\n\006bucket\030\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003" - + " \001(\0132E.google.pubsub.v1.IngestionDataSou" - + "rceSettings.CloudStorage.TextFormatB\003\340A\001" - + "H\000\022a\n\013avro_format\030\004 \001(\0132E.google.pubsub." - + "v1.IngestionDataSourceSettings.CloudStor" - + "age.AvroFormatB\003\340A\001H\000\022n\n\022pubsub_avro_for" - + "mat\030\005 \001(\0132K.google.pubsub.v1.IngestionDa" - + "taSourceSettings.CloudStorage.PubSubAvro" - + "FormatB\003\340A\001H\000\022C\n\032minimum_object_create_t" - + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\001\022\027\n\nmatch_glob\030\t \001(\tB\003\340A\001\0327\n\nTextForma" - + "t\022\033\n\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delim" - + "iter\032\014\n\nAvroFormat\032\022\n\020PubSubAvroFormat\"\232" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022#\n\037CLOUD_STORAGE_PERMISSION_DENIED\020\002" - + "\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n\020BUCKE" - + "T_NOT_FOUND\020\004\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014i" - + "nput_formatB\010\n\006source\"\277\001\n\024PlatformLogsSe" - + "ttings\022F\n\010severity\030\001 \001(\0162/.google.pubsub" - + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" - + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" - + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" - + "NG\020\004\022\t\n\005ERROR\020\005\"\221\004\n\025IngestionFailureEven" - + "t\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_message\030\002" - + " \001(\tB\003\340A\002\022a\n\025cloud_storage_failure\030\003 \001(\013" - + "2;.google.pubsub.v1.IngestionFailureEven" - + "t.CloudStorageFailureB\003\340A\001H\000\032\024\n\022ApiViola" - + "tionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Clou" - + "dStorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013" - + "object_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generat" - + "ion\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 " - + "\001(\01329.google.pubsub.v1.IngestionFailureE" - + "vent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_vio" - + "lation_reason\030\006 \001(\0132:.google.pubsub.v1.I" - + "ngestionFailureEvent.ApiViolationReasonB" - + "\003\340A\001H\000B\010\n\006reasonB\t\n\007failure\"\272\005\n\005Topic\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.googl" - + "e.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026me" - + "ssage_storage_policy\030\003 \001(\0132&.google.pubs" - + "ub.v1.MessageStoragePolicyB\003\340A\001\022\031\n\014kms_k" - + "ey_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 " - + "\001(\0132 .google.pubsub.v1.SchemaSettingsB\003\340" - + "A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032messag" - + "e_retention_duration\030\010 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.goog" - + "le.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingesti" - + "on_data_source_settings\030\n \001(\0132-.google.p" - + "ubsub.v1.IngestionDataSourceSettingsB\003\340A" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR" - + "\020\002:T\352AQ\n\033pubsub.googleapis.com/Topic\022!pr" - + "ojects/{project}/topics/{topic}\022\017_delete" - + "d-topic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014" - + "B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsu" - + "b.v1.PubsubMessage.AttributesEntryB\003\340A\001\022" - + "\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(" - + "\0132\032.google.protobuf.Timestamp\022\031\n\014orderin" - + "g_key\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicR" - + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" - + "ogleapis.com/Topic\"w\n\022UpdateTopicRequest" - + "\022+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.Topic" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis." - + "com/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pub" - + "sub.v1.PubsubMessageB\003\340A\002\"+\n\017PublishResp" - + "onse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListT" - + "opicsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006top" - + "ics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022" - + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTo" - + "picSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#" - + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"\201\001\n\036ListTopicSubscriptionsResponse\022" - + "A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\034\n\017next_page_" - + "token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsR" + + "oudStorageB\003\340A\001H\000\022]\n\020azure_event_hubs\030\003 " + + "\001(\0132<.google.pubsub.v1.IngestionDataSour" + + "ceSettings.AzureEventHubsB\003\340A\001H\000\022L\n\007aws_" + + "msk\030\005 \001(\01324.google.pubsub.v1.IngestionDa" + + "taSourceSettings.AwsMskB\003\340A\001H\000\022\\\n\017conflu" + + "ent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" + + "tionDataSourceSettings.ConfluentCloudB\003\340" + + "A\001H\000\022K\n\026platform_logs_settings\030\004 \001(\0132&.g" + + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A" + + "\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>.google" + + ".pubsub.v1.IngestionDataSourceSettings.A" + + "wsKinesis.StateB\003\340A\003\022\027\n\nstream_arn\030\002 \001(\t" + + "B\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n\014aws_" + + "role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service_accou" + + "nt\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERMISSION" + + "_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003" + + "\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER_NOT_F" + + "OUND\020\005\032\225\006\n\014CloudStorage\022T\n\005state\030\001 \001(\0162@" + + ".google.pubsub.v1.IngestionDataSourceSet" + + "tings.CloudStorage.StateB\003\340A\003\022\023\n\006bucket\030" + + "\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003 \001(\0132E.google" + + ".pubsub.v1.IngestionDataSourceSettings.C" + + "loudStorage.TextFormatB\003\340A\001H\000\022a\n\013avro_fo" + + "rmat\030\004 \001(\0132E.google.pubsub.v1.IngestionD" + + "ataSourceSettings.CloudStorage.AvroForma" + + "tB\003\340A\001H\000\022n\n\022pubsub_avro_format\030\005 \001(\0132K.g" + + "oogle.pubsub.v1.IngestionDataSourceSetti" + + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000" + + "\022C\n\032minimum_object_create_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001\022\027\n\nmatch_g" + + "lob\030\t \001(\tB\003\340A\001\0327\n\nTextFormat\022\033\n\tdelimite" + + "r\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delimiter\032\014\n\nAvroF" + + "ormat\032\022\n\020PubSubAvroFormat\"\232\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022#\n\037CLOUD_" + + "STORAGE_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + + "ERMISSION_DENIED\020\003\022\024\n\020BUCKET_NOT_FOUND\020\004" + + "\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014input_format\032\377" + + "\003\n\016AzureEventHubs\022V\n\005state\030\001 \001(\0162B.googl" + + "e.pubsub.v1.IngestionDataSourceSettings." + + "AzureEventHubs.StateB\003\340A\003\022\033\n\016resource_gr" + + "oup\030\002 \001(\tB\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001\022\026" + + "\n\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n\tclient_id\030\005 \001(" + + "\tB\003\340A\001\022\026\n\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n\017subscr" + + "iption_id\030\007 \001(\tB\003\340A\001\022 \n\023gcp_service_acco" + + "unt\030\010 \001(\tB\003\340A\001\"\327\001\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022 \n\034EVENT_HUBS_PERMIS" + + "SION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENI" + + "ED\020\003\022\027\n\023NAMESPACE_NOT_FOUND\020\004\022\027\n\023EVENT_H" + + "UB_NOT_FOUND\020\005\022\032\n\026SUBSCRIPTION_NOT_FOUND" + + "\020\006\022\034\n\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n\006Aws" + + "Msk\022N\n\005state\030\001 \001(\0162:.google.pubsub.v1.In" + + "gestionDataSourceSettings.AwsMsk.StateB\003" + + "\340A\003\022\030\n\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n\005topic\030\003" + + " \001(\tB\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023" + + "gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\031\n\025M" + + "SK_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" + + "SION_DENIED\020\003\022\025\n\021CLUSTER_NOT_FOUND\020\004\022\023\n\017" + + "TOPIC_NOT_FOUND\020\005\032\266\003\n\016ConfluentCloud\022V\n\005" + + "state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" + + "DataSourceSettings.ConfluentCloud.StateB" + + "\003\340A\003\022\035\n\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\nc" + + "luster_id\030\003 \001(\tB\003\340A\002\022\022\n\005topic\030\004 \001(\tB\003\340A\002" + + "\022\035\n\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n\023gcp_s" + + "ervice_account\030\006 \001(\tB\003\340A\002\"\276\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022%\n!CONFLU" + + "ENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH" + + "_PERMISSION_DENIED\020\003\022 \n\034UNREACHABLE_BOOT" + + "STRAP_SERVER\020\004\022\025\n\021CLUSTER_NOT_FOUND\020\005\022\023\n" + + "\017TOPIC_NOT_FOUND\020\006B\010\n\006source\"\277\001\n\024Platfor" + + "mLogsSettings\022F\n\010severity\030\001 \001(\0162/.google" + + ".pubsub.v1.PlatformLogsSettings.Severity" + + "B\003\340A\001\"_\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIE" + + "D\020\000\022\014\n\010DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013" + + "\n\007WARNING\020\004\022\t\n\005ERROR\020\005\"\211\014\n\025IngestionFail" + + "ureEvent\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_me" + + "ssage\030\002 \001(\tB\003\340A\002\022a\n\025cloud_storage_failur" + + "e\030\003 \001(\0132;.google.pubsub.v1.IngestionFail" + + "ureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n\017a" + + "ws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." + + "IngestionFailureEvent.AwsMskFailureReaso" + + "nB\003\340A\001H\000\022l\n\030azure_event_hubs_failure\030\005 \001" + + "(\0132C.google.pubsub.v1.IngestionFailureEv" + + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k" + + "\n\027confluent_cloud_failure\030\006 \001(\0132C.google" + + ".pubsub.v1.IngestionFailureEvent.Conflue" + + "ntCloudFailureReasonB\003\340A\001H\000\032\024\n\022ApiViolat" + + "ionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Cloud" + + "StorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013o" + + "bject_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generati" + + "on\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 \001" + + "(\01329.google.pubsub.v1.IngestionFailureEv" + + "ent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_viol" + + "ation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003" + + "\340A\001H\000B\010\n\006reason\032\344\001\n\023AwsMskFailureReason\022" + + "\030\n\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic" + + "\030\002 \001(\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023" + + "\n\006offset\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_rea" + + "son\030\005 \001(\0132:.google.pubsub.v1.IngestionFa" + + "ilureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n\006" + + "reason\032\350\001\n\033AzureEventHubsFailureReason\022\026" + + "\n\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n\tevent_hub\030\002 \001(" + + "\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006off" + + "set\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailure" + + "Event.ApiViolationReasonB\003\340A\001H\000B\010\n\006reaso" + + "n\032\353\001\n\033ConfluentCloudFailureReason\022\027\n\nclu" + + "ster_id\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic\030\002 \001(\tB" + + "\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006offse" + + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" + + "(\0132:.google.pubsub.v1.IngestionFailureEv" + + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" + + "\t\n\007failure\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "8\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" + + ".LabelsEntryB\003\340A\001\022K\n\026message_storage_pol" + + "icy\030\003 \001(\0132&.google.pubsub.v1.MessageStor" + + "agePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(\tB\003\340A" + + "\001\022>\n\017schema_settings\030\006 \001(\0132 .google.pubs" + + "ub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisfies_p" + + "zs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_durat" + + "ion\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A" + + "\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1.Topi" + + "c.StateB\003\340A\003\022Z\n\036ingestion_data_source_se" + + "ttings\030\n \001(\0132-.google.pubsub.v1.Ingestio" + + "nDataSourceSettingsB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030I" + + "NGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.g" + + "oogleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_\"\200\002\n\rPubs" + + "ubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001" + + "(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\032" + + "1\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005topic\030\001" + + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" + + "c\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001(\0132\027" + + ".google.pubsub.v1.TopicB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002" + + "\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010mess" + + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + + "ageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013message_i" + + "ds\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest\022D\n\007p" + + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022\026\n\tpage_size\030\002" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"`\n\022Li" + + "stTopicsResponse\022,\n\006topics\030\001 \003(\0132\027.googl" + + "e.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscriptionsR" + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopic" - + "SnapshotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A" - + "\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022Delet" - + "eTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\"]\n\031DetachSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\034\n\032DetachSubscriptionResponse\"\253\n\n\014Subsc" - + "ription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(" - + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226" - + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" - + "ushConfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132" - + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G" - + "\n\024cloud_storage_config\030\026 \001(\0132$.google.pu" - + "bsub.v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_d" - + "eadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_ack" - + "ed_messages\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" - + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubs" - + "ub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n\027e" - + "nable_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021exp" - + "iration_policy\030\013 \001(\0132\".google.pubsub.v1." - + "ExpirationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340" - + "A\001\022C\n\022dead_letter_policy\030\r \001(\0132\".google." - + "pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry" - + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" - + "licyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enab" - + "le_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n t" - + "opic_message_retention_duration\030\021 \001(\0132\031." - + "google.protobuf.DurationB\003\340A\003\0228\n\005state\030\023" - + " \001(\0162$.google.pubsub.v1.Subscription.Sta" - + "teB\003\340A\003\022i\n\037analytics_hub_subscription_in" - + "fo\030\027 \001(\0132;.google.pubsub.v1.Subscription" - + ".AnalyticsHubSubscriptionInfoB\003\340A\003\032O\n\034An" - + "alyticsHubSubscriptionInfo\022\024\n\007listing\030\001 " - + "\001(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006AC" - + "TIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub." - + "googleapis.com/Subscription\022/projects/{p" - + "roject}/subscriptions/{subscription}\"\177\n\013" - + "RetryPolicy\0227\n\017minimum_backoff\030\001 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001\0227\n\017maximum_" - + "backoff\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead_letter" - + "_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery_attemp" - + "ts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy\022+\n\003ttl" - + "\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232" - + "\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A" - + "\001\022E\n\nattributes\030\002 \003(\0132,.google.pubsub.v1" - + ".PushConfig.AttributesEntryB\003\340A\001\022A\n\noidc" - + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" - + "ig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 " - + "\001(\0132*.google.pubsub.v1.PushConfig.Pubsub" - + "WrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(\0132&.goo" - + "gle.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H" - + "\001\032F\n\tOidcToken\022\"\n\025service_account_email\030" - + "\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPub" - + "subWrapper\032(\n\tNoWrapper\022\033\n\016write_metadat" - + "a\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio" - + "n_methodB\t\n\007wrapper\"\216\003\n\016BigQueryConfig\022\022" - + "\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_schema\030\002" - + " \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010B\003\340A\001\022 " - + "\n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n\005stat" - + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" - + "g.StateB\003\340A\003\022\035\n\020use_table_schema\030\006 \001(\010B\003" - + "\340A\001\022\"\n\025service_account_email\030\007 \001(\tB\003\340A\001\"" - + "\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" - + "VE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND" - + "\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRANSIT_LO" - + "CATION_RESTRICTION\020\005\"\351\005\n\022CloudStorageCon" - + "fig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filename_pre" - + "fix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix\030\003 \001(\tB" - + "\003\340A\001\022%\n\030filename_datetime_format\030\n \001(\tB\003" - + "\340A\001\022K\n\013text_config\030\004 \001(\0132/.google.pubsub" - + ".v1.CloudStorageConfig.TextConfigB\003\340A\001H\000" - + "\022K\n\013avro_config\030\005 \001(\0132/.google.pubsub.v1" - + ".CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" - + "\014max_duration\030\006 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014m" - + "ax_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*." - + "google.pubsub.v1.CloudStorageConfig.Stat" - + "eB\003\340A\003\022\"\n\025service_account_email\030\013 \001(\tB\003\340" - + "A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n\016write_" - + "metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_schema\030" - + "\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" - + "\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RES" - + "TRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017\n\routpu" - + "t_format\"|\n\017ReceivedMessage\022\023\n\006ack_id\030\001 " - + "\001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.google.pubsu" - + "b.v1.PubsubMessageB\003\340A\001\022\035\n\020delivery_atte" - + "mpt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscriptionRequest" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopi" + + "cSubscriptionsResponse\022A\n\rsubscriptions\030" + + "\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "\200\001\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001" + + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" + + "c\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" + + "\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsResponse" + + "\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_to" + + "ken\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicRequest\0222\n\005" + + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\"]\n\031DetachSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\"\034\n\032DetachSubscri" + + "ptionResponse\"\253\n\n\014Subscription\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub" + + ".googleapis.com/Topic\0226\n\013push_config\030\004 \001" + + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + + "\017bigquery_config\030\022 \001(\0132 .google.pubsub.v" + + "1.BigQueryConfigB\003\340A\001\022G\n\024cloud_storage_c" + + "onfig\030\026 \001(\0132$.google.pubsub.v1.CloudStor" + + "ageConfigB\003\340A\001\022!\n\024ack_deadline_seconds\030\005" + + " \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030\007 \001(\010" + + "B\003\340A\001\022B\n\032message_retention_duration\030\010 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\022?\n\006lab" + + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" + + "n.LabelsEntryB\003\340A\001\022$\n\027enable_message_ord" + + "ering\030\n \001(\010B\003\340A\001\022B\n\021expiration_policy\030\013 " + + "\001(\0132\".google.pubsub.v1.ExpirationPolicyB" + + "\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter" + + "_policy\030\r \001(\0132\".google.pubsub.v1.DeadLet" + + "terPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(\0132\035.g" + + "oogle.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n\010deta" + + "ched\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_once_d" + + "elivery\030\020 \001(\010B\003\340A\001\022H\n topic_message_rete" + + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" + + "sub.v1.Subscription.StateB\003\340A\003\022i\n\037analyt" + + "ics_hub_subscription_info\030\027 \001(\0132;.google" + + ".pubsub.v1.Subscription.AnalyticsHubSubs" + + "criptionInfoB\003\340A\003\032O\n\034AnalyticsHubSubscri" + + "ptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014subsc" + + "ription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURC" + + "E_ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Su" + + "bscription\022/projects/{project}/subscript" + + "ions/{subscription}\"\177\n\013RetryPolicy\0227\n\017mi" + + "nimum_backoff\030\001 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\"V\n\020DeadLett" + + "erPolicy\022\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001" + + "\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020" + + "ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\r" + + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002" + + " \003(\0132,.google.pubsub.v1.PushConfig.Attri" + + "butesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.go" + + "ogle.pubsub.v1.PushConfig.OidcTokenB\003\340A\001" + + "H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google.pubs" + + "ub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n" + + "\nno_wrapper\030\005 \001(\0132&.google.pubsub.v1.Pus" + + "hConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n" + + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n\010aud" + + "ience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoW" + + "rapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001B\027\n\025authentication_methodB\t\n\007wrapp" + + "er\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A" + + "\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016writ" + + "e_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fi" + + "elds\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google." + + "pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n\020u" + + "se_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_ac" + + "count_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSIO" + + "N_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISM" + + "ATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTRICTIO" + + "N\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucket\030\001 \001" + + "(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_" + + "datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_confi" + + "g\030\004 \001(\0132/.google.pubsub.v1.CloudStorageC" + + "onfig.TextConfigB\003\340A\001H\000\022K\n\013avro_config\030\005" + + " \001(\0132/.google.pubsub.v1.CloudStorageConf" + + "ig.AvroConfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001" + + "(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n\tma" + + "x_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003" + + "B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1." + + "CloudStorageConfig.StateB\003\340A\003\022\"\n\025service" + + "_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032" + + "H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340" + + "A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025" + + "\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037" + + "IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCH" + + "EMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017Recei" + + "vedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007messa" + + "ge\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessag" + + "eB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + + "\026GetSubscriptionRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" + + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" + + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030Lis" + + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" + + "\340A\002\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscription" + + "sResponse\022:\n\rsubscriptions\030\001 \003(\0132\036.googl" + + "e.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_pa" + + "ge_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptio" + + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\"\223\001\n\027M" + + "odifyPushConfigRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\0226\n\013push_config\030\002 \001(\0132\034.google.p" + + "ubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\022!\n\022return_imm" + + "ediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 " + + "\001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_mes" + + "sages\030\001 \003(\0132!.google.pubsub.v1.ReceivedM" + + "essageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest" + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub" - + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036" - + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRequest\022D" - + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n" - + "\031ListSubscriptionsResponse\022:\n\rsubscripti" - + "ons\030\001 \003(\0132\036.google.pubsub.v1.Subscriptio" - + "nB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n\031" - + "DeleteSubscriptionRequest\022@\n\014subscriptio" + + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " + + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" + + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\"\223\001\n\027ModifyPushConfigRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\0226\n\013push_config" - + "\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A" - + "\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031" - + "\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014PullRespons" - + "e\022A\n\021received_messages\030\001 \003(\0132!.google.pu" - + "bsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030ModifyA" - + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin" - + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullRequest\022@\n\014s" - + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003" - + "\340A\001\022$\n\027modify_deadline_seconds\030\003 \003(\005B\003\340A" - + "\001\022$\n\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022" - + "(\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A" - + "\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstan" - + "ding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstand" - + "ing_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025StreamingPullRe" - + "sponse\022A\n\021received_messages\030\001 \003(\0132!.goog" - + "le.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n\030ack" - + "nowledge_confirmation\030\005 \001(\0132?.google.pub" - + "sub.v1.StreamingPullResponse.Acknowledge" - + "ConfirmationB\003\340A\001\022t\n modify_ack_deadline" - + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" - + "treamingPullResponse.ModifyAckDeadlineCo" - + "nfirmationB\003\340A\001\022d\n\027subscription_properti" - + "es\030\004 \001(\0132>.google.pubsub.v1.StreamingPul" - + "lResponse.SubscriptionPropertiesB\003\340A\001\032\224\001" - + "\n\027AcknowledgeConfirmation\022\024\n\007ack_ids\030\001 \003" - + "(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" - + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030tempora" - + "ry_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAc" - + "kDeadlineConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003" - + "\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030tem" - + "porary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026Subs" - + "criptionProperties\022*\n\035exactly_once_deliv" - + "ery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message_orderi" - + "ng_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshot" - + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.go" - + "ogleapis.com/Snapshot\022@\n\014subscription\030\002 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\022H\n\006labels\030\003 \003(\01323.google.pubsub." - + "v1.CreateSnapshotRequest.LabelsEntryB\003\340A" + + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024St" + + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_dea" + + "dline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadl" + + "ine_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_dea" + + "dline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 " + + "\001(\tB\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001" + + "(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003" + + "\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021receive" + + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" + + "ivedMessageB\003\340A\001\022f\n\030acknowledge_confirma" + + "tion\030\005 \001(\0132?.google.pubsub.v1.StreamingP" + + "ullResponse.AcknowledgeConfirmationB\003\340A\001" + + "\022t\n modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d" + + "\n\027subscription_properties\030\004 \001(\0132>.google" + + ".pubsub.v1.StreamingPullResponse.Subscri" + + "ptionPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConf" + + "irmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invali" + + "d_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_id" + + "s\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids" + + "\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirma" + + "tion\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ac" + + "k_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack" + + "_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionPropertie" + + "s\022*\n\035exactly_once_delivery_enabled\030\001 \001(\010" + + "B\003\340A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B" + + "\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubs" + + "ub.googleapis.com/Subscription\022H\n\006labels" + + "\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot" + + "Request.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" + + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" + + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005to" + + "pic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com" + + "/Topic\0224\n\013expire_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.g" + + "oogle.pubsub.v1.Snapshot.LabelsEntryB\003\340A" + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" - + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubs" - + "ub.googleapis.com/Topic\0224\n\013expire_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsho" - + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.g" - + "oogleapis.com/Snapshot\022\'projects/{projec" - + "t}/snapshots/{snapshot}\"N\n\022GetSnapshotRe" - + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." - + "googleapis.com/Snapshot\"\215\001\n\024ListSnapshot" - + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnap" - + "shots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB" - + "\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025De" - + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340" - + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306\001" - + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "/\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubs" - + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" - + "\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateTo" - + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" - + "bsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=" - + "projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022" - + "$.google.pubsub.v1.UpdateTopicRequest\032\027." - + "google.pubsub.v1.Topic\"C\332A\021topic,update_" - + "mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/t" - + "opics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub." - + "v1.PublishRequest\032!.google.pubsub.v1.Pub" - + "lishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/" - + "v1/{topic=projects/*/topics/*}:publish:\001" - + "*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopi" - + "cRequest\032\027.google.pubsub.v1.Topic\"/\332A\005to" - + "pic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/" - + "*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Lis" - + "tTopicsRequest\032$.google.pubsub.v1.ListTo" - + "picsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pro" - + "ject=projects/*}/topics\022\272\001\n\026ListTopicSub" - + "scriptions\022/.google.pubsub.v1.ListTopicS" - + "ubscriptionsRequest\0320.google.pubsub.v1.L" - + "istTopicSubscriptionsResponse\"=\332A\005topic\202" - + "\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/s" - + "ubscriptions\022\252\001\n\022ListTopicSnapshots\022+.go" - + "ogle.pubsub.v1.ListTopicSnapshotsRequest" - + "\032,.google.pubsub.v1.ListTopicSnapshotsRe" - + "sponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proje" - + "cts/*/topics/*}/snapshots\022|\n\013DeleteTopic" - + "\022$.google.pubsub.v1.DeleteTopicRequest\032\026" - + ".google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037" - + "/v1/{topic=projects/*/topics/*}\022\255\001\n\022Deta" - + "chSubscription\022+.google.pubsub.v1.Detach" - + "SubscriptionRequest\032,.google.pubsub.v1.D" - + "etachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":detach\032p\312A\025pubsub.googleapis.com\322AUhttp" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm,https://www.googleapis.com/auth/pubsu" - + "b2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022" - + "\036.google.pubsub.v1.Subscription\032\036.google" - + ".pubsub.v1.Subscription\"^\332A+name,topic,p" - + "ush_config,ack_deadline_seconds\202\323\344\223\002*\032%/" - + "v1/{name=projects/*/subscriptions/*}:\001*\022" - + "\241\001\n\017GetSubscription\022(.google.pubsub.v1.G" - + "etSubscriptionRequest\032\036.google.pubsub.v1" - + ".Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}\022\273\001\n\022UpdateSubscription\022+.google.pubs" - + "ub.v1.UpdateSubscriptionRequest\032\036.google" - + ".pubsub.v1.Subscription\"X\332A\030subscription" - + ",update_mask\202\323\344\223\002722/v1/{subscription.na" - + "me=projects/*/subscriptions/*}:\001*\022\246\001\n\021Li" - + "stSubscriptions\022*.google.pubsub.v1.ListS" - + "ubscriptionsRequest\032+.google.pubsub.v1.L" - + "istSubscriptionsResponse\"8\332A\007project\202\323\344\223" - + "\002(\022&/v1/{project=projects/*}/subscriptio" - + "ns\022\237\001\n\022DeleteSubscription\022+.google.pubsu" - + "b.v1.DeleteSubscriptionRequest\032\026.google." - + "protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/" - + "v1/{subscription=projects/*/subscription" - + "s/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pubs" - + "ub.v1.ModifyAckDeadlineRequest\032\026.google." - + "protobuf.Empty\"v\332A)subscription,ack_ids," - + "ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscri" - + "ption=projects/*/subscriptions/*}:modify" - + "AckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google." - + "pubsub.v1.AcknowledgeRequest\032\026.google.pr" - + "otobuf.Empty\"[\332A\024subscription,ack_ids\202\323\344" - + "\223\002>\"9/v1/{subscription=projects/*/subscr" - + "iptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.goo" - + "gle.pubsub.v1.PullRequest\032\036.google.pubsu" - + "b.v1.PullResponse\"\210\001\332A,subscription,retu" - + "rn_immediately,max_messages\332A\031subscripti" - + "on,max_messages\202\323\344\223\0027\"2/v1/{subscription" - + "=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.Streami" - + "ngPullRequest\032\'.google.pubsub.v1.Streami" - + "ngPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfi" - + "g\022).google.pubsub.v1.ModifyPushConfigReq" - + "uest\032\026.google.protobuf.Empty\"d\332A\030subscri" - + "ption,push_config\202\323\344\223\002C\">/v1/{subscripti" - + "on=projects/*/subscriptions/*}:modifyPus" - + "hConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubs" - + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" - + ".v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{sn" - + "apshot=projects/*/snapshots/*}\022\226\001\n\rListS" - + "napshots\022&.google.pubsub.v1.ListSnapshot" - + "sRequest\032\'.google.pubsub.v1.ListSnapshot" - + "sResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{projec" - + "t=projects/*}/snapshots\022\227\001\n\016CreateSnapsh" - + "ot\022\'.google.pubsub.v1.CreateSnapshotRequ" - + "est\032\032.google.pubsub.v1.Snapshot\"@\332A\021name" - + ",subscription\202\323\344\223\002&\032!/v1/{name=projects/" - + "*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.g" - + "oogle.pubsub.v1.UpdateSnapshotRequest\032\032." - + "google.pubsub.v1.Snapshot\"L\332A\024snapshot,u" - + "pdate_mask\202\323\344\223\002/2*/v1/{snapshot.name=pro", - "jects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsh" - + "ot\022\'.google.pubsub.v1.DeleteSnapshotRequ" - + "est\032\026.google.protobuf.Empty\"8\332A\010snapshot" - + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" - + "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" - + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" - + "criptions/*}:seek:\001*\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsubB\252\001\n\024com.google.pubsub.v1B" - + "\013PubsubProtoP\001Z2cloud.google.com/go/pubs" - + "ub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.C" - + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352" - + "\002\031Google::Cloud::PubSub::V1b\006proto3" + + " \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Sna" + + "pshot\022\'projects/{project}/snapshots/{sna" + + "pshot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot" + + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" + + "apshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007proje" + + "ct\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" + + "oogleapis.com/Project\022\026\n\tpage_size\030\002 \001(\005" + + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSn" + + "apshotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.goo" + + "gle.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page" + + "_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotReque" + + "st\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" + + "gleapis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014" + + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022/\n\004time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001H\000\022:\n\010snaps" + + "hot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com" + + "/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013" + + "\n\tPublisher\022q\n\013CreateTopic\022\027.google.pubs" + + "ub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A" + + "\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics" + + "/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v" + + "1.UpdateTopicRequest\032\027.google.pubsub.v1." + + "Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{" + + "topic.name=projects/*/topics/*}:\001*\022\223\001\n\007P" + + "ublish\022 .google.pubsub.v1.PublishRequest" + + "\032!.google.pubsub.v1.PublishResponse\"C\332A\016" + + "topic,messages\202\323\344\223\002,\"\'/v1/{topic=project" + + "s/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.g" + + "oogle.pubsub.v1.GetTopicRequest\032\027.google" + + ".pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{t" + + "opic=projects/*/topics/*}\022\212\001\n\nListTopics" + + "\022#.google.pubsub.v1.ListTopicsRequest\032$." + + "google.pubsub.v1.ListTopicsResponse\"1\332A\007" + + "project\202\323\344\223\002!\022\037/v1/{project=projects/*}/" + + "topics\022\272\001\n\026ListTopicSubscriptions\022/.goog" + + "le.pubsub.v1.ListTopicSubscriptionsReque" + + "st\0320.google.pubsub.v1.ListTopicSubscript" + + "ionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic" + + "=projects/*/topics/*}/subscriptions\022\252\001\n\022" + + "ListTopicSnapshots\022+.google.pubsub.v1.Li" + + "stTopicSnapshotsRequest\032,.google.pubsub." + + "v1.ListTopicSnapshotsResponse\"9\332A\005topic\202" + + "\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/s" + + "napshots\022|\n\013DeleteTopic\022$.google.pubsub." + + "v1.DeleteTopicRequest\032\026.google.protobuf." + + "Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projec" + + "ts/*/topics/*}\022\255\001\n\022DetachSubscription\022+." + + "google.pubsub.v1.DetachSubscriptionReque", + "st\032,.google.pubsub.v1.DetachSubscription" + + "Response\"<\202\323\344\223\0026\"4/v1/{subscription=proj" + + "ects/*/subscriptions/*}:detach\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsub2\322\025\n\nSubscriber\022" + + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" + + "1.Subscription\032\036.google.pubsub.v1.Subscr" + + "iption\"^\332A+name,topic,push_config,ack_de" + + "adline_seconds\202\323\344\223\002*\032%/v1/{name=projects" + + "/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscripti" + + "on\022(.google.pubsub.v1.GetSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"D\332A" + + "\014subscription\202\323\344\223\002/\022-/v1/{subscription=p" + + "rojects/*/subscriptions/*}\022\273\001\n\022UpdateSub" + + "scription\022+.google.pubsub.v1.UpdateSubsc" + + "riptionRequest\032\036.google.pubsub.v1.Subscr" + + "iption\"X\332A\030subscription,update_mask\202\323\344\223\002" + + "722/v1/{subscription.name=projects/*/sub" + + "scriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*" + + ".google.pubsub.v1.ListSubscriptionsReque" + + "st\032+.google.pubsub.v1.ListSubscriptionsR" + + "esponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=" + + "projects/*}/subscriptions\022\237\001\n\022DeleteSubs" + + "cription\022+.google.pubsub.v1.DeleteSubscr" + + "iptionRequest\032\026.google.protobuf.Empty\"D\332" + + "A\014subscription\202\323\344\223\002/*-/v1/{subscription=" + + "projects/*/subscriptions/*}\022\317\001\n\021ModifyAc" + + "kDeadline\022*.google.pubsub.v1.ModifyAckDe" + + "adlineRequest\032\026.google.protobuf.Empty\"v\332" + + "A)subscription,ack_ids,ack_deadline_seco" + + "nds\202\323\344\223\002D\"?/v1/{subscription=projects/*/" + + "subscriptions/*}:modifyAckDeadline:\001*\022\250\001" + + "\n\013Acknowledge\022$.google.pubsub.v1.Acknowl" + + "edgeRequest\032\026.google.protobuf.Empty\"[\332A\024" + + "subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscri" + + "ption=projects/*/subscriptions/*}:acknow" + + "ledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pul" + + "lRequest\032\036.google.pubsub.v1.PullResponse" + + "\"\210\001\332A,subscription,return_immediately,ma" + + "x_messages\332A\031subscription,max_messages\202\323" + + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" + + "riptions/*}:pull:\001*\022f\n\rStreamingPull\022&.g" + + "oogle.pubsub.v1.StreamingPullRequest\032\'.g" + + "oogle.pubsub.v1.StreamingPullResponse\"\000(" + + "\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub" + + ".v1.ModifyPushConfigRequest\032\026.google.pro" + + "tobuf.Empty\"d\332A\030subscription,push_config" + + "\202\323\344\223\002C\">/v1/{subscription=projects/*/sub" + + "scriptions/*}:modifyPushConfig:\001*\022\211\001\n\013Ge" + + "tSnapshot\022$.google.pubsub.v1.GetSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"8\332A\010" + + "snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*" + + "/snapshots/*}\022\226\001\n\rListSnapshots\022&.google" + + ".pubsub.v1.ListSnapshotsRequest\032\'.google" + + ".pubsub.v1.ListSnapshotsResponse\"4\332A\007pro" + + "ject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" + + "pshots\022\227\001\n\016CreateSnapshot\022\'.google.pubsu" + + "b.v1.CreateSnapshotRequest\032\032.google.pubs" + + "ub.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223" + + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" + + "\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.U" + + "pdateSnapshotRequest\032\032.google.pubsub.v1." + + "Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2" + + "*/v1/{snapshot.name=projects/*/snapshots" + + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu" + + "b.v1.DeleteSnapshotRequest\032\026.google.prot" + + "obuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snap" + + "shot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035." + + "google.pubsub.v1.SeekRequest\032\036.google.pu" + + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:seek" + + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/pubsubB\252\001" + + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2c" + + "loud.google.com/go/pubsub/apiv1/pubsubpb" + + ";pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026" + + "Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::" + + "PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -777,7 +866,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, new java.lang.String[] { - "AwsKinesis", "CloudStorage", "PlatformLogsSettings", "Source", + "AwsKinesis", + "CloudStorage", + "AzureEventHubs", + "AwsMsk", + "ConfluentCloud", + "PlatformLogsSettings", + "Source", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor @@ -832,6 +927,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor, new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor, + new java.lang.String[] { + "State", + "ResourceGroup", + "Namespace", + "EventHub", + "ClientId", + "TenantId", + "SubscriptionId", + "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(3); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor, + new java.lang.String[] { + "State", "ClusterArn", "Topic", "AwsRoleArn", "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(4); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor, + new java.lang.String[] { + "State", + "BootstrapServer", + "ClusterId", + "Topic", + "IdentityPoolId", + "GcpServiceAccount", + }); internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable = @@ -846,7 +983,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor, new java.lang.String[] { - "Topic", "ErrorMessage", "CloudStorageFailure", "Failure", + "Topic", + "ErrorMessage", + "CloudStorageFailure", + "AwsMskFailure", + "AzureEventHubsFailure", + "ConfluentCloudFailure", + "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(0); @@ -873,6 +1016,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiViolationReason", "Reason", }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, + new java.lang.String[] { + "ClusterArn", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, + new java.lang.String[] { + "Namespace", "EventHub", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, + new java.lang.String[] { + "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index ed976fea0..0fcf1b660 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 6c5f66a36..6520bf9bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index b8c01469c..9114f636f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 13591fc31..664f3de29 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index c2b62ad70..4eda45f36 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index b3aec3d61..38b1bc963 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 96e7b7c19..99bf4f40b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index f352ff532..29e4bb6cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index ba9ea8952..87c8b94e9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 3437158f7..f49555336 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index cde07f4aa..26df96db4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index d3be6be3c..de66b349e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 52357cf32..0b7f06f7a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index d4bb6fa5f..c1199db1a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 6974c7663..81907d0bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 4f028362a..debada97a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 834e3dbf2..215c89158 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 979132348..b37d4d936 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index d2964ddc8..5234521c0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index ce9a01558..fabd51b78 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 70b5a13ae..359b6ae0e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 9a9f4c4a3..247167769 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 0b47b94e2..b951abc8f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 36faa854d..781585a23 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 4e3ee0846..824bcd085 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 2d406705b..a5606bb50 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 48afa860b..478c32125 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 5c4af96cb..b1de4d1b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index d262e7ca1..4a9fb2591 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index a20bf8572..40089d18c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 8554197d0..423ae5a49 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index a8731d5c9..747b856c4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 51ea4432a..46c75a2b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 0f8477e86..40872b062 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 8fe96fcb8..6c805af88 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 38b54f234..8f58e61bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index adae2a400..ee0819771 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 45bdef5dd..29eace61f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 8bf7d85d6..26db4ac40 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 469ccb8e5..4e269b66b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index fa2713ec6..881978774 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index cbac7a5a5..d8f1585fe 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 994119324..da740bab7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 3eb379d3d..73bde3da9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 96999cf11..418a1494e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index f66974da0..2c6a61e13 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 60a92235f..45232ef53 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 824700d69..89e05a495 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index afc2763c3..886a37801 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index f9378438b..8a202b5b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 0f269f525..6ed87cbba 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -323,6 +323,164 @@ message IngestionDataSourceSettings { string match_glob = 9 [(google.api.field_behavior) = OPTIONAL]; } + // Ingestion settings for Azure Event Hubs. + message AzureEventHubs { + // Possible states for managed ingestion from Event Hubs. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Event Hubs. + // This can happen when `client_id`, or `tenant_id` are invalid. Or the + // right permissions haven't been granted. + EVENT_HUBS_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided Event Hubs namespace couldn't be found. + NAMESPACE_NOT_FOUND = 4; + + // The provided Event Hub couldn't be found. + EVENT_HUB_NOT_FOUND = 5; + + // The provided Event Hubs subscription couldn't be found. + SUBSCRIPTION_NOT_FOUND = 6; + + // The provided Event Hubs resource group couldn't be found. + RESOURCE_GROUP_NOT_FOUND = 7; + } + + // Output only. An output-only field that indicates the state of the Event + // Hubs ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Name of the resource group within the azure subscription. + string resource_group = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Event Hubs namespace. + string namespace = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Event Hub. + string event_hub = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The client id of the Azure application that is being used to + // authenticate Pub/Sub. + string client_id = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tenant id of the Azure application that is being used to + // authenticate Pub/Sub. + string tenant_id = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Azure subscription id. + string subscription_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The GCP service account to be used for Federated Identity + // authentication. + string gcp_service_account = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Ingestion settings for Amazon MSK. + message AwsMsk { + // Possible states for managed ingestion from Amazon MSK. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Amazon MSK. + MSK_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided MSK cluster wasn't found. + CLUSTER_NOT_FOUND = 4; + + // The provided topic wasn't found. + TOPIC_NOT_FOUND = 5; + } + + // Output only. An output-only field that indicates the state of the Amazon + // MSK ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Amazon Resource Name (ARN) that uniquely identifies the + // cluster. + string cluster_arn = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the topic in the Amazon MSK cluster that Pub/Sub + // will import from. + string topic = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. AWS role ARN to be used for Federated Identity authentication + // with Amazon MSK. Check the Pub/Sub docs for how to set up this role and + // the required permissions that need to be attached to it. + string aws_role_arn = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call + // for the provided role). The `aws_role_arn` must be set up with + // `accounts.google.com:sub` equals to this service account number. + string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Ingestion settings for Confluent Cloud. + message ConfluentCloud { + // Possible states for managed ingestion from Confluent Cloud. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Confluent + // Cloud. + CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided bootstrap server address is unreachable. + UNREACHABLE_BOOTSTRAP_SERVER = 4; + + // The provided cluster wasn't found. + CLUSTER_NOT_FOUND = 5; + + // The provided topic wasn't found. + TOPIC_NOT_FOUND = 6; + } + + // Output only. An output-only field that indicates the state of the + // Confluent Cloud ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The address of the bootstrap server. The format is url:port. + string bootstrap_server = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The id of the cluster. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the topic in the Confluent Cloud cluster that + // Pub/Sub will import from. + string topic = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The id of the identity pool to be used for Federated Identity + // authentication with Confluent Cloud. See + // https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools. + string identity_pool_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with `identity_pool_id`. + string gcp_service_account = 6 [(google.api.field_behavior) = REQUIRED]; + } + // Only one source type can have settings set. oneof source { // Optional. Amazon Kinesis Data Streams. @@ -330,6 +488,16 @@ message IngestionDataSourceSettings { // Optional. Cloud Storage. CloudStorage cloud_storage = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Azure Event Hubs. + AzureEventHubs azure_event_hubs = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Amazon MSK. + AwsMsk aws_msk = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Confluent Cloud. + ConfluentCloud confluent_cloud = 6 [(google.api.field_behavior) = OPTIONAL]; } // Optional. Platform Logs settings. If unset, no Platform Logs will be @@ -408,6 +576,78 @@ message IngestionFailureEvent { } } + // Failure when ingesting from an Amazon MSK source. + message AwsMskFailureReason { + // Optional. The ARN of the cluster of the topic being ingested from. + string cluster_arn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Kafka topic being ingested from. + string kafka_topic = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from an Azure Event Hubs source. + message AzureEventHubsFailureReason { + // Optional. The namespace containing the event hub being ingested from. + string namespace = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the event hub being ingested from. + string event_hub = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from a Confluent Cloud source. + message ConfluentCloudFailureReason { + // Optional. The cluster ID containing the topic being ingested from. + string cluster_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Kafka topic being ingested from. + string kafka_topic = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + // Required. Name of the import topic. Format is: // projects/{project_name}/topics/{topic_name}. string topic = 1 [(google.api.field_behavior) = REQUIRED]; @@ -419,6 +659,18 @@ message IngestionFailureEvent { // Optional. Failure when ingesting from Cloud Storage. CloudStorageFailure cloud_storage_failure = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Amazon MSK. + AwsMskFailureReason aws_msk_failure = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Azure Event Hubs. + AzureEventHubsFailureReason azure_event_hubs_failure = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Confluent Cloud. + ConfluentCloudFailureReason confluent_cloud_failure = 6 + [(google.api.field_behavior) = OPTIONAL]; } } From 9c166f76db78b0c6b2e0218460d5c0336102717a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:37:34 -0500 Subject: [PATCH 378/656] chore: Update generation configuration at Thu Jan 9 21:05:27 UTC 2025 (#2305) --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 1bf7d40fa..cbbdda627 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.51.0 -googleapis_commitish: 3322b91056db2735074b230c926e6ef3a958aa53 +gapic_generator_version: 2.51.1 +googleapis_commitish: d581bbe1a66ad2e47eda2beebf6200f23b766ca9 libraries_bom_version: 26.52.0 libraries: - api_shortname: pubsub From dc90b5f1847681c6e91ae4c183293f1fe2bc3e19 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:09:05 -0500 Subject: [PATCH 379/656] chore(main): release 1.136.0 (#2297) * chore(main): release 1.136.0 * chore: generate libraries at Fri Jan 10 15:38:30 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 22 ++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 43 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aebaf6bb..c3bbf925a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.136.0](https://github.com/googleapis/java-pubsub/compare/v1.135.0...v1.136.0) (2025-01-10) + + +### Features + +* Add Kafka-based sources to IngestionDataSourceSettings proto and IngestionFailureEvent proto ([2947169](https://github.com/googleapis/java-pubsub/commit/2947169c009fa553202bc1e44276cf5a7954cd96)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.1 ([9c166f7](https://github.com/googleapis/java-pubsub/commit/9c166f76db78b0c6b2e0218460d5c0336102717a)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.45.0 ([#2292](https://github.com/googleapis/java-pubsub/issues/2292)) ([79a8982](https://github.com/googleapis/java-pubsub/commit/79a89823c6cbcc9a718f44856040b1525863cab6)) +* Update dependency com.google.cloud:google-cloud-storage to v2.46.0 ([#2291](https://github.com/googleapis/java-pubsub/issues/2291)) ([7b60884](https://github.com/googleapis/java-pubsub/commit/7b60884cc4e17df616155f7530a056c4c5e3af29)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([#2301](https://github.com/googleapis/java-pubsub/issues/2301)) ([53c1a8a](https://github.com/googleapis/java-pubsub/commit/53c1a8abdd3114e0f432b3b6618133fb93e44636)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.2 ([#2294](https://github.com/googleapis/java-pubsub/issues/2294)) ([48d4ac1](https://github.com/googleapis/java-pubsub/commit/48d4ac1ab2f0b9f9005292977c288f55322dd16a)) +* Update dependency org.assertj:assertj-core to v3.27.2 ([#2296](https://github.com/googleapis/java-pubsub/issues/2296)) ([e5b68a5](https://github.com/googleapis/java-pubsub/commit/e5b68a563aa6ebb2bd69665624fc7fc6aef50b64)) +* Update googleapis/sdk-platform-java action to v2.51.1 ([#2298](https://github.com/googleapis/java-pubsub/issues/2298)) ([16e0144](https://github.com/googleapis/java-pubsub/commit/16e0144d83c149b60e7b8fca6c4e61546d93462f)) + ## [1.135.0](https://github.com/googleapis/java-pubsub/compare/v1.134.2...v1.135.0) (2024-12-12) diff --git a/README.md b/README.md index 477dccc0d..db176eda5 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.135.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.136.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.135.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.135.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 25e977e80..d4547c76a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.135.1-SNAPSHOT + 1.136.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 45b4eb493..8ed207df4 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 654c3e430..ece04d79c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/pom.xml b/pom.xml index 1e144d4f9..46c36b84b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.135.1-SNAPSHOT + 1.136.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 8e099b522..d3c0ceaaa 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 55e9d7dd6..b88149f03 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/versions.txt b/versions.txt index 4cb943167..1cf08e531 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.135.0:1.135.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT +google-cloud-pubsub:1.136.0:1.136.0 +grpc-google-cloud-pubsub-v1:1.118.0:1.118.0 +proto-google-cloud-pubsub-v1:1.118.0:1.118.0 From 97bd44e04c440320e45c2b4336677d8d266a39a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:11:35 +0100 Subject: [PATCH 380/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.46.0 (#2309) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c4e1df71b..d0abb9aab 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.45.0 + 2.46.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b88149f03..0c11e59d3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.45.0 + 2.46.0 com.google.cloud From 0e8cc32734a1e3bb31218006e9f01d4ce93db8e8 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:11:58 -0500 Subject: [PATCH 381/656] chore: Update generation configuration at Thu Jan 23 02:23:35 UTC 2025 (#2308) * chore: Update generation configuration at Sat Jan 11 02:26:06 UTC 2025 * chore: Update generation configuration at Sun Jan 12 02:29:41 UTC 2025 * chore: Update generation configuration at Mon Jan 13 02:29:17 UTC 2025 * chore: Update generation configuration at Tue Jan 14 02:22:16 UTC 2025 * chore: Update generation configuration at Wed Jan 15 02:23:55 UTC 2025 * chore: Update generation configuration at Thu Jan 16 02:22:55 UTC 2025 * chore: Update generation configuration at Fri Jan 17 02:22:36 UTC 2025 * chore: generate libraries at Fri Jan 17 02:23:09 UTC 2025 * chore: Update generation configuration at Sat Jan 18 02:20:32 UTC 2025 * chore: Update generation configuration at Tue Jan 21 02:23:43 UTC 2025 * chore: Update generation configuration at Wed Jan 22 02:25:18 UTC 2025 * chore: Update generation configuration at Thu Jan 23 02:23:35 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db176eda5..cb50e4b4e 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.52.0') +implementation platform('com.google.cloud:libraries-bom:26.53.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index cbbdda627..e9de8268f 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: d581bbe1a66ad2e47eda2beebf6200f23b766ca9 -libraries_bom_version: 26.52.0 +googleapis_commitish: 1a0e353ac4a372cf7016df4ce0a7d7e609f339b3 +libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From d9ed16bbff08696aed6892f2f7a49ea5b0872e39 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:12:10 +0100 Subject: [PATCH 382/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.136.0 (#2307) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d0abb9aab..3b8555ae8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.136.0 From 9e90e2ca26b2aea48563859358dde84640eb40d0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:12:55 +0100 Subject: [PATCH 383/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.3 (#2302) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3b8555ae8..bb80ca7f5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0c11e59d3..959a249e2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index df9a7ab0b..eca3d7232 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 From cf2822b7363e13e4730753cbb5ca3510c77f5f55 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:13:03 +0100 Subject: [PATCH 384/656] deps: update dependency com.google.cloud:google-cloud-core to v2.49.1 (#2300) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bb80ca7f5..7bac19eac 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 959a249e2..dbbb82946 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index eca3d7232..c946bb5c6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests From 707f84271559dfe96fa11edffb307df145ceea47 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:13:50 +0100 Subject: [PATCH 385/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.47.0 (#2303) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7bac19eac..fe402f96c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.46.0 + 2.47.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dbbb82946..4f05c2960 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.46.0 + 2.47.0 com.google.cloud.opentelemetry From 9e134b74ee948d98bb25a4fcfa100722237530b1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:15:59 +0100 Subject: [PATCH 386/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.53.0 (#2311) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c946bb5c6..9f6c6bea9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.52.0 + 26.53.0 pom import From 5e80b57d2ffd58e6a0bb9f5e0e78bb46d6fe2530 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 17:43:08 +0100 Subject: [PATCH 387/656] deps: update dependency org.assertj:assertj-core to v3.27.3 (#2313) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 46c36b84b..0fadcae5f 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.2 + 3.27.3 test From eea603ba3f05be85d58a69cd5c3469e2088a7446 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 23 Jan 2025 12:44:44 -0500 Subject: [PATCH 388/656] docs: Add samples and tests for ingestion from Kafka sources (#2315) * docs: Add samples and tests for ingestion from Kafka sources * docs: Styles fixes for samples/tests --- ...CreateTopicWithAwsMskIngestionExample.java | 75 +++++++++++++ ...picWithAzureEventHubsIngestionExample.java | 93 ++++++++++++++++ ...picWithConfluentCloudIngestionExample.java | 85 ++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 104 +++++++++++++++++- 4 files changed, 355 insertions(+), 2 deletions(-) create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java new file mode 100644 index 000000000..e04b41574 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java @@ -0,0 +1,75 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_aws_msk_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithAwsMskIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // AWS MSK ingestion settings. + String clusterArn = "cluster-arn"; + String mskTopic = "msk-topic"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithAwsMskIngestionExample( + projectId, topicId, clusterArn, mskTopic, awsRoleArn, gcpServiceAccount); + } + + public static void createTopicWithAwsMskIngestionExample( + String projectId, + String topicId, + String clusterArn, + String mskTopic, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsMsk awsMsk = + IngestionDataSourceSettings.AwsMsk.newBuilder() + .setClusterArn(clusterArn) + .setTopic(mskTopic) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsMsk(awsMsk).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println("Created topic with AWS MSK ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_aws_msk_ingestion] diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java new file mode 100644 index 000000000..29210b792 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_azure_event_hubs_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithAzureEventHubsIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Azure Event Hubs ingestion settings. + String resourceGroup = "resource-group"; + String namespace = "namespace"; + String eventHub = "event-hub"; + String clientId = "client-id"; + String tenantId = "tenant-id"; + String subscriptionId = "subscription-id"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithAzureEventHubsIngestionExample( + projectId, + topicId, + resourceGroup, + namespace, + eventHub, + clientId, + tenantId, + subscriptionId, + gcpServiceAccount); + } + + public static void createTopicWithAzureEventHubsIngestionExample( + String projectId, + String topicId, + String resourceGroup, + String namespace, + String eventHub, + String clientId, + String tenantId, + String subscriptionId, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AzureEventHubs azureEventHubs = + IngestionDataSourceSettings.AzureEventHubs.newBuilder() + .setResourceGroup(resourceGroup) + .setNamespace(namespace) + .setEventHub(eventHub) + .setClientId(clientId) + .setTenantId(tenantId) + .setSubscriptionId(subscriptionId) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAzureEventHubs(azureEventHubs).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Azure Event Hubs ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_azure_event_hubs_ingestion] diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java new file mode 100644 index 000000000..e222b7ba0 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java @@ -0,0 +1,85 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_confluent_cloud_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithConfluentCloudIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Confluent Cloud ingestion settings. + String bootstrapServer = "bootstrap-server"; + String clusterId = "cluster-id"; + String confluentTopic = "confluent-topic"; + String identityPoolId = "identity-pool-id"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithConfluentCloudIngestionExample( + projectId, + topicId, + bootstrapServer, + clusterId, + confluentTopic, + identityPoolId, + gcpServiceAccount); + } + + public static void createTopicWithConfluentCloudIngestionExample( + String projectId, + String topicId, + String bootstrapServer, + String clusterId, + String confluentTopic, + String identityPoolId, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.ConfluentCloud confluentCloud = + IngestionDataSourceSettings.ConfluentCloud.newBuilder() + .setBootstrapServer(bootstrapServer) + .setClusterId(clusterId) + .setTopic(confluentTopic) + .setIdentityPoolId(identityPoolId) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setConfluentCloud(confluentCloud).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Confluent Cloud ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_confluent_cloud_ingestion] diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index e0c45e8e1..23b24f917 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -55,6 +55,11 @@ public class AdminIT { private static final String kinesisIngestionTopicId = "kinesis-ingestion-topic-" + _suffix; private static final String cloudStorageIngestionTopicId = "cloud-storage-ingestion-topic-" + _suffix; + private static final String awsMskIngestionTopicId = "aws-msk-ingestion-topic-" + _suffix; + private static final String confluentCloudIngestionTopicId = + "confluent-cloud-ingestion-topic-" + _suffix; + private static final String azureEventHubsIngestionTopicId = + "azure-event-hubs-ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -66,6 +71,9 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String gcpServiceAccount = + "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + // AWS Kinesis ingestion settings. private static final String streamArn = "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name"; private static final String consumerArn = @@ -75,20 +83,41 @@ public class AdminIT { "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + "consumer/consumer-2:2222222222"; private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; - private static final String gcpServiceAccount = - "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + // GCS ingestion settings. private static final String cloudStorageBucket = "pubsub-cloud-storage-bucket"; private static final String cloudStorageInputFormat = "text"; private static final String cloudStorageTextDelimiter = ","; private static final String cloudStorageMatchGlob = "**.txt"; private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:01Z"; private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; + // AWS MSK ingestion settings. + String clusterArn = + "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; + String mskTopic = "fake-msk-topic-name"; + // Confluent Cloud ingestion settings. + String bootstrapServer = "fake-bootstrap-server-id.us-south1.gcp.confluent.cloud:9092"; + String clusterId = "fake-cluster-id"; + String confluentTopic = "fake-confluent-topic-name"; + String identityPoolId = "fake-pool-id"; + // Azure Event Hubs ingestion settings. + String resourceGroup = "fake-resource-group"; + String namespace = "fake-namespace"; + String eventHub = "fake-event-hub"; + String clientId = "11111111-1111-1111-1111-111111111111"; + String tenantId = "22222222-2222-2222-2222-222222222222"; + String subscriptionId = "33333333-3333-3333-3333-333333333333"; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName kinesisIngestionTopicName = TopicName.of(projectId, kinesisIngestionTopicId); private static final TopicName cloudStorageIngestionTopicName = TopicName.of(projectId, cloudStorageIngestionTopicId); + private static final TopicName awsMskIngestionTopicName = + TopicName.of(projectId, awsMskIngestionTopicId); + private static final TopicName confluentCloudIngestionTopicName = + TopicName.of(projectId, confluentCloudIngestionTopicId); + private static final TopicName azureEventHubsIngestionTopicName = + TopicName.of(projectId, azureEventHubsIngestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -361,5 +390,76 @@ public void testAdmin() throws Exception { // Test delete Cloud Storage ingestion topic. DeleteTopicExample.deleteTopicExample(projectId, cloudStorageIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with AWS MSK ingestion settings. + CreateTopicWithAwsMskIngestionExample.createTopicWithAwsMskIngestionExample( + projectId, + awsMskIngestionTopicId, + clusterArn, + mskTopic, + awsRoleArn, + gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + awsMskIngestionTopicName.toString()); + assertThat(bout.toString()).contains(clusterArn); + assertThat(bout.toString()).contains(mskTopic); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete AWS MSK ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, awsMskIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Confluent Cloud ingestion settings. + CreateTopicWithConfluentCloudIngestionExample.createTopicWithConfluentCloudIngestionExample( + projectId, + confluentCloudIngestionTopicId, + bootstrapServer, + clusterId, + confluentTopic, + identityPoolId, + gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + confluentCloudIngestionTopicName.toString()); + assertThat(bout.toString()).contains(bootstrapServer); + assertThat(bout.toString()).contains(clusterId); + assertThat(bout.toString()).contains(confluentTopic); + assertThat(bout.toString()).contains(identityPoolId); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Confluent Cloud ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, confluentCloudIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Azure Event Hubs ingestion settings. + CreateTopicWithAzureEventHubsIngestionExample.createTopicWithAzureEventHubsIngestionExample( + projectId, + azureEventHubsIngestionTopicId, + resourceGroup, + namespace, + eventHub, + clientId, + tenantId, + subscriptionId, + gcpServiceAccount); + assertThat(bout.toString()).contains( + "google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); + assertThat(bout.toString()).contains(resourceGroup); + assertThat(bout.toString()).contains(namespace); + assertThat(bout.toString()).contains(eventHub); + assertThat(bout.toString()).contains(clientId); + assertThat(bout.toString()).contains(tenantId); + assertThat(bout.toString()).contains(subscriptionId); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Azure Event Hubs ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, azureEventHubsIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); } } From e6aa338cb818ea415eebf6873d0c9368bd9f6261 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:36:52 -0500 Subject: [PATCH 389/656] chore: Update generation configuration at Fri Jan 24 02:23:58 UTC 2025 (#2318) * chore: Update generation configuration at Fri Jan 24 02:23:58 UTC 2025 * chore: generate libraries at Fri Jan 24 02:24:33 UTC 2025 --- README.md | 7 +++++-- generation_config.yaml | 2 +- .../CreateTopicWithAwsMskIngestionExample.java | 1 - ...eateTopicWithAzureEventHubsIngestionExample.java | 1 - ...eateTopicWithConfluentCloudIngestionExample.java | 1 - samples/snippets/src/test/java/pubsub/AdminIT.java | 13 ++++--------- 6 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index cb50e4b4e..886e75d37 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.52.0 + 26.53.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.135.0 + 1.136.0 ``` @@ -253,7 +253,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | +| Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | | Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | +| Create Topic With Confluent Cloud Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | diff --git a/generation_config.yaml b/generation_config.yaml index e9de8268f..783ff1ff1 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 1a0e353ac4a372cf7016df4ce0a7d7e609f339b3 +googleapis_commitish: 08e6c4ec008d4a7924d4c507565e6f7da7e0c751 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java index e04b41574..52aed57dd 100644 --- a/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_aws_msk_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java index 29210b792..fb72a3e1d 100644 --- a/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_azure_event_hubs_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java index e222b7ba0..cd27a0ac9 100644 --- a/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_confluent_cloud_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index 23b24f917..accec5126 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -92,7 +92,7 @@ public class AdminIT { private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; // AWS MSK ingestion settings. String clusterArn = - "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; + "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; String mskTopic = "fake-msk-topic-name"; // Confluent Cloud ingestion settings. String bootstrapServer = "fake-bootstrap-server-id.us-south1.gcp.confluent.cloud:9092"; @@ -394,12 +394,7 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with AWS MSK ingestion settings. CreateTopicWithAwsMskIngestionExample.createTopicWithAwsMskIngestionExample( - projectId, - awsMskIngestionTopicId, - clusterArn, - mskTopic, - awsRoleArn, - gcpServiceAccount); + projectId, awsMskIngestionTopicId, clusterArn, mskTopic, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) .contains("google.pubsub.v1.Topic.name=" + awsMskIngestionTopicName.toString()); assertThat(bout.toString()).contains(clusterArn); @@ -447,8 +442,8 @@ public void testAdmin() throws Exception { tenantId, subscriptionId, gcpServiceAccount); - assertThat(bout.toString()).contains( - "google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); assertThat(bout.toString()).contains(resourceGroup); assertThat(bout.toString()).contains(namespace); assertThat(bout.toString()).contains(eventHub); From a82fd98a191ad530ec96dddd90f24fe9fa488d78 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 27 Jan 2025 19:33:52 -0500 Subject: [PATCH 390/656] chore: Update generation configuration at Mon Jan 27 02:24:54 UTC 2025 (#2319) * chore: Update generation configuration at Sat Jan 25 02:20:07 UTC 2025 * chore: Update generation configuration at Mon Jan 27 02:24:54 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 783ff1ff1..2b2635fc1 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 08e6c4ec008d4a7924d4c507565e6f7da7e0c751 +googleapis_commitish: 8798ceff3f6fbcdce3186b67ce9339df337569d5 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From a5fd79a191ed738639ee12e1b762aa339118fcf1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Jan 2025 12:10:31 -0500 Subject: [PATCH 391/656] chore: Update generation configuration at Tue Jan 28 02:23:29 UTC 2025 (#2323) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 2b2635fc1..f51d8f514 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 8798ceff3f6fbcdce3186b67ce9339df337569d5 +googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From 93b9419d210cedeab03f408dab4c74c9fcf18b59 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:10:49 +0100 Subject: [PATCH 392/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.0 (#2322) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fe402f96c..fd1cb78b8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.47.0 + 2.48.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4f05c2960..55ef746a8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.47.0 + 2.48.0 com.google.cloud.opentelemetry From 01dd3deaef392aa51c60d28c1f3cbb81bff2a5cb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:11:51 +0100 Subject: [PATCH 393/656] deps: update googleapis/sdk-platform-java action to v2.52.0 (#2320) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c1be8aca5..f7804e9d0 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 5c40bcd4d401d919b990e6a7d3151660ead76eb0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:12:41 +0100 Subject: [PATCH 394/656] deps: update dependency com.google.cloud:google-cloud-core to v2.50.0 (#2321) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fd1cb78b8..a83475703 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 55ef746a8..bee44b922 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9f6c6bea9..3c7fb6e48 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests From 9c2e9a7955d40de96c59d0a68868d7a03d9ff374 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 12:37:49 -0500 Subject: [PATCH 395/656] chore(main): release 1.136.1-SNAPSHOT (#2314) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d4547c76a..7aed07951 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.0 + 1.136.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8ed207df4..f0ca5e0fe 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index ece04d79c..adba6afda 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0fadcae5f..4ee5da72d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.0 + 1.136.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d3c0ceaaa..1c60344ce 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bee44b922..98341f129 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1cf08e531..01c34839e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.0:1.136.0 -grpc-google-cloud-pubsub-v1:1.118.0:1.118.0 -proto-google-cloud-pubsub-v1:1.118.0:1.118.0 +google-cloud-pubsub:1.136.0:1.136.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT From 84e856250867b2441cceed2315c312bd661c353c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:38:00 +0100 Subject: [PATCH 396/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 (#2324) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index a09089f86..8246ed6b8 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.42.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 9705694f8..b78c82df5 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.42.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index b070666b4..f08c4be3e 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.42.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7aed07951..43a94992b 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.41.1 + 3.42.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 4ee5da72d..cb32b1997 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.41.1 + 3.42.0 From 0d8c8bffc85804d5a64ec0d35893ad9e0062807e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:59:38 -0500 Subject: [PATCH 397/656] chore: Update generation configuration at Tue Jan 28 18:31:09 UTC 2025 (#2327) * chore: Update generation configuration at Tue Jan 28 18:14:49 UTC 2025 * chore: Update generation configuration at Tue Jan 28 18:31:09 UTC 2025 --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index f51d8f514..00bdfd854 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.51.1 -googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9 +gapic_generator_version: 2.52.0 +googleapis_commitish: 0ce8062889f30daa64eed6810e3c124ccd89608f libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From 855653f1ae37c4c45600d2ef0c34e1804939e75a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:30:05 -0500 Subject: [PATCH 398/656] chore(main): release 1.136.1 (#2326) * chore(main): release 1.136.1 * chore: generate libraries at Tue Jan 28 19:00:34 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 25 +++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 46 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3bbf925a..7410bd6c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [1.136.1](https://github.com/googleapis/java-pubsub/compare/v1.136.0...v1.136.1) (2025-01-28) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.52.0 ([0d8c8bf](https://github.com/googleapis/java-pubsub/commit/0d8c8bffc85804d5a64ec0d35893ad9e0062807e)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.46.0 ([#2309](https://github.com/googleapis/java-pubsub/issues/2309)) ([97bd44e](https://github.com/googleapis/java-pubsub/commit/97bd44e04c440320e45c2b4336677d8d266a39a2)) +* Update dependency com.google.cloud:google-cloud-core to v2.49.1 ([#2300](https://github.com/googleapis/java-pubsub/issues/2300)) ([cf2822b](https://github.com/googleapis/java-pubsub/commit/cf2822b7363e13e4730753cbb5ca3510c77f5f55)) +* Update dependency com.google.cloud:google-cloud-core to v2.50.0 ([#2321](https://github.com/googleapis/java-pubsub/issues/2321)) ([5c40bcd](https://github.com/googleapis/java-pubsub/commit/5c40bcd4d401d919b990e6a7d3151660ead76eb0)) +* Update dependency com.google.cloud:google-cloud-storage to v2.47.0 ([#2303](https://github.com/googleapis/java-pubsub/issues/2303)) ([707f842](https://github.com/googleapis/java-pubsub/commit/707f84271559dfe96fa11edffb307df145ceea47)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.0 ([#2322](https://github.com/googleapis/java-pubsub/issues/2322)) ([93b9419](https://github.com/googleapis/java-pubsub/commit/93b9419d210cedeab03f408dab4c74c9fcf18b59)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#2324](https://github.com/googleapis/java-pubsub/issues/2324)) ([84e8562](https://github.com/googleapis/java-pubsub/commit/84e856250867b2441cceed2315c312bd661c353c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.3 ([#2302](https://github.com/googleapis/java-pubsub/issues/2302)) ([9e90e2c](https://github.com/googleapis/java-pubsub/commit/9e90e2ca26b2aea48563859358dde84640eb40d0)) +* Update dependency org.assertj:assertj-core to v3.27.3 ([#2313](https://github.com/googleapis/java-pubsub/issues/2313)) ([5e80b57](https://github.com/googleapis/java-pubsub/commit/5e80b57d2ffd58e6a0bb9f5e0e78bb46d6fe2530)) +* Update googleapis/sdk-platform-java action to v2.52.0 ([#2320](https://github.com/googleapis/java-pubsub/issues/2320)) ([01dd3de](https://github.com/googleapis/java-pubsub/commit/01dd3deaef392aa51c60d28c1f3cbb81bff2a5cb)) + + +### Documentation + +* Add samples and tests for ingestion from Kafka sources ([#2315](https://github.com/googleapis/java-pubsub/issues/2315)) ([eea603b](https://github.com/googleapis/java-pubsub/commit/eea603ba3f05be85d58a69cd5c3469e2088a7446)) + ## [1.136.0](https://github.com/googleapis/java-pubsub/compare/v1.135.0...v1.136.0) (2025-01-10) diff --git a/README.md b/README.md index 886e75d37..8eb21c15b 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.136.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.136.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 43a94992b..ade8e42bd 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.1-SNAPSHOT + 1.136.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index f0ca5e0fe..9f7f28b42 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index adba6afda..69ba89760 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/pom.xml b/pom.xml index cb32b1997..1c0586f8b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.1-SNAPSHOT + 1.136.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 1c60344ce..46274994d 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 98341f129..93d5ba383 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/versions.txt b/versions.txt index 01c34839e..1ca89302a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.0:1.136.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT +google-cloud-pubsub:1.136.1:1.136.1 +grpc-google-cloud-pubsub-v1:1.118.1:1.118.1 +proto-google-cloud-pubsub-v1:1.118.1:1.118.1 From c8a6c5297eba1a9576a1c4253164c9b936322e17 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 18:32:03 +0100 Subject: [PATCH 399/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.136.1 (#2329) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a83475703..a60f6bce4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1 From 3889a05a5c5d7479d3cc6b6dc0b0c425d41efd5d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:32:53 -0500 Subject: [PATCH 400/656] chore: Update generation configuration at Sat Feb 8 02:22:18 UTC 2025 (#2330) * chore: Update generation configuration at Wed Jan 29 02:22:57 UTC 2025 * chore: Update generation configuration at Thu Jan 30 02:22:19 UTC 2025 * chore: Update generation configuration at Fri Jan 31 02:23:28 UTC 2025 * chore: generate libraries at Fri Jan 31 02:24:00 UTC 2025 * chore: Update generation configuration at Mon Feb 3 02:24:21 UTC 2025 * chore: Update generation configuration at Tue Feb 4 02:23:44 UTC 2025 * chore: Update generation configuration at Wed Feb 5 02:24:49 UTC 2025 * chore: generate libraries at Wed Feb 5 02:25:31 UTC 2025 * chore: Update generation configuration at Thu Feb 6 02:25:06 UTC 2025 * chore: Update generation configuration at Fri Feb 7 02:25:37 UTC 2025 * chore: Update generation configuration at Sat Feb 8 02:22:18 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 + .../cloud/pubsub/v1/TopicAdminClient.java | 2 + .../reflect-config.json | 36 + .../SubscriptionAdminClientHttpJsonTest.java | 10 + .../v1/SubscriptionAdminClientTest.java | 8 + .../v1/TopicAdminClientHttpJsonTest.java | 8 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 + .../v1/DeleteSchemaRevisionRequest.java | 14 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/JavaScriptUDF.java | 1015 +++++++++++++++++ .../pubsub/v1/JavaScriptUDFOrBuilder.java | 136 +++ .../google/pubsub/v1/MessageTransform.java | 944 +++++++++++++++ .../pubsub/v1/MessageTransformOrBuilder.java | 86 ++ .../com/google/pubsub/v1/PubsubProto.java | 812 ++++++------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 8 +- .../com/google/pubsub/v1/Subscription.java | 576 +++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 67 ++ .../main/java/com/google/pubsub/v1/Topic.java | 568 +++++++++ .../com/google/pubsub/v1/TopicOrBuilder.java | 67 ++ .../main/proto/google/pubsub/v1/pubsub.proto | 75 +- .../main/proto/google/pubsub/v1/schema.proto | 1 - 25 files changed, 4044 insertions(+), 417 deletions(-) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java diff --git a/README.md b/README.md index 8eb21c15b..e8593c9e8 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.53.0') +implementation platform('com.google.cloud:libraries-bom:26.54.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 00bdfd854..3a2e07ac0 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.52.0 -googleapis_commitish: 0ce8062889f30daa64eed6810e3c124ccd89608f -libraries_bom_version: 26.53.0 +googleapis_commitish: 0a459af4362c0e41b9723dd4d7edc022c552db40 +libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 544f5e247..c18683cf6 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -880,6 +880,7 @@ public final Subscription createSubscription( * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1145,6 +1146,7 @@ public final Subscription createSubscription( * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 28b77c12b..2e635ba43 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -516,6 +516,7 @@ public final Topic createTopic(ProjectTopicName name) { * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -552,6 +553,7 @@ public final Topic createTopic(Topic request) { * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index a818e377d..3c5de9478 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2195,6 +2195,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.JavaScriptUDF", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.JavaScriptUDF$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2465,6 +2483,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.MessageTransform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.MessageTransform$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ModifyAckDeadlineRequest", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 59adc7841..711c8da98 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -49,6 +49,7 @@ import com.google.pubsub.v1.ExpirationPolicy; import com.google.pubsub.v1.ListSnapshotsResponse; import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; @@ -133,6 +134,7 @@ public void createSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -202,6 +204,7 @@ public void createSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -271,6 +274,7 @@ public void createSubscriptionTest3() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -340,6 +344,7 @@ public void createSubscriptionTest4() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -409,6 +414,7 @@ public void getSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -471,6 +477,7 @@ public void getSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -533,6 +540,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -557,6 +565,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -607,6 +616,7 @@ public void updateSubscriptionExceptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 005b32b9c..6df11d0a0 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -59,6 +59,7 @@ import com.google.pubsub.v1.ListSnapshotsResponse; import com.google.pubsub.v1.ListSubscriptionsRequest; import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; @@ -159,6 +160,7 @@ public void createSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -225,6 +227,7 @@ public void createSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -291,6 +294,7 @@ public void createSubscriptionTest3() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -357,6 +361,7 @@ public void createSubscriptionTest4() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -423,6 +428,7 @@ public void getSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -479,6 +485,7 @@ public void getSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -535,6 +542,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index fd1ac7c90..5a1e1e68a 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -50,6 +50,7 @@ import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -117,6 +118,7 @@ public void createTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -168,6 +170,7 @@ public void createTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -219,6 +222,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -232,6 +236,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -271,6 +276,7 @@ public void updateTopicExceptionTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -380,6 +386,7 @@ public void getTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -431,6 +438,7 @@ public void getTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 775b93750..d1e05afde 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -53,6 +53,7 @@ import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; @@ -131,6 +132,7 @@ public void createTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -176,6 +178,7 @@ public void createTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -221,6 +224,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -347,6 +351,7 @@ public void getTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -392,6 +397,7 @@ public void getTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d92256e6f..3d4db9d4c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -142,7 +142,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Override @@ -171,7 +171,7 @@ public java.lang.String getRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Override @@ -699,7 +699,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public java.lang.String getRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @param value The revisionId to set. * @return This builder for chaining. */ @@ -782,7 +782,7 @@ public Builder setRevisionId(java.lang.String value) { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return This builder for chaining. */ @java.lang.Deprecated @@ -805,7 +805,7 @@ public Builder clearRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @param value The bytes for revisionId to set. * @return This builder for chaining. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index b5cf5e110..b8d8f0620 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java new file mode 100644 index 000000000..f5b467deb --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
+ * User-defined JavaScript function that can transform or filter a Pub/Sub
+ * message.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} + */ +public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.JavaScriptUDF) + JavaScriptUDFOrBuilder { + private static final long serialVersionUID = 0L; + // Use JavaScriptUDF.newBuilder() to construct. + private JavaScriptUDF(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JavaScriptUDF() { + functionName_ = ""; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JavaScriptUDF(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.JavaScriptUDF.class, + com.google.pubsub.v1.JavaScriptUDF.Builder.class); + } + + public static final int FUNCTION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object functionName_ = ""; + /** + * + * + *
+   * Required. Name of the JavasScript function that should applied to Pub/Sub
+   * messages.
+   * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + @java.lang.Override + public java.lang.String getFunctionName() { + java.lang.Object ref = functionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + functionName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the JavasScript function that should applied to Pub/Sub
+   * messages.
+   * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFunctionNameBytes() { + java.lang.Object ref = functionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + functionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + * + * + *
+   * Required. JavaScript code that contains a function `function_name` with the
+   * below signature:
+   *
+   * ```
+   *   /**
+   *   * Transforms a Pub/Sub message.
+   *
+   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+   *   * filter a message, return `null`. To transform a message return a map
+   *   * with the following keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (optional) 'attributes' : {Object<string, string>}
+   *   * Returning empty `attributes` will remove all attributes from the
+   *   * message.
+   *   *
+   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+   *   * message. Keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (required) 'attributes' : {Object<string, string>}
+   *   *
+   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+   *   * Keys:
+   *   *   - (required) 'message_id'  : {string}
+   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+   *   *   - (optional) 'ordering_key': {string}
+   *   */
+   *
+   *   function <function_name>(message, metadata) {
+   *   }
+   * ```
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * + * + *
+   * Required. JavaScript code that contains a function `function_name` with the
+   * below signature:
+   *
+   * ```
+   *   /**
+   *   * Transforms a Pub/Sub message.
+   *
+   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+   *   * filter a message, return `null`. To transform a message return a map
+   *   * with the following keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (optional) 'attributes' : {Object<string, string>}
+   *   * Returning empty `attributes` will remove all attributes from the
+   *   * message.
+   *   *
+   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+   *   * message. Keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (required) 'attributes' : {Object<string, string>}
+   *   *
+   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+   *   * Keys:
+   *   *   - (required) 'message_id'  : {string}
+   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+   *   *   - (optional) 'ordering_key': {string}
+   *   */
+   *
+   *   function <function_name>(message, metadata) {
+   *   }
+   * ```
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.JavaScriptUDF)) { + return super.equals(obj); + } + com.google.pubsub.v1.JavaScriptUDF other = (com.google.pubsub.v1.JavaScriptUDF) obj; + + if (!getFunctionName().equals(other.getFunctionName())) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFunctionName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF 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.pubsub.v1.JavaScriptUDF parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF 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.pubsub.v1.JavaScriptUDF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF 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.pubsub.v1.JavaScriptUDF parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF 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.pubsub.v1.JavaScriptUDF 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; + } + /** + * + * + *
+   * User-defined JavaScript function that can transform or filter a Pub/Sub
+   * message.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.JavaScriptUDF) + com.google.pubsub.v1.JavaScriptUDFOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.JavaScriptUDF.class, + com.google.pubsub.v1.JavaScriptUDF.Builder.class); + } + + // Construct using com.google.pubsub.v1.JavaScriptUDF.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + functionName_ = ""; + code_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getDefaultInstanceForType() { + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF build() { + com.google.pubsub.v1.JavaScriptUDF result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF buildPartial() { + com.google.pubsub.v1.JavaScriptUDF result = new com.google.pubsub.v1.JavaScriptUDF(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.JavaScriptUDF result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.functionName_ = functionName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.code_ = code_; + } + } + + @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.pubsub.v1.JavaScriptUDF) { + return mergeFrom((com.google.pubsub.v1.JavaScriptUDF) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.JavaScriptUDF other) { + if (other == com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance()) return this; + if (!other.getFunctionName().isEmpty()) { + functionName_ = other.functionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + functionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object functionName_ = ""; + /** + * + * + *
+     * Required. Name of the JavasScript function that should applied to Pub/Sub
+     * messages.
+     * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + public java.lang.String getFunctionName() { + java.lang.Object ref = functionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + functionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the JavasScript function that should applied to Pub/Sub
+     * messages.
+     * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + public com.google.protobuf.ByteString getFunctionNameBytes() { + java.lang.Object ref = functionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + functionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the JavasScript function that should applied to Pub/Sub
+     * messages.
+     * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The functionName to set. + * @return This builder for chaining. + */ + public Builder setFunctionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + functionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the JavasScript function that should applied to Pub/Sub
+     * messages.
+     * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFunctionName() { + functionName_ = getDefaultInstance().getFunctionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the JavasScript function that should applied to Pub/Sub
+     * messages.
+     * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for functionName to set. + * @return This builder for chaining. + */ + public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + /** + * + * + *
+     * Required. JavaScript code that contains a function `function_name` with the
+     * below signature:
+     *
+     * ```
+     *   /**
+     *   * Transforms a Pub/Sub message.
+     *
+     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+     *   * filter a message, return `null`. To transform a message return a map
+     *   * with the following keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (optional) 'attributes' : {Object<string, string>}
+     *   * Returning empty `attributes` will remove all attributes from the
+     *   * message.
+     *   *
+     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+     *   * message. Keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (required) 'attributes' : {Object<string, string>}
+     *   *
+     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+     *   * Keys:
+     *   *   - (required) 'message_id'  : {string}
+     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+     *   *   - (optional) 'ordering_key': {string}
+     *   */
+     *
+     *   function <function_name>(message, metadata) {
+     *   }
+     * ```
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. JavaScript code that contains a function `function_name` with the
+     * below signature:
+     *
+     * ```
+     *   /**
+     *   * Transforms a Pub/Sub message.
+     *
+     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+     *   * filter a message, return `null`. To transform a message return a map
+     *   * with the following keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (optional) 'attributes' : {Object<string, string>}
+     *   * Returning empty `attributes` will remove all attributes from the
+     *   * message.
+     *   *
+     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+     *   * message. Keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (required) 'attributes' : {Object<string, string>}
+     *   *
+     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+     *   * Keys:
+     *   *   - (required) 'message_id'  : {string}
+     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+     *   *   - (optional) 'ordering_key': {string}
+     *   */
+     *
+     *   function <function_name>(message, metadata) {
+     *   }
+     * ```
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. JavaScript code that contains a function `function_name` with the
+     * below signature:
+     *
+     * ```
+     *   /**
+     *   * Transforms a Pub/Sub message.
+     *
+     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+     *   * filter a message, return `null`. To transform a message return a map
+     *   * with the following keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (optional) 'attributes' : {Object<string, string>}
+     *   * Returning empty `attributes` will remove all attributes from the
+     *   * message.
+     *   *
+     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+     *   * message. Keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (required) 'attributes' : {Object<string, string>}
+     *   *
+     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+     *   * Keys:
+     *   *   - (required) 'message_id'  : {string}
+     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+     *   *   - (optional) 'ordering_key': {string}
+     *   */
+     *
+     *   function <function_name>(message, metadata) {
+     *   }
+     * ```
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. JavaScript code that contains a function `function_name` with the
+     * below signature:
+     *
+     * ```
+     *   /**
+     *   * Transforms a Pub/Sub message.
+     *
+     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+     *   * filter a message, return `null`. To transform a message return a map
+     *   * with the following keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (optional) 'attributes' : {Object<string, string>}
+     *   * Returning empty `attributes` will remove all attributes from the
+     *   * message.
+     *   *
+     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+     *   * message. Keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (required) 'attributes' : {Object<string, string>}
+     *   *
+     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+     *   * Keys:
+     *   *   - (required) 'message_id'  : {string}
+     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+     *   *   - (optional) 'ordering_key': {string}
+     *   */
+     *
+     *   function <function_name>(message, metadata) {
+     *   }
+     * ```
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. JavaScript code that contains a function `function_name` with the
+     * below signature:
+     *
+     * ```
+     *   /**
+     *   * Transforms a Pub/Sub message.
+     *
+     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+     *   * filter a message, return `null`. To transform a message return a map
+     *   * with the following keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (optional) 'attributes' : {Object<string, string>}
+     *   * Returning empty `attributes` will remove all attributes from the
+     *   * message.
+     *   *
+     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+     *   * message. Keys:
+     *   *   - (required) 'data' : {string}
+     *   *   - (required) 'attributes' : {Object<string, string>}
+     *   *
+     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+     *   * Keys:
+     *   *   - (required) 'message_id'  : {string}
+     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+     *   *   - (optional) 'ordering_key': {string}
+     *   */
+     *
+     *   function <function_name>(message, metadata) {
+     *   }
+     * ```
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000002; + 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.pubsub.v1.JavaScriptUDF) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.JavaScriptUDF) + private static final com.google.pubsub.v1.JavaScriptUDF DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.JavaScriptUDF(); + } + + public static com.google.pubsub.v1.JavaScriptUDF getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JavaScriptUDF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java new file mode 100644 index 000000000..2be71ea24 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface JavaScriptUDFOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.JavaScriptUDF) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the JavasScript function that should applied to Pub/Sub
+   * messages.
+   * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + java.lang.String getFunctionName(); + /** + * + * + *
+   * Required. Name of the JavasScript function that should applied to Pub/Sub
+   * messages.
+   * 
+ * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + com.google.protobuf.ByteString getFunctionNameBytes(); + + /** + * + * + *
+   * Required. JavaScript code that contains a function `function_name` with the
+   * below signature:
+   *
+   * ```
+   *   /**
+   *   * Transforms a Pub/Sub message.
+   *
+   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+   *   * filter a message, return `null`. To transform a message return a map
+   *   * with the following keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (optional) 'attributes' : {Object<string, string>}
+   *   * Returning empty `attributes` will remove all attributes from the
+   *   * message.
+   *   *
+   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+   *   * message. Keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (required) 'attributes' : {Object<string, string>}
+   *   *
+   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+   *   * Keys:
+   *   *   - (required) 'message_id'  : {string}
+   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+   *   *   - (optional) 'ordering_key': {string}
+   *   */
+   *
+   *   function <function_name>(message, metadata) {
+   *   }
+   * ```
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + java.lang.String getCode(); + /** + * + * + *
+   * Required. JavaScript code that contains a function `function_name` with the
+   * below signature:
+   *
+   * ```
+   *   /**
+   *   * Transforms a Pub/Sub message.
+   *
+   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
+   *   * filter a message, return `null`. To transform a message return a map
+   *   * with the following keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (optional) 'attributes' : {Object<string, string>}
+   *   * Returning empty `attributes` will remove all attributes from the
+   *   * message.
+   *   *
+   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
+   *   * message. Keys:
+   *   *   - (required) 'data' : {string}
+   *   *   - (required) 'attributes' : {Object<string, string>}
+   *   *
+   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
+   *   * Keys:
+   *   *   - (required) 'message_id'  : {string}
+   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
+   *   *   - (optional) 'ordering_key': {string}
+   *   */
+   *
+   *   function <function_name>(message, metadata) {
+   *   }
+   * ```
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java new file mode 100644 index 000000000..3e077acea --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -0,0 +1,944 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
+ * All supported message transforms types.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.MessageTransform} + */ +public final class MessageTransform extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageTransform) + MessageTransformOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageTransform.newBuilder() to construct. + private MessageTransform(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageTransform() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageTransform(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageTransform.class, + com.google.pubsub.v1.MessageTransform.Builder.class); + } + + private int transformCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object transform_; + + public enum TransformCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + JAVASCRIPT_UDF(2), + TRANSFORM_NOT_SET(0); + private final int value; + + private TransformCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransformCase valueOf(int value) { + return forNumber(value); + } + + public static TransformCase forNumber(int value) { + switch (value) { + case 2: + return JAVASCRIPT_UDF; + case 0: + return TRANSFORM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TransformCase getTransformCase() { + return TransformCase.forNumber(transformCase_); + } + + public static final int JAVASCRIPT_UDF_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + @java.lang.Override + public boolean hasJavascriptUdf() { + return transformCase_ == 2; + } + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + + public static final int ENABLED_FIELD_NUMBER = 3; + private boolean enabled_ = false; + /** + * + * + *
+   * Optional. If set to true, the transform is enabled. If false, the transform
+   * is disabled and will not be applied to messages. Defaults to `true`.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + 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 (transformCase_ == 2) { + output.writeMessage(2, (com.google.pubsub.v1.JavaScriptUDF) transform_); + } + if (enabled_ != false) { + output.writeBool(3, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (transformCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.pubsub.v1.JavaScriptUDF) transform_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.MessageTransform)) { + return super.equals(obj); + } + com.google.pubsub.v1.MessageTransform other = (com.google.pubsub.v1.MessageTransform) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getTransformCase().equals(other.getTransformCase())) return false; + switch (transformCase_) { + case 2: + if (!getJavascriptUdf().equals(other.getJavascriptUdf())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + switch (transformCase_) { + case 2: + hash = (37 * hash) + JAVASCRIPT_UDF_FIELD_NUMBER; + hash = (53 * hash) + getJavascriptUdf().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform 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.pubsub.v1.MessageTransform parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform 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.pubsub.v1.MessageTransform parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform 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.pubsub.v1.MessageTransform parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform 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.pubsub.v1.MessageTransform 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; + } + /** + * + * + *
+   * All supported message transforms types.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.MessageTransform} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageTransform) + com.google.pubsub.v1.MessageTransformOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageTransform.class, + com.google.pubsub.v1.MessageTransform.Builder.class); + } + + // Construct using com.google.pubsub.v1.MessageTransform.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (javascriptUdfBuilder_ != null) { + javascriptUdfBuilder_.clear(); + } + enabled_ = false; + transformCase_ = 0; + transform_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getDefaultInstanceForType() { + return com.google.pubsub.v1.MessageTransform.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform build() { + com.google.pubsub.v1.MessageTransform result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform buildPartial() { + com.google.pubsub.v1.MessageTransform result = + new com.google.pubsub.v1.MessageTransform(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.MessageTransform result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabled_ = enabled_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { + result.transformCase_ = transformCase_; + result.transform_ = this.transform_; + if (transformCase_ == 2 && javascriptUdfBuilder_ != null) { + result.transform_ = javascriptUdfBuilder_.build(); + } + } + + @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.pubsub.v1.MessageTransform) { + return mergeFrom((com.google.pubsub.v1.MessageTransform) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.MessageTransform other) { + if (other == com.google.pubsub.v1.MessageTransform.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + switch (other.getTransformCase()) { + case JAVASCRIPT_UDF: + { + mergeJavascriptUdf(other.getJavascriptUdf()); + break; + } + case TRANSFORM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getJavascriptUdfFieldBuilder().getBuilder(), extensionRegistry); + transformCase_ = 2; + break; + } // case 18 + case 24: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int transformCase_ = 0; + private java.lang.Object transform_; + + public TransformCase getTransformCase() { + return TransformCase.forNumber(transformCase_); + } + + public Builder clearTransform() { + transformCase_ = 0; + transform_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder> + javascriptUdfBuilder_; + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + @java.lang.Override + public boolean hasJavascriptUdf() { + return transformCase_ == 2; + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } else { + if (transformCase_ == 2) { + return javascriptUdfBuilder_.getMessage(); + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { + if (javascriptUdfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transform_ = value; + onChanged(); + } else { + javascriptUdfBuilder_.setMessage(value); + } + transformCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF.Builder builderForValue) { + if (javascriptUdfBuilder_ == null) { + transform_ = builderForValue.build(); + onChanged(); + } else { + javascriptUdfBuilder_.setMessage(builderForValue.build()); + } + transformCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2 + && transform_ != com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance()) { + transform_ = + com.google.pubsub.v1.JavaScriptUDF.newBuilder( + (com.google.pubsub.v1.JavaScriptUDF) transform_) + .mergeFrom(value) + .buildPartial(); + } else { + transform_ = value; + } + onChanged(); + } else { + if (transformCase_ == 2) { + javascriptUdfBuilder_.mergeFrom(value); + } else { + javascriptUdfBuilder_.setMessage(value); + } + } + transformCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearJavascriptUdf() { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2) { + transformCase_ = 0; + transform_ = null; + onChanged(); + } + } else { + if (transformCase_ == 2) { + transformCase_ = 0; + transform_ = null; + } + javascriptUdfBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.JavaScriptUDF.Builder getJavascriptUdfBuilder() { + return getJavascriptUdfFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { + if ((transformCase_ == 2) && (javascriptUdfBuilder_ != null)) { + return javascriptUdfBuilder_.getMessageOrBuilder(); + } else { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+     * are specified on a resource, each must have a unique `function_name`.
+     * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder> + getJavascriptUdfFieldBuilder() { + if (javascriptUdfBuilder_ == null) { + if (!(transformCase_ == 2)) { + transform_ = com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + javascriptUdfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder>( + (com.google.pubsub.v1.JavaScriptUDF) transform_, getParentForChildren(), isClean()); + transform_ = null; + } + transformCase_ = 2; + onChanged(); + return javascriptUdfBuilder_; + } + + private boolean enabled_; + /** + * + * + *
+     * Optional. If set to true, the transform is enabled. If false, the transform
+     * is disabled and will not be applied to messages. Defaults to `true`.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Optional. If set to true, the transform is enabled. If false, the transform
+     * is disabled and will not be applied to messages. Defaults to `true`.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, the transform is enabled. If false, the transform
+     * is disabled and will not be applied to messages. Defaults to `true`.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + enabled_ = false; + 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.pubsub.v1.MessageTransform) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageTransform) + private static final com.google.pubsub.v1.MessageTransform DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageTransform(); + } + + public static com.google.pubsub.v1.MessageTransform getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageTransform parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java new file mode 100644 index 000000000..8744837b1 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface MessageTransformOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageTransform) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + boolean hasJavascriptUdf(); + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf(); + /** + * + * + *
+   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
+   * are specified on a resource, each must have a unique `function_name`.
+   * 
+ * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder(); + + /** + * + * + *
+   * Optional. If set to true, the transform is enabled. If false, the transform
+   * is disabled and will not be applied to messages. Defaults to `true`.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + com.google.pubsub.v1.MessageTransform.TransformCase getTransformCase(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 57f1e97fc..e3124be2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -104,6 +104,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_MessageTransform_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -483,352 +491,362 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" + "(\0132:.google.pubsub.v1.IngestionFailureEv" + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" - + "\t\n\007failure\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" - + "8\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" - + ".LabelsEntryB\003\340A\001\022K\n\026message_storage_pol" - + "icy\030\003 \001(\0132&.google.pubsub.v1.MessageStor" - + "agePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(\tB\003\340A" - + "\001\022>\n\017schema_settings\030\006 \001(\0132 .google.pubs" - + "ub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisfies_p" - + "zs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_durat" - + "ion\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A" - + "\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1.Topi" - + "c.StateB\003\340A\003\022Z\n\036ingestion_data_source_se" - + "ttings\030\n \001(\0132-.google.pubsub.v1.Ingestio" - + "nDataSourceSettingsB\003\340A\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030I" - + "NGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.g" - + "oogleapis.com/Topic\022!projects/{project}/" - + "topics/{topic}\022\017_deleted-topic_\"\200\002\n\rPubs" - + "ubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\nattribut" - + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" - + "e.AttributesEntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001" - + "(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.protob" - + "uf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\032" - + "1\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005topic\030\001" - + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" - + "c\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001(\0132\027" - + ".google.pubsub.v1.TopicB\003\340A\002\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002" - + "\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010mess" - + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" - + "ageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013message_i" - + "ds\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest\022D\n\007p" - + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" - + "er.googleapis.com/Project\022\026\n\tpage_size\030\002" - + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"`\n\022Li" - + "stTopicsResponse\022,\n\006topics\030\001 \003(\0132\027.googl" - + "e.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscriptionsR" - + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" - + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopi" - + "cSubscriptionsResponse\022A\n\rsubscriptions\030" - + "\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "\200\001\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001" - + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" - + "c\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsResponse" - + "\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_to" - + "ken\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicRequest\0222\n\005" - + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\"]\n\031DetachSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\"\034\n\032DetachSubscri" - + "ptionResponse\"\253\n\n\014Subscription\022\021\n\004name\030\001" - + " \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub" - + ".googleapis.com/Topic\0226\n\013push_config\030\004 \001" - + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" - + "\017bigquery_config\030\022 \001(\0132 .google.pubsub.v" - + "1.BigQueryConfigB\003\340A\001\022G\n\024cloud_storage_c" - + "onfig\030\026 \001(\0132$.google.pubsub.v1.CloudStor" - + "ageConfigB\003\340A\001\022!\n\024ack_deadline_seconds\030\005" - + " \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030\007 \001(\010" - + "B\003\340A\001\022B\n\032message_retention_duration\030\010 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\022?\n\006lab" - + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" - + "n.LabelsEntryB\003\340A\001\022$\n\027enable_message_ord" - + "ering\030\n \001(\010B\003\340A\001\022B\n\021expiration_policy\030\013 " - + "\001(\0132\".google.pubsub.v1.ExpirationPolicyB" - + "\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter" - + "_policy\030\r \001(\0132\".google.pubsub.v1.DeadLet" - + "terPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(\0132\035.g" - + "oogle.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n\010deta" - + "ched\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_once_d" - + "elivery\030\020 \001(\010B\003\340A\001\022H\n topic_message_rete" - + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" - + "sub.v1.Subscription.StateB\003\340A\003\022i\n\037analyt" - + "ics_hub_subscription_info\030\027 \001(\0132;.google" - + ".pubsub.v1.Subscription.AnalyticsHubSubs" - + "criptionInfoB\003\340A\003\032O\n\034AnalyticsHubSubscri" - + "ptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014subsc" - + "ription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURC" - + "E_ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Su" - + "bscription\022/projects/{project}/subscript" - + "ions/{subscription}\"\177\n\013RetryPolicy\0227\n\017mi" - + "nimum_backoff\030\001 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001\"V\n\020DeadLett" - + "erPolicy\022\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001" - + "\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020" - + "ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\r" - + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002" - + " \003(\0132,.google.pubsub.v1.PushConfig.Attri" - + "butesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.go" - + "ogle.pubsub.v1.PushConfig.OidcTokenB\003\340A\001" - + "H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google.pubs" - + "ub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n" - + "\nno_wrapper\030\005 \001(\0132&.google.pubsub.v1.Pus" - + "hConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n" - + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n\010aud" - + "ience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoW" - + "rapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\027\n\025authentication_methodB\t\n\007wrapp" - + "er\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A" - + "\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016writ" - + "e_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fi" - + "elds\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google." - + "pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n\020u" - + "se_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_ac" - + "count_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSIO" - + "N_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISM" - + "ATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTRICTIO" - + "N\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucket\030\001 \001" - + "(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" - + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_" - + "datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_confi" - + "g\030\004 \001(\0132/.google.pubsub.v1.CloudStorageC" - + "onfig.TextConfigB\003\340A\001H\000\022K\n\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConf" - + "ig.AvroConfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001" - + "(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n\tma" - + "x_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003" - + "B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1." - + "CloudStorageConfig.StateB\003\340A\003\022\"\n\025service" - + "_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032" - + "H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340" - + "A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025" - + "\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037" - + "IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCH" - + "EMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017Recei" - + "vedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007messa" - + "ge\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessag" - + "eB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" - + "\026GetSubscriptionRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" - + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" - + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030Lis" - + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" - + "age_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscription" - + "sResponse\022:\n\rsubscriptions\030\001 \003(\0132\036.googl" - + "e.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_pa" - + "ge_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptio" - + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\"\223\001\n\027M" - + "odifyPushConfigRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\0226\n\013push_config\030\002 \001(\0132\034.google.p" - + "ubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022!\n\022return_imm" - + "ediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 " - + "\001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_mes" - + "sages\030\001 \003(\0132!.google.pubsub.v1.ReceivedM" - + "essageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " - + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" - + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" - + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024St" - + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_dea" - + "dline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadl" - + "ine_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_dea" - + "dline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 " - + "\001(\tB\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001" - + "(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003" - + "\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021receive" + + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" + + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"u\n\020Me" + + "ssageTransform\022>\n\016javascript_udf\030\002 \001(\0132\037" + + ".google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\024" + + "\n\007enabled\030\003 \001(\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005To" + + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#" + + ".google.pubsub.v1.Topic.LabelsEntryB\003\340A\001" + + "\022K\n\026message_storage_policy\030\003 \001(\0132&.googl" + + "e.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_setti" + + "ngs\030\006 \001(\0132 .google.pubsub.v1.SchemaSetti" + + "ngsB\003\340A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032" + + "message_retention_duration\030\010 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162" + + "\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036i" + + "ngestion_data_source_settings\030\n \001(\0132-.go" + + "ogle.pubsub.v1.IngestionDataSourceSettin" + + "gsB\003\340A\001\022C\n\022message_transforms\030\r \003(\0132\".go" + + "ogle.pubsub.v1.MessageTransformB\003\340A\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" + + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:c\352" + + "A`\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\022\017_deleted-top" + + "ic_*\006topics2\005topic\"\200\002\n\rPubsubMessage\022\021\n\004" + + "data\030\001 \001(\014B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.go" + + "ogle.pubsub.v1.PubsubMessage.AttributesE" + + "ntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish" + + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + + "\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n" + + "\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"w\n\022UpdateTo" + + "picRequest\022+\n\005topic\030\001 \001(\0132\027.google.pubsu" + + "b.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"|\n\016Publish" + + "Request\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.g" + + "oogleapis.com/Topic\0226\n\010messages\030\002 \003(\0132\037." + + "google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n\017P" + + "ublishResponse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001" + + "\"\212\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsRespo" + + "nse\022,\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" + + "opicB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "\204\001\n\035ListTopicSubscriptionsRequest\0222\n\005top" + + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" + + "Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopicSubscription" + + "sResponse\022A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022\034\n\017" + + "next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopic" + + "SnapshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n" + + "\032ListTopicSnapshotsResponse\022\026\n\tsnapshots" + + "\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]\n\031D" + + "etachSubscriptionRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\"\034\n\032DetachSubscriptionResponse" + + "\"\215\013\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005" + + "topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\0226\n\013push_config\030\004 \001(\0132\034.google.p" + + "ubsub.v1.PushConfigB\003\340A\001\022>\n\017bigquery_con" + + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" + + "figB\003\340A\001\022G\n\024cloud_storage_config\030\026 \001(\0132$" + + ".google.pubsub.v1.CloudStorageConfigB\003\340A" + + "\001\022!\n\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025" + + "retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n\032mess" + + "age_retention_duration\030\010 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntry" + + "B\003\340A\001\022$\n\027enable_message_ordering\030\n \001(\010B\003" + + "\340A\001\022B\n\021expiration_policy\030\013 \001(\0132\".google." + + "pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n\006filte" + + "r\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicyB\003\340A" + + "\001\0228\n\014retry_policy\030\016 \001(\0132\035.google.pubsub." + + "v1.RetryPolicyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340" + + "A\001\022)\n\034enable_exactly_once_delivery\030\020 \001(\010" + + "B\003\340A\001\022H\n topic_message_retention_duratio" + + "n\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022" + + "8\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscr" + + "iption.StateB\003\340A\003\022i\n\037analytics_hub_subsc" + + "ription_info\030\027 \001(\0132;.google.pubsub.v1.Su" + + "bscription.AnalyticsHubSubscriptionInfoB" + + "\003\340A\003\022C\n\022message_transforms\030\031 \003(\0132\".googl" + + "e.pubsub.v1.MessageTransformB\003\340A\001\032O\n\034Ana" + + "lyticsHubSubscriptionInfo\022\024\n\007listing\030\001 \001" + + "(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" + + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:u\352Ar\n\"pubsub.g" + + "oogleapis.com/Subscription\022/projects/{pr" + + "oject}/subscriptions/{subscription}*\rsub" + + "scriptions2\014subscription\"\177\n\013RetryPolicy\022" + + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" + + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" + + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" + + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" + + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" + + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." + + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcToken" + + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" + + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" + + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" + + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" + + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" + + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" + + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" + + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" + + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" + + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" + + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" + + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" + + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" + + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" + + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" + + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" + + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" + + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" + + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" + + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" + + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" + + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" + + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" + + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" + + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" + + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" + + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" + + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" + + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" + + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" + + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" + + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" + + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" + + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" + + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" + + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" + + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" + + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" + + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." + + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" + + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\"" + + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022!\n\022retur" + + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" + + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\022f\n\030acknowledge_confirma" - + "tion\030\005 \001(\0132?.google.pubsub.v1.StreamingP" - + "ullResponse.AcknowledgeConfirmationB\003\340A\001" - + "\022t\n modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d" - + "\n\027subscription_properties\030\004 \001(\0132>.google" - + ".pubsub.v1.StreamingPullResponse.Subscri" - + "ptionPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConf" - + "irmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invali" - + "d_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_id" - + "s\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids" - + "\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirma" - + "tion\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ac" - + "k_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack" - + "_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionPropertie" - + "s\022*\n\035exactly_once_delivery_enabled\030\001 \001(\010" - + "B\003\340A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B" - + "\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubs" - + "ub.googleapis.com/Subscription\022H\n\006labels" - + "\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot" - + "Request.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" - + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" - + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005to" - + "pic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com" - + "/Topic\0224\n\013expire_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.g" - + "oogle.pubsub.v1.Snapshot.LabelsEntryB\003\340A" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Sna" - + "pshot\022\'projects/{project}/snapshots/{sna" - + "pshot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot" + + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022\024\n\007ack_i" + + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " + + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" + + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." + + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" + + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" + + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" + + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" + + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" + + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" + + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " + + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" + + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" + + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" + + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" + + "mingPullResponse.AcknowledgeConfirmation" + + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" + + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" + + "Response.ModifyAckDeadlineConfirmationB\003" + + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" + + "oogle.pubsub.v1.StreamingPullResponse.Su" + + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" + + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" + + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" + + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" + + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" + + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" + + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" + + "erties\022*\n\035exactly_once_delivery_enabled\030" + + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" + + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n\006l" + + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" + + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" + + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"\326\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" + + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" + + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" + + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" + + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:a\352A^\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}*\tsnapshots2\010snapshot\"N\n\022GetS" + + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Lis" + + "tSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespons" + + "e\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1." + + "SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot" + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" - + "apshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007proje" - + "ct\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" - + "oogleapis.com/Project\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSn" - + "apshotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.goo" - + "gle.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page" - + "_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotReque" - + "st\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" - + "gleapis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014" - + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022/\n\004time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\001H\000\022:\n\010snaps" - + "hot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com" - + "/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013" - + "\n\tPublisher\022q\n\013CreateTopic\022\027.google.pubs" - + "ub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A" - + "\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics" - + "/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v" - + "1.UpdateTopicRequest\032\027.google.pubsub.v1." - + "Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{" - + "topic.name=projects/*/topics/*}:\001*\022\223\001\n\007P" - + "ublish\022 .google.pubsub.v1.PublishRequest" - + "\032!.google.pubsub.v1.PublishResponse\"C\332A\016" - + "topic,messages\202\323\344\223\002,\"\'/v1/{topic=project" - + "s/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.g" - + "oogle.pubsub.v1.GetTopicRequest\032\027.google" - + ".pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{t" - + "opic=projects/*/topics/*}\022\212\001\n\nListTopics" - + "\022#.google.pubsub.v1.ListTopicsRequest\032$." - + "google.pubsub.v1.ListTopicsResponse\"1\332A\007" - + "project\202\323\344\223\002!\022\037/v1/{project=projects/*}/" - + "topics\022\272\001\n\026ListTopicSubscriptions\022/.goog" - + "le.pubsub.v1.ListTopicSubscriptionsReque" - + "st\0320.google.pubsub.v1.ListTopicSubscript" - + "ionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic" - + "=projects/*/topics/*}/subscriptions\022\252\001\n\022" - + "ListTopicSnapshots\022+.google.pubsub.v1.Li" - + "stTopicSnapshotsRequest\032,.google.pubsub." - + "v1.ListTopicSnapshotsResponse\"9\332A\005topic\202" - + "\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/s" - + "napshots\022|\n\013DeleteTopic\022$.google.pubsub." - + "v1.DeleteTopicRequest\032\026.google.protobuf." - + "Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projec" - + "ts/*/topics/*}\022\255\001\n\022DetachSubscription\022+." - + "google.pubsub.v1.DetachSubscriptionReque", - "st\032,.google.pubsub.v1.DetachSubscription" - + "Response\"<\202\323\344\223\0026\"4/v1/{subscription=proj" - + "ects/*/subscriptions/*}:detach\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsub2\322\025\n\nSubscriber\022" - + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" - + "1.Subscription\032\036.google.pubsub.v1.Subscr" - + "iption\"^\332A+name,topic,push_config,ack_de" - + "adline_seconds\202\323\344\223\002*\032%/v1/{name=projects" - + "/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscripti" - + "on\022(.google.pubsub.v1.GetSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"D\332A" - + "\014subscription\202\323\344\223\002/\022-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\022\273\001\n\022UpdateSub" - + "scription\022+.google.pubsub.v1.UpdateSubsc" - + "riptionRequest\032\036.google.pubsub.v1.Subscr" - + "iption\"X\332A\030subscription,update_mask\202\323\344\223\002" - + "722/v1/{subscription.name=projects/*/sub" - + "scriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*" - + ".google.pubsub.v1.ListSubscriptionsReque" - + "st\032+.google.pubsub.v1.ListSubscriptionsR" - + "esponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=" - + "projects/*}/subscriptions\022\237\001\n\022DeleteSubs" - + "cription\022+.google.pubsub.v1.DeleteSubscr" - + "iptionRequest\032\026.google.protobuf.Empty\"D\332" - + "A\014subscription\202\323\344\223\002/*-/v1/{subscription=" - + "projects/*/subscriptions/*}\022\317\001\n\021ModifyAc" - + "kDeadline\022*.google.pubsub.v1.ModifyAckDe" - + "adlineRequest\032\026.google.protobuf.Empty\"v\332" - + "A)subscription,ack_ids,ack_deadline_seco" - + "nds\202\323\344\223\002D\"?/v1/{subscription=projects/*/" - + "subscriptions/*}:modifyAckDeadline:\001*\022\250\001" - + "\n\013Acknowledge\022$.google.pubsub.v1.Acknowl" - + "edgeRequest\032\026.google.protobuf.Empty\"[\332A\024" - + "subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscri" - + "ption=projects/*/subscriptions/*}:acknow" - + "ledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pul" - + "lRequest\032\036.google.pubsub.v1.PullResponse" - + "\"\210\001\332A,subscription,return_immediately,ma" - + "x_messages\332A\031subscription,max_messages\202\323" - + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" - + "riptions/*}:pull:\001*\022f\n\rStreamingPull\022&.g" - + "oogle.pubsub.v1.StreamingPullRequest\032\'.g" - + "oogle.pubsub.v1.StreamingPullResponse\"\000(" - + "\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub" - + ".v1.ModifyPushConfigRequest\032\026.google.pro" - + "tobuf.Empty\"d\332A\030subscription,push_config" - + "\202\323\344\223\002C\">/v1/{subscription=projects/*/sub" - + "scriptions/*}:modifyPushConfig:\001*\022\211\001\n\013Ge" - + "tSnapshot\022$.google.pubsub.v1.GetSnapshot" - + "Request\032\032.google.pubsub.v1.Snapshot\"8\332A\010" - + "snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*" - + "/snapshots/*}\022\226\001\n\rListSnapshots\022&.google" - + ".pubsub.v1.ListSnapshotsRequest\032\'.google" - + ".pubsub.v1.ListSnapshotsResponse\"4\332A\007pro" - + "ject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" - + "pshots\022\227\001\n\016CreateSnapshot\022\'.google.pubsu" - + "b.v1.CreateSnapshotRequest\032\032.google.pubs" - + "ub.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223" - + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" - + "\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.U" - + "pdateSnapshotRequest\032\032.google.pubsub.v1." - + "Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2" - + "*/v1/{snapshot.name=projects/*/snapshots" - + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu" - + "b.v1.DeleteSnapshotRequest\032\026.google.prot" - + "obuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snap" - + "shot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035." - + "google.pubsub.v1.SeekRequest\032\036.google.pu" - + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:seek" - + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://" - + "www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/pubsubB\252\001" - + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2c" - + "loud.google.com/go/pubsub/apiv1/pubsubpb" - + ";pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026" - + "Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::" - + "PubSub::V1b\006proto3" + + "apshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022/\n\004time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001" + + "\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027." + + "google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/" + + "v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Upd" + + "ateTopic\022$.google.pubsub.v1.UpdateTopicR" + + "equest\032\027.google.pubsub.v1.Topic\"C\332A\021topi" + + "c,update_mask\202\323\344\223\002)2$/v1/{topic.name=pro" + + "jects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .googl" + + "e.pubsub.v1.PublishRequest\032!.google.pubs" + + "ub.v1.PublishResponse\"C\332A\016topic,messages" + + "\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:" + + "publish:\001*\022w\n\010GetTopic\022!.google.pubsub.v" + + "1.GetTopicRequest\032\027.google.pubsub.v1.Top" + + "ic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/" + + "*/topics/*}\022\212\001\n\nListTopics\022#.google.pubs" + + "ub.v1.ListTopicsRequest\032$.google.pubsub." + + "v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\022\272\001\n\026Lis" + + "tTopicSubscriptions\022/.google.pubsub.v1.L" + + "istTopicSubscriptionsRequest\0320.google.pu" + + "bsub.v1.ListTopicSubscriptionsResponse\"=" + + "\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/to", + "pics/*}/subscriptions\022\252\001\n\022ListTopicSnaps" + + "hots\022+.google.pubsub.v1.ListTopicSnapsho" + + "tsRequest\032,.google.pubsub.v1.ListTopicSn" + + "apshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{to" + + "pic=projects/*/topics/*}/snapshots\022|\n\013De" + + "leteTopic\022$.google.pubsub.v1.DeleteTopic" + + "Request\032\026.google.protobuf.Empty\"/\332A\005topi" + + "c\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}" + + "\022\255\001\n\022DetachSubscription\022+.google.pubsub." + + "v1.DetachSubscriptionRequest\032,.google.pu" + + "bsub.v1.DetachSubscriptionResponse\"<\202\323\344\223" + + "\0026\"4/v1/{subscription=projects/*/subscri" + + "ptions/*}:detach\032p\312A\025pubsub.googleapis.c" + + "om\322AUhttps://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/a" + + "uth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubs" + + "cription\022\036.google.pubsub.v1.Subscription" + + "\032\036.google.pubsub.v1.Subscription\"^\332A+nam" + + "e,topic,push_config,ack_deadline_seconds" + + "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptio" + + "ns/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pu" + + "bsub.v1.GetSubscriptionRequest\032\036.google." + + "pubsub.v1.Subscription\"D\332A\014subscription\202" + + "\323\344\223\002/\022-/v1/{subscription=projects/*/subs" + + "criptions/*}\022\273\001\n\022UpdateSubscription\022+.go" + + "ogle.pubsub.v1.UpdateSubscriptionRequest" + + "\032\036.google.pubsub.v1.Subscription\"X\332A\030sub" + + "scription,update_mask\202\323\344\223\002722/v1/{subscr" + + "iption.name=projects/*/subscriptions/*}:" + + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" + + ".v1.ListSubscriptionsRequest\032+.google.pu" + + "bsub.v1.ListSubscriptionsResponse\"8\332A\007pr" + + "oject\202\323\344\223\002(\022&/v1/{project=projects/*}/su" + + "bscriptions\022\237\001\n\022DeleteSubscription\022+.goo" + + "gle.pubsub.v1.DeleteSubscriptionRequest\032" + + "\026.google.protobuf.Empty\"D\332A\014subscription" + + "\202\323\344\223\002/*-/v1/{subscription=projects/*/sub" + + "scriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.go" + + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" + + "\026.google.protobuf.Empty\"v\332A)subscription" + + ",ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1" + + "/{subscription=projects/*/subscriptions/" + + "*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022" + + "$.google.pubsub.v1.AcknowledgeRequest\032\026." + + "google.protobuf.Empty\"[\332A\024subscription,a" + + "ck_ids\202\323\344\223\002>\"9/v1/{subscription=projects" + + "/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004P" + + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" + + "gle.pubsub.v1.PullResponse\"\210\001\332A,subscrip" + + "tion,return_immediately,max_messages\332A\031s" + + "ubscription,max_messages\202\323\344\223\0027\"2/v1/{sub" + + "scription=projects/*/subscriptions/*}:pu" + + "ll:\001*\022f\n\rStreamingPull\022&.google.pubsub.v" + + "1.StreamingPullRequest\032\'.google.pubsub.v" + + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" + + "PushConfig\022).google.pubsub.v1.ModifyPush" + + "ConfigRequest\032\026.google.protobuf.Empty\"d\332" + + "A\030subscription,push_config\202\323\344\223\002C\">/v1/{s" + + "ubscription=projects/*/subscriptions/*}:" + + "modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.go" + + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" + + "le.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'" + + "\022%/v1/{snapshot=projects/*/snapshots/*}\022" + + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" + + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" + + "tSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v" + + "1/{project=projects/*}/snapshots\022\227\001\n\016Cre" + + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=" + + "projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSna" + + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"L\332A\024s" + + "napshot,update_mask\202\323\344\223\002/2*/v1/{snapshot" + + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + + "pshotRequest\032\026.google.protobuf.Empty\"8\332A" + + "\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects/" + + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsubB\247\001\n\024com.google.p" + + "ubsub.v1B\013PubsubProtoP\001Z2cloud.google.co" + + "m/go/pubsub/apiv1/pubsubpb;pubsubpb\252\002\026Go" + + "ogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubS" + + "ub\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1040,7 +1058,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor, + new java.lang.String[] { + "FunctionName", "Code", + }); + internal_static_google_pubsub_v1_MessageTransform_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_MessageTransform_descriptor, + new java.lang.String[] { + "JavascriptUdf", "Enabled", "Transform", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -1054,6 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageRetentionDuration", "State", "IngestionDataSourceSettings", + "MessageTransforms", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -1064,7 +1099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -1080,7 +1115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -1088,7 +1123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -1096,7 +1131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -1104,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -1112,7 +1147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -1120,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -1128,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -1136,7 +1171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -1144,7 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -1152,7 +1187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -1160,7 +1195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -1168,7 +1203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -1176,13 +1211,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -1206,6 +1241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TopicMessageRetentionDuration", "State", "AnalyticsHubSubscriptionInfo", + "MessageTransforms", }); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -1224,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -1232,7 +1268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -1240,7 +1276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -1248,7 +1284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -1292,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -1306,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1339,7 +1375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1347,7 +1383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1355,7 +1391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1363,7 +1399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1371,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1379,7 +1415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1387,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1395,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1403,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1411,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1419,7 +1455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1427,7 +1463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1442,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1477,7 +1513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1493,7 +1529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1501,7 +1537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1517,7 +1553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1525,7 +1561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1533,7 +1569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1541,7 +1577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1549,7 +1585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1557,7 +1593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 0fcf1b660..7345e9613 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 6520bf9bd..0d99d58e5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index debada97a..27f4675b1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -197,11 +197,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "auth/pubsubB\247\001\n\024com.google.pubsub.v1B\013Sc" + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" - + "apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.Clou" - + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" - + "oogle::Cloud::PubSub::V1b\006proto3" + + "apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.P" + + "ubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goog" + + "le::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 423ae5a49..31581f253 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -45,6 +45,7 @@ private Subscription() { topic_ = ""; filter_ = ""; state_ = 0; + messageTransforms_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -308,8 +309,8 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * * *
-   * Information about an associated Analytics Hub subscription
-   * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
+   * Information about an associated [Analytics Hub
+   * subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
    * 
* * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} @@ -636,8 +637,8 @@ protected Builder newBuilderForType( * * *
-     * Information about an associated Analytics Hub subscription
-     * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
+     * Information about an associated [Analytics Hub
+     * subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
      * 
* * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} @@ -2192,6 +2193,92 @@ public boolean hasAnalyticsHubSubscriptionInfo() { : analyticsHubSubscriptionInfo_; } + public static final int MESSAGE_TRANSFORMS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private java.util.List messageTransforms_; + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessageTransformsList() { + return messageTransforms_; + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessageTransformsOrBuilderList() { + return messageTransforms_; + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessageTransformsCount() { + return messageTransforms_.size(); + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + return messageTransforms_.get(index); + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + return messageTransforms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2262,6 +2349,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(23, getAnalyticsHubSubscriptionInfo()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + output.writeMessage(25, messageTransforms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2341,6 +2431,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getAnalyticsHubSubscriptionInfo()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, messageTransforms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2405,6 +2499,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAnalyticsHubSubscriptionInfo().equals(other.getAnalyticsHubSubscriptionInfo())) return false; } + if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2474,6 +2569,10 @@ public int hashCode() { hash = (37 * hash) + ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getAnalyticsHubSubscriptionInfo().hashCode(); } + if (getMessageTransformsCount() > 0) { + hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2646,6 +2745,7 @@ private void maybeForceBuilderInitialization() { getRetryPolicyFieldBuilder(); getTopicMessageRetentionDurationFieldBuilder(); getAnalyticsHubSubscriptionInfoFieldBuilder(); + getMessageTransformsFieldBuilder(); } } @@ -2708,6 +2808,13 @@ public Builder clear() { analyticsHubSubscriptionInfoBuilder_.dispose(); analyticsHubSubscriptionInfoBuilder_ = null; } + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + } else { + messageTransforms_ = null; + messageTransformsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2734,6 +2841,7 @@ public com.google.pubsub.v1.Subscription build() { @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2741,6 +2849,18 @@ public com.google.pubsub.v1.Subscription buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.pubsub.v1.Subscription result) { + if (messageTransformsBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0)) { + messageTransforms_ = java.util.Collections.unmodifiableList(messageTransforms_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.messageTransforms_ = messageTransforms_; + } else { + result.messageTransforms_ = messageTransformsBuilder_.build(); + } + } + private void buildPartial0(com.google.pubsub.v1.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -2937,6 +3057,33 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasAnalyticsHubSubscriptionInfo()) { mergeAnalyticsHubSubscriptionInfo(other.getAnalyticsHubSubscriptionInfo()); } + if (messageTransformsBuilder_ == null) { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransforms_.isEmpty()) { + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureMessageTransformsIsMutable(); + messageTransforms_.addAll(other.messageTransforms_); + } + onChanged(); + } + } else { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransformsBuilder_.isEmpty()) { + messageTransformsBuilder_.dispose(); + messageTransformsBuilder_ = null; + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00080000); + messageTransformsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageTransformsFieldBuilder() + : null; + } else { + messageTransformsBuilder_.addAllMessages(other.messageTransforms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3089,6 +3236,19 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 186 + case 202: + { + com.google.pubsub.v1.MessageTransform m = + input.readMessage( + com.google.pubsub.v1.MessageTransform.parser(), extensionRegistry); + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(m); + } else { + messageTransformsBuilder_.addMessage(m); + } + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6282,6 +6442,414 @@ public Builder clearAnalyticsHubSubscriptionInfo() { return analyticsHubSubscriptionInfoBuilder_; } + private java.util.List messageTransforms_ = + java.util.Collections.emptyList(); + + private void ensureMessageTransformsIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + messageTransforms_ = + new java.util.ArrayList(messageTransforms_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + messageTransformsBuilder_; + + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessageTransformsList() { + if (messageTransformsBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageTransforms_); + } else { + return messageTransformsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessageTransformsCount() { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.size(); + } else { + return messageTransformsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, value); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessageTransforms( + java.lang.Iterable values) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageTransforms_); + onChanged(); + } else { + messageTransformsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransforms() { + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + messageTransformsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.remove(index); + onChanged(); + } else { + messageTransformsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsOrBuilderList() { + if (messageTransformsBuilder_ != null) { + return messageTransformsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageTransforms_); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { + return getMessageTransformsFieldBuilder() + .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages before they are delivered to
+     * subscribers. Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsBuilderList() { + return getMessageTransformsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + getMessageTransformsFieldBuilder() { + if (messageTransformsBuilder_ == null) { + messageTransformsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder>( + messageTransforms_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); + messageTransforms_ = null; + } + return messageTransformsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 46c75a2b5..8e9b3000c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -788,4 +788,71 @@ java.lang.String getLabelsOrDefault( */ com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder getAnalyticsHubSubscriptionInfoOrBuilder(); + + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessageTransformsList(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessageTransformsCount(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessageTransformsOrBuilderList(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages before they are delivered to
+   * subscribers. Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 40872b062..5ee6a0772 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -42,6 +42,7 @@ private Topic() { name_ = ""; kmsKeyName_ = ""; state_ = 0; + messageTransforms_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -771,6 +772,92 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe : ingestionDataSourceSettings_; } + public static final int MESSAGE_TRANSFORMS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List messageTransforms_; + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessageTransformsList() { + return messageTransforms_; + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessageTransformsOrBuilderList() { + return messageTransforms_; + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessageTransformsCount() { + return messageTransforms_.size(); + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + return messageTransforms_.get(index); + } + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + return messageTransforms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -811,6 +898,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getIngestionDataSourceSettings()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + output.writeMessage(13, messageTransforms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -859,6 +949,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getIngestionDataSourceSettings()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, messageTransforms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -896,6 +990,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIngestionDataSourceSettings().equals(other.getIngestionDataSourceSettings())) return false; } + if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -935,6 +1030,10 @@ public int hashCode() { hash = (37 * hash) + INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getIngestionDataSourceSettings().hashCode(); } + if (getMessageTransformsCount() > 0) { + hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1098,6 +1197,7 @@ private void maybeForceBuilderInitialization() { getSchemaSettingsFieldBuilder(); getMessageRetentionDurationFieldBuilder(); getIngestionDataSourceSettingsFieldBuilder(); + getMessageTransformsFieldBuilder(); } } @@ -1130,6 +1230,13 @@ public Builder clear() { ingestionDataSourceSettingsBuilder_.dispose(); ingestionDataSourceSettingsBuilder_ = null; } + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + } else { + messageTransforms_ = null; + messageTransformsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -1155,6 +1262,7 @@ public com.google.pubsub.v1.Topic build() { @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1162,6 +1270,18 @@ public com.google.pubsub.v1.Topic buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.pubsub.v1.Topic result) { + if (messageTransformsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + messageTransforms_ = java.util.Collections.unmodifiableList(messageTransforms_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.messageTransforms_ = messageTransforms_; + } else { + result.messageTransforms_ = messageTransformsBuilder_.build(); + } + } + private void buildPartial0(com.google.pubsub.v1.Topic result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1285,6 +1405,33 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.hasIngestionDataSourceSettings()) { mergeIngestionDataSourceSettings(other.getIngestionDataSourceSettings()); } + if (messageTransformsBuilder_ == null) { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransforms_.isEmpty()) { + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureMessageTransformsIsMutable(); + messageTransforms_.addAll(other.messageTransforms_); + } + onChanged(); + } + } else { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransformsBuilder_.isEmpty()) { + messageTransformsBuilder_.dispose(); + messageTransformsBuilder_ = null; + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00000200); + messageTransformsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageTransformsFieldBuilder() + : null; + } else { + messageTransformsBuilder_.addAllMessages(other.messageTransforms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1374,6 +1521,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 82 + case 106: + { + com.google.pubsub.v1.MessageTransform m = + input.readMessage( + com.google.pubsub.v1.MessageTransform.parser(), extensionRegistry); + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(m); + } else { + messageTransformsBuilder_.addMessage(m); + } + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2876,6 +3036,414 @@ public Builder clearIngestionDataSourceSettings() { return ingestionDataSourceSettingsBuilder_; } + private java.util.List messageTransforms_ = + java.util.Collections.emptyList(); + + private void ensureMessageTransformsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + messageTransforms_ = + new java.util.ArrayList(messageTransforms_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + messageTransformsBuilder_; + + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessageTransformsList() { + if (messageTransformsBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageTransforms_); + } else { + return messageTransformsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessageTransformsCount() { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.size(); + } else { + return messageTransformsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, value); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessageTransforms( + java.lang.Iterable values) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageTransforms_); + onChanged(); + } else { + messageTransformsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransforms() { + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + messageTransformsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.remove(index); + onChanged(); + } else { + messageTransformsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsOrBuilderList() { + if (messageTransformsBuilder_ != null) { + return messageTransformsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageTransforms_); + } + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { + return getMessageTransformsFieldBuilder() + .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Transforms to be applied to messages published to the topic.
+     * Transforms are applied in the order specified.
+     * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsBuilderList() { + return getMessageTransformsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + getMessageTransformsFieldBuilder() { + if (messageTransformsBuilder_ == null) { + messageTransformsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder>( + messageTransforms_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + messageTransforms_ = null; + } + return messageTransformsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 8f58e61bd..3af29ee9f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -388,4 +388,71 @@ java.lang.String getLabelsOrDefault( */ com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder getIngestionDataSourceSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessageTransformsList(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessageTransformsCount(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessageTransformsOrBuilderList(); + /** + * + * + *
+   * Optional. Transforms to be applied to messages published to the topic.
+   * Transforms are applied in the order specified.
+   * 
+ * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 6ed87cbba..b881f8fa3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -26,7 +26,6 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/pubsub/v1/schema.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; @@ -674,12 +673,68 @@ message IngestionFailureEvent { } } +// User-defined JavaScript function that can transform or filter a Pub/Sub +// message. +message JavaScriptUDF { + // Required. Name of the JavasScript function that should applied to Pub/Sub + // messages. + string function_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. JavaScript code that contains a function `function_name` with the + // below signature: + // + // ``` + // /** + // * Transforms a Pub/Sub message. + // + // * @return {(Object)>|null)} - To + // * filter a message, return `null`. To transform a message return a map + // * with the following keys: + // * - (required) 'data' : {string} + // * - (optional) 'attributes' : {Object} + // * Returning empty `attributes` will remove all attributes from the + // * message. + // * + // * @param {(Object)>} Pub/Sub + // * message. Keys: + // * - (required) 'data' : {string} + // * - (required) 'attributes' : {Object} + // * + // * @param {Object} metadata - Pub/Sub message metadata. + // * Keys: + // * - (required) 'message_id' : {string} + // * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + // * - (optional) 'ordering_key': {string} + // */ + // + // function (message, metadata) { + // } + // ``` + string code = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// All supported message transforms types. +message MessageTransform { + // The type of transform to apply to messages. + oneof transform { + // Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's + // are specified on a resource, each must have a unique `function_name`. + JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. If set to true, the transform is enabled. If false, the transform + // is disabled and will not be applied to messages. Defaults to `true`. + bool enabled = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // A topic resource. message Topic { option (google.api.resource) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" pattern: "_deleted-topic_" + plural: "topics" + singular: "topic" }; // The state of the topic. @@ -745,6 +800,11 @@ message Topic { // Optional. Settings for ingestion from a data source into this topic. IngestionDataSourceSettings ingestion_data_source_settings = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Transforms to be applied to messages published to the topic. + // Transforms are applied in the order specified. + repeated MessageTransform message_transforms = 13 + [(google.api.field_behavior) = OPTIONAL]; } // A message that is published by publishers and consumed by subscribers. The @@ -1188,6 +1248,8 @@ message Subscription { option (google.api.resource) = { type: "pubsub.googleapis.com/Subscription" pattern: "projects/{project}/subscriptions/{subscription}" + plural: "subscriptions" + singular: "subscription" }; // Possible states for a subscription. @@ -1204,8 +1266,8 @@ message Subscription { RESOURCE_ERROR = 2; } - // Information about an associated Analytics Hub subscription - // (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). + // Information about an associated [Analytics Hub + // subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). message AnalyticsHubSubscriptionInfo { // Optional. The name of the associated Analytics Hub listing resource. // Pattern: @@ -1371,6 +1433,11 @@ message Subscription { // Only set if the subscritpion is created by Analytics Hub. AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Transforms to be applied to messages before they are delivered to + // subscribers. Transforms are applied in the order specified. + repeated MessageTransform message_transforms = 25 + [(google.api.field_behavior) = OPTIONAL]; } // A policy that specifies how Pub/Sub retries message delivery. @@ -2109,6 +2176,8 @@ message Snapshot { option (google.api.resource) = { type: "pubsub.googleapis.com/Snapshot" pattern: "projects/{project}/snapshots/{snapshot}" + plural: "snapshots" + singular: "snapshot" }; // Optional. The name of the snapshot. diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index d52c678c5..81d56bd7f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -23,7 +23,6 @@ import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; From 51ea70c11720f66aa807ae6528dd6c0abc322d9f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:46:28 +0100 Subject: [PATCH 401/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.54.0 (#2333) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3c7fb6e48..5abef1c1d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.53.0 + 26.54.0 pom import From 23fd7a8f4ab2438b72f3a6da5613f5deb0ac307e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:47:00 +0100 Subject: [PATCH 402/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.1 (#2332) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a60f6bce4..08d5eb120 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.0 + 2.48.1 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 93d5ba383..c06e5a2a8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.0 + 2.48.1 com.google.cloud.opentelemetry From 216feef976595cd03e282f8d8effa2ac8430c419 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:47:11 +0100 Subject: [PATCH 403/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.47.0 (#2331) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 08d5eb120..55a6b2110 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.46.0 + 2.47.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c06e5a2a8..579fc3536 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.46.0 + 2.47.0 com.google.cloud From cc68952c2732d89e82e2490bc24202fa86fe604b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:16:21 -0500 Subject: [PATCH 404/656] chore: Update generation configuration at Tue Feb 11 02:25:56 UTC 2025 (#2337) * chore: Update generation configuration at Tue Feb 11 02:25:56 UTC 2025 * chore: generate libraries at Tue Feb 11 02:26:32 UTC 2025 --- README.md | 4 ++-- generation_config.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e8593c9e8..073bb5be9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.53.0 + 26.54.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 3a2e07ac0..c837895bd 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.52.0 -googleapis_commitish: 0a459af4362c0e41b9723dd4d7edc022c552db40 +googleapis_commitish: 04132de0b952ee921d91a2583915dbd82d10cd3c libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub From b952e5826748bc680936a79b14d75f5873e6db06 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:33:26 -0500 Subject: [PATCH 405/656] chore: Update generation configuration at Wed Feb 12 02:25:06 UTC 2025 (#2339) --- .github/workflows/hermetic_library_generation.yaml | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index f7804e9d0..545f19048 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.53.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index c837895bd..3fd390919 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.52.0 -googleapis_commitish: 04132de0b952ee921d91a2583915dbd82d10cd3c +gapic_generator_version: 2.53.0 +googleapis_commitish: 9605bff3d36fbdb1227b26bce68258c5f00815e4 libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub From 5e27af5b854b8599192bc63acdaea9a14a725343 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:47:15 -0500 Subject: [PATCH 406/656] chore(main): release 1.136.2-SNAPSHOT (#2328) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ade8e42bd..d745d15a2 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.1 + 1.136.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 9f7f28b42..da235f9cc 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 69ba89760..c5f62dccb 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 1c0586f8b..809b197fc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.1 + 1.136.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 46274994d..5aea8a9be 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 579fc3536..ef666f38e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1ca89302a..b8cf788fd 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.1:1.136.1 -grpc-google-cloud-pubsub-v1:1.118.1:1.118.1 -proto-google-cloud-pubsub-v1:1.118.1:1.118.1 +google-cloud-pubsub:1.136.1:1.136.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT From ac2403ecd21aad0d44c5b06fce2853f9a433adbd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:44:16 +0100 Subject: [PATCH 407/656] deps: update dependency com.google.cloud:google-cloud-core to v2.51.0 (#2338) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 55a6b2110..0cdfb0725 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ef666f38e..fcd740630 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5abef1c1d..cfeb91d80 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests From 996f4ebdfa6b5cb38dbe37d4be981ca7d941bc0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:49:30 +0100 Subject: [PATCH 408/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 (#2336) * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 * add junit native config * move test config to proper folder --------- Co-authored-by: diegomarquezp --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- .../google-cloud-pubsub/native-image.properties | 1 + pom.xml | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 8246ed6b8..1cd399cd5 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.42.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.43.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index b78c82df5..8d3f11dc4 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.42.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.43.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index f08c4be3e..f78bafd26 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.42.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.43.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d745d15a2..8292221c6 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.42.0 + 3.43.0 Google Cloud pubsub BOM diff --git a/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties b/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties new file mode 100644 index 000000000..d8c1957d8 --- /dev/null +++ b/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties @@ -0,0 +1 @@ +Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField diff --git a/pom.xml b/pom.xml index 809b197fc..9ed2af97a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.42.0 + 3.43.0 From eeb99a997fa2e7154dcc228b964ff47867738122 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:57:06 +0100 Subject: [PATCH 409/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.2 (#2341) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0cdfb0725..317b00166 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.1 + 2.48.2 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fcd740630..37d9987ae 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.1 + 2.48.2 com.google.cloud.opentelemetry From 609a6a66e688e4441858be7952e366924e50b886 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 00:07:57 -0500 Subject: [PATCH 410/656] chore(main): release 1.137.0 (#2340) * chore(main): release 1.137.0 * chore: generate libraries at Wed Feb 12 21:57:56 UTC 2025 * Revert "chore: generate libraries at Wed Feb 12 21:57:56 UTC 2025" This reverts commit 27bb6ba4743a540d119a9439d362a6e836a1bc93. * chore: generate libraries at Wed Feb 12 22:31:24 UTC 2025 * preserve test native-image config * restore test-scoped native-image.properties --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot Co-authored-by: Lawrence Qiu Co-authored-by: Diego Marquez --- .github/.OwlBot-hermetic.yaml | 3 +++ CHANGELOG.md | 26 +++++++++++++++++++ README.md | 6 ++--- google-cloud-pubsub-bom/pom.xml | 8 +++--- google-cloud-pubsub/pom.xml | 4 +-- .../native-image.properties | 2 +- grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- pom.xml | 8 +++--- proto-google-cloud-pubsub-v1/pom.xml | 4 +-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 ++--- 11 files changed, 51 insertions(+), 22 deletions(-) diff --git a/.github/.OwlBot-hermetic.yaml b/.github/.OwlBot-hermetic.yaml index 8a75909c6..219163820 100644 --- a/.github/.OwlBot-hermetic.yaml +++ b/.github/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/proto-google-.*/src" - "/google-.*/src" +#Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField deep-preserve-regex: +- "/google-cloud-pubsub/src/test/resources/META-INF/native-image/.*" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" diff --git a/CHANGELOG.md b/CHANGELOG.md index 7410bd6c2..c563c2077 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [1.137.0](https://github.com/googleapis/java-pubsub/compare/v1.136.1...v1.137.0) (2025-02-12) + + +### Features + +* Add support for message transforms to Topic and Subscription ([3889a05](https://github.com/googleapis/java-pubsub/commit/3889a05a5c5d7479d3cc6b6dc0b0c425d41efd5d)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.53.0 ([b952e58](https://github.com/googleapis/java-pubsub/commit/b952e5826748bc680936a79b14d75f5873e6db06)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.47.0 ([#2331](https://github.com/googleapis/java-pubsub/issues/2331)) ([216feef](https://github.com/googleapis/java-pubsub/commit/216feef976595cd03e282f8d8effa2ac8430c419)) +* Update dependency com.google.cloud:google-cloud-core to v2.51.0 ([#2338](https://github.com/googleapis/java-pubsub/issues/2338)) ([ac2403e](https://github.com/googleapis/java-pubsub/commit/ac2403ecd21aad0d44c5b06fce2853f9a433adbd)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.1 ([#2332](https://github.com/googleapis/java-pubsub/issues/2332)) ([23fd7a8](https://github.com/googleapis/java-pubsub/commit/23fd7a8f4ab2438b72f3a6da5613f5deb0ac307e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.2 ([#2341](https://github.com/googleapis/java-pubsub/issues/2341)) ([eeb99a9](https://github.com/googleapis/java-pubsub/commit/eeb99a997fa2e7154dcc228b964ff47867738122)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 ([#2336](https://github.com/googleapis/java-pubsub/issues/2336)) ([996f4eb](https://github.com/googleapis/java-pubsub/commit/996f4ebdfa6b5cb38dbe37d4be981ca7d941bc0d)) + + +### Documentation + +* A comment for field `code` in message `.google.pubsub.v1.JavaScriptUDF` is changed ([3889a05](https://github.com/googleapis/java-pubsub/commit/3889a05a5c5d7479d3cc6b6dc0b0c425d41efd5d)) + ## [1.136.1](https://github.com/googleapis/java-pubsub/compare/v1.136.0...v1.136.1) (2025-01-28) diff --git a/README.md b/README.md index 073bb5be9..93dd1bcd2 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.136.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.137.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 8292221c6..730f031db 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.2-SNAPSHOT + 1.137.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index da235f9cc..6a6a0084e 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 google-cloud-pubsub diff --git a/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties b/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties index d8c1957d8..b77dd433a 100644 --- a/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties +++ b/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties @@ -1 +1 @@ -Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField +Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField \ No newline at end of file diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c5f62dccb..be2875fd6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/pom.xml b/pom.xml index 9ed2af97a..273de05c0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.2-SNAPSHOT + 1.137.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 5aea8a9be..dbcae7026 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 37d9987ae..beebedca8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/versions.txt b/versions.txt index b8cf788fd..1c85bc926 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.1:1.136.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT +google-cloud-pubsub:1.137.0:1.137.0 +grpc-google-cloud-pubsub-v1:1.119.0:1.119.0 +proto-google-cloud-pubsub-v1:1.119.0:1.119.0 From 061c6e1910e1a1d75ebead84db261a0b385cd6c7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Feb 2025 19:43:01 +0100 Subject: [PATCH 411/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.137.0 (#2345) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 317b00166..ed1a7a096 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.137.0 From 3bbd7e1e812a7a00cfff36a0c1d8a5212d4e134a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Feb 2025 19:43:22 +0100 Subject: [PATCH 412/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.48.0 (#2343) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ed1a7a096..63a5c00da 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.47.0 + 2.48.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index beebedca8..be84ca52d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.47.0 + 2.48.0 com.google.cloud From d1f5c075311f726b9ddf9c4acaa93240c1d510df Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:16:44 -0500 Subject: [PATCH 413/656] chore(main): release 1.137.1-SNAPSHOT (#2344) * chore(main): release 1.137.1-SNAPSHOT * chore: generate libraries at Thu Feb 20 18:44:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 93dd1bcd2..07ac80c10 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.136.1 + 1.137.0 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 730f031db..273bcfe05 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.0 + 1.137.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 6a6a0084e..7c837cd29 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index be2875fd6..a82607eb7 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 273de05c0..f2d3e90ab 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.0 + 1.137.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index dbcae7026..00effa24f 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index be84ca52d..19eae3266 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1c85bc926..c13a1dca3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.0:1.137.0 -grpc-google-cloud-pubsub-v1:1.119.0:1.119.0 -proto-google-cloud-pubsub-v1:1.119.0:1.119.0 +google-cloud-pubsub:1.137.0:1.137.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT From 90ed10b474f7a59286365d8a6ad676d9a4f4113b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:07 +0100 Subject: [PATCH 414/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 (#2349) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 1cd399cd5..8e7b59489 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.43.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.44.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 8d3f11dc4..728751d04 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.43.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.44.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index f78bafd26..39151469c 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.43.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.44.0" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 273bcfe05..955cb3bf5 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.43.0 + 3.44.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index f2d3e90ab..52784cc21 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.43.0 + 3.44.0 From ac8db2dda6cd5f0bdf689052bb37cb2eaab08c46 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:39 +0100 Subject: [PATCH 415/656] deps: update googleapis/sdk-platform-java action to v2.54.0 (#2347) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 545f19048..5ad2a254b 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.53.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.54.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From f0977b40479823ce5b7e90f864261f11115610ca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:56 +0100 Subject: [PATCH 416/656] deps: update dependency com.google.cloud:google-cloud-core to v2.52.0 (#2348) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 63a5c00da..7dead4d2f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 19eae3266..c48ba74b4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cfeb91d80..89af0b032 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests From 16f7fd85338b76d619d31ffc158dfa2c60376db3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:38:16 +0100 Subject: [PATCH 417/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.55.0 (#2346) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 89af0b032..a2bc750b5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.54.0 + 26.55.0 pom import From ccf670f9dc755770d40b9d1bf2c870c0452aa39e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:52:34 -0500 Subject: [PATCH 418/656] chore: Update generation configuration at Wed Feb 26 15:38:51 UTC 2025 (#2351) * chore: Update generation configuration at Wed Feb 26 15:38:51 UTC 2025 * chore: generate libraries at Wed Feb 26 15:39:23 UTC 2025 --- README.md | 4 ++-- generation_config.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 07ac80c10..a3e8dcf75 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.54.0 + 26.55.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.54.0') +implementation platform('com.google.cloud:libraries-bom:26.55.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 3fd390919..8f1735df2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.53.0 -googleapis_commitish: 9605bff3d36fbdb1227b26bce68258c5f00815e4 -libraries_bom_version: 26.54.0 +gapic_generator_version: 2.54.0 +googleapis_commitish: 4c84e9b22958827a02b761703d6fb431bc101adc +libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 7c6c35b41e45dad0e50dee3de0742ec4acf369cb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:21:36 -0500 Subject: [PATCH 419/656] chore(main): release 1.137.1 (#2350) * chore(main): release 1.137.1 * chore: generate libraries at Wed Feb 26 15:53:24 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 15 +++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 36 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c563c2077..21c22019d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.137.1](https://github.com/googleapis/java-pubsub/compare/v1.137.0...v1.137.1) (2025-02-26) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.54.0 ([ccf670f](https://github.com/googleapis/java-pubsub/commit/ccf670f9dc755770d40b9d1bf2c870c0452aa39e)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.48.0 ([#2343](https://github.com/googleapis/java-pubsub/issues/2343)) ([3bbd7e1](https://github.com/googleapis/java-pubsub/commit/3bbd7e1e812a7a00cfff36a0c1d8a5212d4e134a)) +* Update dependency com.google.cloud:google-cloud-core to v2.52.0 ([#2348](https://github.com/googleapis/java-pubsub/issues/2348)) ([f0977b4](https://github.com/googleapis/java-pubsub/commit/f0977b40479823ce5b7e90f864261f11115610ca)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 ([#2349](https://github.com/googleapis/java-pubsub/issues/2349)) ([90ed10b](https://github.com/googleapis/java-pubsub/commit/90ed10b474f7a59286365d8a6ad676d9a4f4113b)) +* Update googleapis/sdk-platform-java action to v2.54.0 ([#2347](https://github.com/googleapis/java-pubsub/issues/2347)) ([ac8db2d](https://github.com/googleapis/java-pubsub/commit/ac8db2dda6cd5f0bdf689052bb37cb2eaab08c46)) + ## [1.137.0](https://github.com/googleapis/java-pubsub/compare/v1.136.1...v1.137.0) (2025-02-12) diff --git a/README.md b/README.md index a3e8dcf75..c9dd8fc95 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.137.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.137.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 955cb3bf5..fb07ca707 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.1-SNAPSHOT + 1.137.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 7c837cd29..1364c0662 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index a82607eb7..c61be81f2 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/pom.xml b/pom.xml index 52784cc21..ce489f906 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.1-SNAPSHOT + 1.137.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 00effa24f..30eb3b0a2 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c48ba74b4..3ba048eda 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/versions.txt b/versions.txt index c13a1dca3..b19d254bd 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.0:1.137.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT +google-cloud-pubsub:1.137.1:1.137.1 +grpc-google-cloud-pubsub-v1:1.119.1:1.119.1 +proto-google-cloud-pubsub-v1:1.119.1:1.119.1 From 0774019e5d32b834d3e35860dedd7ad325a3b0a4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 27 Feb 2025 10:18:50 -0500 Subject: [PATCH 420/656] chore: Update generation configuration at Thu Feb 27 02:27:53 UTC 2025 (#2355) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 8f1735df2..3200b796d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.54.0 -googleapis_commitish: 4c84e9b22958827a02b761703d6fb431bc101adc +googleapis_commitish: 554575ee8d01d277344ec704e0561e9abc7f57f3 libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub From 81d34352d332ee9c4935e7908b6b9a2383d3a8ba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Feb 2025 18:27:08 +0100 Subject: [PATCH 421/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.49.0 (#2358) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7dead4d2f..e102f2278 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.2 + 2.49.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3ba048eda..88bfd3f74 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.2 + 2.49.0 com.google.cloud.opentelemetry From 7d3d2e4690539ebbe7ab521c2c345b06cba766ea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Feb 2025 18:27:23 +0100 Subject: [PATCH 422/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.48.1 (#2356) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e102f2278..5e179771e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.48.0 + 2.48.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 88bfd3f74..76112f520 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.48.0 + 2.48.1 com.google.cloud From 07b135001b4726c9bafafe90c80d369f25f04956 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 27 Feb 2025 15:00:22 -0500 Subject: [PATCH 423/656] fix: Prevent excessive string parsing when publishing and receiving messages to improve performance (#2317) * docs: Add samples and tests for ingestion from Kafka sources * docs: Styles fixes for samples/tests * fix: Prevent excessive string parsing when publishing and receiving messages to improve performance * test: Fix test to use proper subscription name * test: Fix MessageDispatcherTest * test: Add subscription name to all required builders in MessageDispatcherTest * fix: Fix formatting of test files * fix: Use TopicName instead of String for startPublishRpcSpan * fix: Use SubscriptionName instead of String for startSubscriberRpcSpan * fix: Removed unused subscriptionName string --- .../cloud/pubsub/v1/MessageDispatcher.java | 7 ++-- .../pubsub/v1/OpenTelemetryPubsubTracer.java | 6 +-- .../com/google/cloud/pubsub/v1/Publisher.java | 6 ++- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 20 ++-------- .../v1/StreamingSubscriberConnection.java | 8 +++- .../pubsub/v1/MessageDispatcherTest.java | 7 ++++ .../cloud/pubsub/v1/OpenTelemetryTest.java | 39 ++++++++----------- .../v1/StreamingSubscriberConnectionTest.java | 3 +- 8 files changed, 45 insertions(+), 51 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 7112d4c02..34ef312f3 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,6 +28,7 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.SubscriptionName; import java.time.Duration; import java.time.Instant; import java.time.temporal.ChronoUnit; @@ -104,7 +105,7 @@ class MessageDispatcher { // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; - private final String subscriptionName; + private final SubscriptionName subscriptionNameObject; private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); @@ -225,7 +226,7 @@ private MessageDispatcher(Builder builder) { messagesWaiter = new Waiter(); sequentialExecutor = new SequentialExecutorService.AutoExecutor(builder.executor); - subscriptionName = builder.subscriptionName; + subscriptionNameObject = SubscriptionName.parse(builder.subscriptionName); enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; if (builder.tracer != null) { tracer = builder.tracer; @@ -408,7 +409,7 @@ void processReceivedMessages(List messages) { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( message.getMessage(), - subscriptionName, + subscriptionNameObject, message.getAckId(), message.getDeliveryAttempt()) .build(); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java index b946f44bf..9ee751135 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -172,11 +172,10 @@ void endPublishBatchingSpan(PubsubMessageWrapper message) { * Creates, starts, and returns a publish RPC span for the given message batch. Bi-directional * links with the publisher parent span are created for sampled messages in the batch. */ - Span startPublishRpcSpan(String topic, List messages) { + Span startPublishRpcSpan(TopicName topicName, List messages) { if (!enabled) { return null; } - TopicName topicName = TopicName.parse(topic); Attributes attributes = createCommonSpanAttributesBuilder( topicName.getTopic(), topicName.getProject(), "publishCall", "publish") @@ -359,7 +358,7 @@ void endSubscribeProcessSpan(PubsubMessageWrapper message, String action) { * to parent subscribe span for sampled messages are added. */ Span startSubscribeRpcSpan( - String subscription, + SubscriptionName subscriptionName, String rpcOperation, List messages, int ackDeadline, @@ -368,7 +367,6 @@ Span startSubscribeRpcSpan( return null; } String codeFunction = rpcOperation == "ack" ? "sendAckOperations" : "sendModAckOperations"; - SubscriptionName subscriptionName = SubscriptionName.parse(subscription); AttributesBuilder attributesBuilder = createCommonSpanAttributesBuilder( subscriptionName.getSubscription(), diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index af7a57471..113cbf932 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -101,6 +101,7 @@ public class Publisher implements PublisherInterface { private final String topicName; private final int topicNameSize; + private final TopicName topicNameObject; private final BatchingSettings batchingSettings; private final boolean enableMessageOrdering; @@ -149,6 +150,7 @@ private Publisher(Builder builder) throws IOException { topicName = builder.topicName; topicNameSize = CodedOutputStream.computeStringSize(PublishRequest.TOPIC_FIELD_NUMBER, this.topicName); + topicNameObject = TopicName.parse(this.topicName); this.batchingSettings = builder.batchingSettings; FlowControlSettings flowControl = this.batchingSettings.getFlowControlSettings(); @@ -282,7 +284,7 @@ public ApiFuture publish(PubsubMessage message) { + "setEnableMessageOrdering(true) in the builder."); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicName).build(); + PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicNameObject).build(); tracer.startPublisherSpan(messageWrapper); final OutstandingPublish outstandingPublish = new OutstandingPublish(messageWrapper); @@ -490,7 +492,7 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch pubsubMessagesList.add(messageWrapper.getPubsubMessage()); } - outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicName, messageWrappers); + outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicNameObject, messageWrappers); return publisherStub .publishCallable() diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 94fd13085..839eecf91 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -73,12 +73,12 @@ private PubsubMessageWrapper(Builder builder) { this.deliveryAttempt = builder.deliveryAttempt; } - static Builder newBuilder(PubsubMessage message, String topicName) { + static Builder newBuilder(PubsubMessage message, TopicName topicName) { return new Builder(message, topicName); } static Builder newBuilder( - PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + PubsubMessage message, SubscriptionName subscriptionName, String ackId, int deliveryAttempt) { return new Builder(message, subscriptionName, ackId, deliveryAttempt); } @@ -395,21 +395,9 @@ static final class Builder { private String ackId = null; private int deliveryAttempt = 0; - public Builder(PubsubMessage message, String topicName) { + public Builder(PubsubMessage message, TopicName topicName) { this.message = message; - if (topicName != null) { - this.topicName = TopicName.parse(topicName); - } - } - - public Builder( - PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { - this.message = message; - if (subscriptionName != null) { - this.subscriptionName = SubscriptionName.parse(subscriptionName); - } - this.ackId = ackId; - this.deliveryAttempt = deliveryAttempt; + this.topicName = topicName; } public Builder( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 3ad124f80..80ff2b4e1 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -47,6 +47,7 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriptionName; import com.google.rpc.ErrorInfo; import io.grpc.Status; import io.grpc.protobuf.StatusProto; @@ -94,6 +95,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final SubscriberStub subscriberStub; private final int channelAffinity; private final String subscription; + private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; private final MessageDispatcher messageDispatcher; @@ -124,6 +126,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; + subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; // We need to set the default stream ack deadline on the initial request, this will be @@ -454,7 +457,8 @@ private void sendAckOperations( } } // Creates an Ack span to be passed to the callback - Span rpcSpan = tracer.startSubscribeRpcSpan(subscription, "ack", messagesInRequest, 0, false); + Span rpcSpan = + tracer.startSubscribeRpcSpan(subscriptionNameObject, "ack", messagesInRequest, 0, false); ApiFutureCallback callback = getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis, rpcSpan); ApiFuture ackFuture = @@ -493,7 +497,7 @@ private void sendModackOperations( // Creates either a ModAck span or a Nack span depending on the given ack deadline Span rpcSpan = tracer.startSubscribeRpcSpan( - subscription, + subscriptionNameObject, rpcOperation, messagesInRequest, deadlineExtensionSeconds, diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index bd3dccccf..1de156939 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -35,6 +35,8 @@ import org.mockito.stubbing.Answer; public class MessageDispatcherTest { + private static final String MOCK_SUBSCRIPTION_NAME = + "projects/MOCK-PROJECT/subscriptions/MOCK-SUBSCRIPTION"; private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); private static final int DELIVERY_INFO_COUNT = 3; private static final String ACK_ID = "ACK-ID"; @@ -462,6 +464,7 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -494,6 +497,7 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryEnabledThenDisabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // This would normally be set from the streaming pull response in the @@ -605,6 +609,7 @@ public void testAckExtensionCustomMinExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(false) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -634,6 +639,7 @@ public void testAckExtensionCustomMaxExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Duration.ofSeconds(customMaxSeconds)) .setMaxDurationPerAckExtensionDefaultUsed(false) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -704,6 +710,7 @@ private MessageDispatcher getMessageDispatcherFromBuilder( .setAckLatencyDistribution(mock(Distribution.class)) .setFlowController(mock(FlowController.class)) .setExecutor(executor) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .setSystemExecutor(systemExecutor) .setApiClock(clock) .build(); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java index b4433f41e..2297f84bf 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -104,7 +104,7 @@ public void testPublishSpansSuccess() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); List messageWrappers = Arrays.asList(messageWrapper); long messageSize = messageWrapper.getPubsubMessage().getData().size(); @@ -117,7 +117,7 @@ public void testPublishSpansSuccess() { tracer.endPublishFlowControlSpan(messageWrapper); tracer.startPublishBatchingSpan(messageWrapper); tracer.endPublishBatchingSpan(messageWrapper); - Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME, messageWrappers); tracer.endPublishRpcSpan(publishRpcSpan); tracer.setPublisherMessageIdSpanAttribute(messageWrapper, MESSAGE_ID); tracer.endPublisherSpan(messageWrapper); @@ -218,7 +218,7 @@ public void testPublishFlowControlSpanFailure() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); @@ -258,14 +258,14 @@ public void testPublishRpcSpanFailure() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); List messageWrappers = Arrays.asList(messageWrapper); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); tracer.startPublisherSpan(messageWrapper); - Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME, messageWrappers); Exception e = new Exception("test-exception"); tracer.setPublishRpcSpanException(publishRpcSpan, e); @@ -302,7 +302,7 @@ public void testSubscribeSpansSuccess() { OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); PubsubMessageWrapper publishMessageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); // Initialize the Publisher span to inject the context in the message tracer.startPublisherSpan(publishMessageWrapper); tracer.endPublisherSpan(publishMessageWrapper); @@ -310,8 +310,7 @@ public void testSubscribeSpansSuccess() { PubsubMessage publishedMessage = publishMessageWrapper.getPubsubMessage().toBuilder().setMessageId(MESSAGE_ID).build(); PubsubMessageWrapper subscribeMessageWrapper = - PubsubMessageWrapper.newBuilder( - publishedMessage, FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, 1) + PubsubMessageWrapper.newBuilder(publishedMessage, FULL_SUBSCRIPTION_NAME, ACK_ID, 1) .build(); List subscribeMessageWrappers = Arrays.asList(subscribeMessageWrapper); @@ -327,21 +326,17 @@ public void testSubscribeSpansSuccess() { tracer.endSubscribeProcessSpan(subscribeMessageWrapper, PROCESS_ACTION); Span subscribeModackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), - "modack", - subscribeMessageWrappers, - ACK_DEADLINE, - true); + FULL_SUBSCRIPTION_NAME, "modack", subscribeMessageWrappers, ACK_DEADLINE, true); tracer.endSubscribeRpcSpan(subscribeModackRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, ACK_DEADLINE); Span subscribeAckRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "ack", subscribeMessageWrappers, 0, false); + FULL_SUBSCRIPTION_NAME, "ack", subscribeMessageWrappers, 0, false); tracer.endSubscribeRpcSpan(subscribeAckRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, false, 0); Span subscribeNackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "nack", subscribeMessageWrappers, 0, false); + FULL_SUBSCRIPTION_NAME, "nack", subscribeMessageWrappers, 0, false); tracer.endSubscribeRpcSpan(subscribeNackRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, 0); tracer.endSubscriberSpan(subscribeMessageWrapper); @@ -518,7 +513,7 @@ public void testSubscribeConcurrencyControlSpanFailure() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); @@ -562,7 +557,7 @@ public void testSubscriberSpanFailure() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); @@ -595,7 +590,7 @@ public void testSubscribeRpcSpanFailures() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); List messageWrappers = Arrays.asList(messageWrapper); @@ -605,13 +600,11 @@ public void testSubscribeRpcSpanFailures() { tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); Span subscribeModackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "modack", messageWrappers, ACK_DEADLINE, true); + FULL_SUBSCRIPTION_NAME, "modack", messageWrappers, ACK_DEADLINE, true); Span subscribeAckRpcSpan = - tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "ack", messageWrappers, 0, false); + tracer.startSubscribeRpcSpan(FULL_SUBSCRIPTION_NAME, "ack", messageWrappers, 0, false); Span subscribeNackRpcSpan = - tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "nack", messageWrappers, 0, false); + tracer.startSubscribeRpcSpan(FULL_SUBSCRIPTION_NAME, "nack", messageWrappers, 0, false); Exception e = new Exception("test-exception"); tracer.setSubscribeRpcSpanException(subscribeModackRpcSpan, true, ACK_DEADLINE, e); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 412dd2ad8..8bf0113b5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -52,7 +52,8 @@ public class StreamingSubscriberConnectionTest { private FakeClock clock; private SubscriberStub mockSubscriberStub; - private static final String MOCK_SUBSCRIPTION_NAME = "MOCK-SUBSCRIPTION"; + private static final String MOCK_SUBSCRIPTION_NAME = + "projects/MOCK-PROJECT/subscriptions/MOCK-SUBSCRIPTION"; private static final String MOCK_ACK_ID_SUCCESS = "MOCK-ACK-ID-SUCCESS"; private static final String MOCK_ACK_ID_SUCCESS_2 = "MOCK-ACK-ID-SUCCESS-2"; private static final String MOCK_ACK_ID_NACK_SUCCESS = "MOCK-ACK-ID-NACK-SUCCESS"; From b6ba56c04619660d2660a660eaacbda7de9f8608 Mon Sep 17 00:00:00 2001 From: ldetmer <1771267+ldetmer@users.noreply.github.com> Date: Fri, 28 Feb 2025 17:54:37 +0000 Subject: [PATCH 424/656] feat: next release from main branch is 1.138.0 (#2361) --- .github/release-please.yml | 4 ++++ .github/sync-repo-settings.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index dae3c7e8a..c2b8a4cdb 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -42,3 +42,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.129.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.137.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 9908bfe38..846e0ed3b 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -177,6 +177,24 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - pattern: 1.137.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin From 284b66292a2851e6c86d9a974b31c1ab0b0d09b8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Mar 2025 20:44:23 +0100 Subject: [PATCH 425/656] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.9.0 (#2357) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ce489f906..dc3c1a01e 100644 --- a/pom.xml +++ b/pom.xml @@ -151,7 +151,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.8.0 + 3.9.0 From 115dcb51307ce7b6fec14f73afa57673001a1c24 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Mar 2025 20:44:31 +0100 Subject: [PATCH 426/656] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.4 (#2353) --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 521e6a914..b63314dd5 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -53,7 +53,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.3 + 3.1.4 true From c409f53d9b49fc5332bb5a07e0caaf42662ec418 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 4 Mar 2025 00:11:34 +0100 Subject: [PATCH 427/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.56.0 (#2362) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a2bc750b5..0a152aa44 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.55.0 + 26.56.0 pom import From f04c67a71289d32198c3334f90f403cc937c1a50 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:11:55 -0500 Subject: [PATCH 428/656] chore: Update generation configuration at Fri Feb 28 02:28:13 UTC 2025 (#2360) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 3200b796d..337eadb14 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.54.0 -googleapis_commitish: 554575ee8d01d277344ec704e0561e9abc7f57f3 +googleapis_commitish: 68b6376ca75f03094a65ec5bbbc868bd9f058ee3 libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub From 6db03909fc23f6382cc8abb69574e3903bd62320 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 4 Mar 2025 00:12:17 +0100 Subject: [PATCH 429/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.137.1 (#2354) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5e179771e..b31e29cf1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1 From 15899d127131747c51c71c94d66ff581f70278f3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Mar 2025 20:31:24 +0100 Subject: [PATCH 430/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.45.1 (#2366) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-17.cfg | 2 +- .kokoro/presubmit/graalvm-native.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 8e7b59489..c11991c37 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.44.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg index 728751d04..07ae08a98 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.44.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg index 39151469c..fb1979a33 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.44.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1" } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index fb07ca707..10a00313a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.44.0 + 3.45.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index dc3c1a01e..f19839331 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.44.0 + 3.45.1 From de6f84a43a27e954c0dc635158c43c5db4d07dfa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Mar 2025 20:31:35 +0100 Subject: [PATCH 431/656] deps: update googleapis/sdk-platform-java action to v2.55.1 (#2367) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 5ad2a254b..ca1baea12 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.54.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.55.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 14e1d71c17c72bec3922c22d036640f44dc922ae Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Mar 2025 22:18:24 -0400 Subject: [PATCH 432/656] chore(main): release 1.137.2-SNAPSHOT (#2352) * chore(main): release 1.137.2-SNAPSHOT * chore: generate libraries at Thu Mar 13 19:32:49 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 4 ++-- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c9dd8fc95..b4c8a5bb0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.55.0 + 26.56.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 10a00313a..c79fe0f20 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.1 + 1.137.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1364c0662..bc78e9350 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c61be81f2..d0aebc5fa 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index f19839331..35e19dbe5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.1 + 1.137.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 30eb3b0a2..306129afb 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 76112f520..7ddcb7938 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index b19d254bd..c50eab1b7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.1:1.137.1 -grpc-google-cloud-pubsub-v1:1.119.1:1.119.1 -proto-google-cloud-pubsub-v1:1.119.1:1.119.1 +google-cloud-pubsub:1.137.1:1.137.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT From 76b2a3dc1f001dfeb3f8974a4cc4de843b7383bc Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 14 Mar 2025 14:01:13 -0400 Subject: [PATCH 433/656] chore: Update generation configuration at Fri Mar 14 02:21:49 UTC 2025 (#2370) * chore: Update generation configuration at Fri Mar 14 02:21:49 UTC 2025 * chore: generate libraries at Fri Mar 14 02:22:23 UTC 2025 --- README.md | 2 +- generation_config.yaml | 6 +- .../google/pubsub/v1/MessageTransform.java | 133 +++- .../pubsub/v1/MessageTransformOrBuilder.java | 23 +- .../com/google/pubsub/v1/PubsubProto.java | 708 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 12 +- .../main/proto/google/pubsub/v1/schema.proto | 2 +- 9 files changed, 513 insertions(+), 383 deletions(-) diff --git a/README.md b/README.md index b4c8a5bb0..16509a14f 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.55.0') +implementation platform('com.google.cloud:libraries-bom:26.56.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 337eadb14..936aed548 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.54.0 -googleapis_commitish: 68b6376ca75f03094a65ec5bbbc868bd9f058ee3 -libraries_bom_version: 26.55.0 +gapic_generator_version: 2.55.1 +googleapis_commitish: d0ba3ce0fafe1225ebda6b259a2e29dfe2934bb5 +libraries_bom_version: 26.56.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 3e077acea..692b93359 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -173,19 +173,41 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * * *
-   * Optional. If set to true, the transform is enabled. If false, the transform
-   * is disabled and will not be applied to messages. Defaults to `true`.
+   * Optional. This field is deprecated, use the `disabled` field to disable
+   * transforms.
    * 
* - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { return enabled_; } + public static final int DISABLED_FIELD_NUMBER = 4; + private boolean disabled_ = false; + /** + * + * + *
+   * Optional. If true, the transform is disabled and will not be applied to
+   * messages. Defaults to `false`.
+   * 
+ * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -206,6 +228,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enabled_ != false) { output.writeBool(3, enabled_); } + if (disabled_ != false) { + output.writeBool(4, disabled_); + } getUnknownFields().writeTo(output); } @@ -223,6 +248,9 @@ public int getSerializedSize() { if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +267,7 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.MessageTransform other = (com.google.pubsub.v1.MessageTransform) obj; if (getEnabled() != other.getEnabled()) return false; + if (getDisabled() != other.getDisabled()) return false; if (!getTransformCase().equals(other.getTransformCase())) return false; switch (transformCase_) { case 2: @@ -260,6 +289,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); switch (transformCase_) { case 2: hash = (37 * hash) + JAVASCRIPT_UDF_FIELD_NUMBER; @@ -410,6 +441,7 @@ public Builder clear() { javascriptUdfBuilder_.clear(); } enabled_ = false; + disabled_ = false; transformCase_ = 0; transform_ = null; return this; @@ -452,6 +484,9 @@ private void buildPartial0(com.google.pubsub.v1.MessageTransform result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.enabled_ = enabled_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disabled_ = disabled_; + } } private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { @@ -510,6 +545,9 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageTransform other) { if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } switch (other.getTransformCase()) { case JAVASCRIPT_UDF: { @@ -559,6 +597,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -830,15 +874,18 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * * *
-     * Optional. If set to true, the transform is enabled. If false, the transform
-     * is disabled and will not be applied to messages. Defaults to `true`.
+     * Optional. This field is deprecated, use the `disabled` field to disable
+     * transforms.
      * 
* - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { return enabled_; } @@ -846,15 +893,18 @@ public boolean getEnabled() { * * *
-     * Optional. If set to true, the transform is enabled. If false, the transform
-     * is disabled and will not be applied to messages. Defaults to `true`.
+     * Optional. This field is deprecated, use the `disabled` field to disable
+     * transforms.
      * 
* - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @param value The enabled to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnabled(boolean value) { enabled_ = value; @@ -866,14 +916,17 @@ public Builder setEnabled(boolean value) { * * *
-     * Optional. If set to true, the transform is enabled. If false, the transform
-     * is disabled and will not be applied to messages. Defaults to `true`.
+     * Optional. This field is deprecated, use the `disabled` field to disable
+     * transforms.
      * 
* - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000002); enabled_ = false; @@ -881,6 +934,62 @@ public Builder clearEnabled() { return this; } + private boolean disabled_; + /** + * + * + *
+     * Optional. If true, the transform is disabled and will not be applied to
+     * messages. Defaults to `false`.
+     * 
+ * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. If true, the transform is disabled and will not be applied to
+     * messages. Defaults to `false`.
+     * 
+ * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, the transform is disabled and will not be applied to
+     * messages. Defaults to `false`.
+     * 
+ * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 8744837b1..39dbe4062 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -72,15 +72,32 @@ public interface MessageTransformOrBuilder * * *
-   * Optional. If set to true, the transform is enabled. If false, the transform
-   * is disabled and will not be applied to messages. Defaults to `true`.
+   * Optional. This field is deprecated, use the `disabled` field to disable
+   * transforms.
    * 
* - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ + @java.lang.Deprecated boolean getEnabled(); + /** + * + * + *
+   * Optional. If true, the transform is disabled and will not be applied to
+   * messages. Defaults to `false`.
+   * 
+ * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + com.google.pubsub.v1.MessageTransform.TransformCase getTransformCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index e3124be2c..6a8d54f74 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -492,361 +492,361 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132:.google.pubsub.v1.IngestionFailureEv" + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" - + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"u\n\020Me" - + "ssageTransform\022>\n\016javascript_udf\030\002 \001(\0132\037" - + ".google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\024" - + "\n\007enabled\030\003 \001(\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005To" - + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#" - + ".google.pubsub.v1.Topic.LabelsEntryB\003\340A\001" - + "\022K\n\026message_storage_policy\030\003 \001(\0132&.googl" - + "e.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" - + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_setti" - + "ngs\030\006 \001(\0132 .google.pubsub.v1.SchemaSetti" - + "ngsB\003\340A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032" - + "message_retention_duration\030\010 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162" - + "\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036i" - + "ngestion_data_source_settings\030\n \001(\0132-.go" - + "ogle.pubsub.v1.IngestionDataSourceSettin" - + "gsB\003\340A\001\022C\n\022message_transforms\030\r \003(\0132\".go" - + "ogle.pubsub.v1.MessageTransformB\003\340A\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:c\352" - + "A`\n\033pubsub.googleapis.com/Topic\022!project" - + "s/{project}/topics/{topic}\022\017_deleted-top" - + "ic_*\006topics2\005topic\"\200\002\n\rPubsubMessage\022\021\n\004" - + "data\030\001 \001(\014B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.go" - + "ogle.pubsub.v1.PubsubMessage.AttributesE" - + "ntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish" - + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" - + "\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n" - + "\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033pubsub.googleapis.com/Topic\"w\n\022UpdateTo" - + "picRequest\022+\n\005topic\030\001 \001(\0132\027.google.pubsu" - + "b.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"|\n\016Publish" - + "Request\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.g" - + "oogleapis.com/Topic\0226\n\010messages\030\002 \003(\0132\037." - + "google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n\017P" - + "ublishResponse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001" - + "\"\212\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB" - + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" - + ".com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsRespo" - + "nse\022,\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" - + "opicB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "\204\001\n\035ListTopicSubscriptionsRequest\0222\n\005top" + + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"\216\001\n\020M" + + "essageTransform\022>\n\016javascript_udf\030\002 \001(\0132" + + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022" + + "\026\n\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n\010disabled\030\004 \001(" + + "\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005Topic\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub" + + ".v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message_st" + + "orage_policy\030\003 \001(\0132&.google.pubsub.v1.Me" + + "ssageStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030" + + "\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .go" + + "ogle.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsa" + + "tisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" + + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsu" + + "b.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_data_" + + "source_settings\030\n \001(\0132-.google.pubsub.v1" + + ".IngestionDataSourceSettingsB\003\340A\001\022C\n\022mes" + + "sage_transforms\030\r \003(\0132\".google.pubsub.v1" + + ".MessageTransformB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030ING" + + "ESTION_RESOURCE_ERROR\020\002:c\352A`\n\033pubsub.goo" + + "gleapis.com/Topic\022!projects/{project}/to" + + "pics/{topic}\022\017_deleted-topic_*\006topics2\005t" + + "opic\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A" + + "\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1" + + ".PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nm" + + "essage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032." + + "google.protobuf.Timestamp\022\031\n\014ordering_ke" + + "y\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReque" + + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005" + + "topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A" + + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005top" + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopicSubscription" - + "sResponse\022A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopic" - + "SnapshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033pubsub.googleapis.com/Topic\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n" - + "\032ListTopicSnapshotsResponse\022\026\n\tsnapshots" - + "\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(\tB#" - + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]\n\031D" - + "etachSubscriptionRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\"\034\n\032DetachSubscriptionResponse" - + "\"\215\013\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005" - + "topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\0226\n\013push_config\030\004 \001(\0132\034.google.p" - + "ubsub.v1.PushConfigB\003\340A\001\022>\n\017bigquery_con" - + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" - + "figB\003\340A\001\022G\n\024cloud_storage_config\030\026 \001(\0132$" - + ".google.pubsub.v1.CloudStorageConfigB\003\340A" - + "\001\022!\n\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025" - + "retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n\032mess" - + "age_retention_duration\030\010 \001(\0132\031.google.pr" - + "otobuf.DurationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.g" - + "oogle.pubsub.v1.Subscription.LabelsEntry" - + "B\003\340A\001\022$\n\027enable_message_ordering\030\n \001(\010B\003" - + "\340A\001\022B\n\021expiration_policy\030\013 \001(\0132\".google." - + "pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n\006filte" - + "r\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter_policy\030\r \001(\013" - + "2\".google.pubsub.v1.DeadLetterPolicyB\003\340A" - + "\001\0228\n\014retry_policy\030\016 \001(\0132\035.google.pubsub." - + "v1.RetryPolicyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340" - + "A\001\022)\n\034enable_exactly_once_delivery\030\020 \001(\010" - + "B\003\340A\001\022H\n topic_message_retention_duratio" - + "n\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022" - + "8\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscr" - + "iption.StateB\003\340A\003\022i\n\037analytics_hub_subsc" - + "ription_info\030\027 \001(\0132;.google.pubsub.v1.Su" - + "bscription.AnalyticsHubSubscriptionInfoB" - + "\003\340A\003\022C\n\022message_transforms\030\031 \003(\0132\".googl" - + "e.pubsub.v1.MessageTransformB\003\340A\001\032O\n\034Ana" - + "lyticsHubSubscriptionInfo\022\024\n\007listing\030\001 \001" - + "(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:u\352Ar\n\"pubsub.g" - + "oogleapis.com/Subscription\022/projects/{pr" - + "oject}/subscriptions/{subscription}*\rsub" - + "scriptions2\014subscription\"\177\n\013RetryPolicy\022" - + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" - + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" - + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" - + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" - + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" - + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." - + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcToken" - + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" - + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" - + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" - + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" - + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" - + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" - + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" - + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" - + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" - + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" - + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" - + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" - + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" - + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" - + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" - + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" - + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" - + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" - + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" - + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" - + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" - + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" - + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" - + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" - + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" - + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" - + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" - + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" - + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" - + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" - + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" - + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" - + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" - + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" - + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" - + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" - + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" - + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" - + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" - + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." - + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" - + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\"" - + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022!\n\022retur" - + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" - + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" - + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022\024\n\007ack_i" - + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " - + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" - + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." - + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" - + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" - + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" - + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" - + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" - + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" - + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " - + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" - + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" - + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" - + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" - + "mingPullResponse.AcknowledgeConfirmation" - + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" - + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" - + "Response.ModifyAckDeadlineConfirmationB\003" - + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" - + "oogle.pubsub.v1.StreamingPullResponse.Su" - + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" - + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" - + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" - + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" - + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" - + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" - + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" - + "erties\022*\n\035exactly_once_delivery_enabled\030" - + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" - + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" - + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022H\n\006l" - + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" - + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" - + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" - + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"\326\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" - + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" - + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" - + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:a\352A^\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}*\tsnapshots2\010snapshot\"N\n\022GetS" + + "Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub." + + "v1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse" + + "\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopic" + + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030" + + "\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017n" + + "ext_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicS" + + "ubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\"\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rs" + + "ubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReque" + + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnap" + + "shotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTop" + + "icRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub" + + ".googleapis.com/Topic\"]\n\031DetachSubscript" + + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\"\034\n\032" + + "DetachSubscriptionResponse\"\215\013\n\014Subscript" + + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340" + + "A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pu" + + "sh_config\030\004 \001(\0132\034.google.pubsub.v1.PushC" + + "onfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .go" + + "ogle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024cl" + + "oud_storage_config\030\026 \001(\0132$.google.pubsub" + + ".v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadl" + + "ine_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_m" + + "essages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" + + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" + + "nB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v" + + "1.Subscription.LabelsEntryB\003\340A\001\022$\n\027enabl" + + "e_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirat" + + "ion_policy\030\013 \001(\0132\".google.pubsub.v1.Expi" + + "rationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C" + + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" + + "ub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_pol" + + "icy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicy" + + "B\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_e" + + "xactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic" + + "_message_retention_duration\030\021 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\016" + + "2$.google.pubsub.v1.Subscription.StateB\003" + + "\340A\003\022i\n\037analytics_hub_subscription_info\030\027" + + " \001(\0132;.google.pubsub.v1.Subscription.Ana" + + "lyticsHubSubscriptionInfoB\003\340A\003\022C\n\022messag" + + "e_transforms\030\031 \003(\0132\".google.pubsub.v1.Me" + + "ssageTransformB\003\340A\001\032O\n\034AnalyticsHubSubsc" + + "riptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014sub" + + "scription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOU" + + "RCE_ERROR\020\002:u\352Ar\n\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscri" + + "ptions/{subscription}*\rsubscriptions2\014su" + + "bscription\"\177\n\013RetryPolicy\0227\n\017minimum_bac" + + "koff\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\"V\n\020DeadLetterPolicy\022" + + "\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_d" + + "elivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020Expiratio" + + "nPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endp" + + "oint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.go" + + "ogle.pubsub.v1.PushConfig.AttributesEntr" + + "yB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.google.pubs" + + "ub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pub" + + "sub_wrapper\030\004 \001(\0132*.google.pubsub.v1.Pus" + + "hConfig.PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapp" + + "er\030\005 \001(\0132&.google.pubsub.v1.PushConfig.N" + + "oWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_" + + "account_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001" + + "(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_methodB\t\n\007wrapper\"\216\003\n\016Bi" + + "gQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_" + + "topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadat" + + "a\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(" + + "\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google.pubsub.v1" + + ".BigQueryConfig.StateB\003\340A\003\022\035\n\020use_table_" + + "schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_account_ema" + + "il\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" + + "\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022C" + + "loudStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034" + + "\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename" + + "_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_" + + "format\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/" + + ".google.pubsub.v1.CloudStorageConfig.Tex" + + "tConfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.AvroCo" + + "nfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007" + + " \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005" + + "state\030\t \001(\0162*.google.pubsub.v1.CloudStor" + + "ageConfig.StateB\003\340A\003\022\"\n\025service_account_" + + "email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroCo" + + "nfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use" + + "_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISS" + + "ION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSI" + + "T_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMA" + + "TCH\020\005B\017\n\routput_format\"|\n\017ReceivedMessag" + + "e\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132" + + "\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscrip" + + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsResponse" + + "\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub." + + "v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token\030" + + "\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\"\223\001\n\027ModifyPush" + + "ConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "6\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1." + + "PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022!\n\022return_immediately\030" + + "\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"" + + "Q\n\014PullResponse\022A\n\021received_messages\030\001 \003" + + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340" + + "A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" + + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" + + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPu" + + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_sec" + + "onds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_i" + + "ds\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_sec" + + "onds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022" + + "%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"" + + "\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025S" + + "treamingPullResponse\022A\n\021received_message" + + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" + + "geB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001(" + + "\0132?.google.pubsub.v1.StreamingPullRespon" + + "se.AcknowledgeConfirmationB\003\340A\001\022t\n modif" + + "y_ack_deadline_confirmation\030\003 \001(\0132E.goog" + + "le.pubsub.v1.StreamingPullResponse.Modif" + + "yAckDeadlineConfirmationB\003\340A\001\022d\n\027subscri" + + "ption_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionProp" + + "ertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022" + + "\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids" + + "\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003" + + "\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003\340" + + "A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007a" + + "ck_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003" + + "(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003(" + + "\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exac" + + "tly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030" + + "message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025" + + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002" + + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s" + + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\022H\n\006labels\030\003 \003(\01323." + + "google.pubsub.v1.CreateSnapshotRequest.L" + + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsho" + + "tRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pubs" + + "ub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n\010Sn" + + "apshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\t" + + "B#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224\n" + + "\013expire_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pub" + + "sub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" + + "a\352A^\n\036pubsub.googleapis.com/Snapshot\022\'pr" + + "ojects/{project}/snapshots/{snapshot}*\ts" + + "napshots2\010snapshot\"N\n\022GetSnapshotRequest" + + "\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googl" + + "eapis.com/Snapshot\"\215\001\n\024ListSnapshotsRequ" + + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\026\n\tpag" + + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnapshots" + + "\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022" + + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteS" + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Lis" - + "tSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" - + "A-\n+cloudresourcemanager.googleapis.com/" - + "Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespons" - + "e\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1." - + "SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot" - + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" - + "apshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022/\n\004time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001" - + "\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010\n" - + "\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027." - + "google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/" - + "v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Upd" - + "ateTopic\022$.google.pubsub.v1.UpdateTopicR" - + "equest\032\027.google.pubsub.v1.Topic\"C\332A\021topi" - + "c,update_mask\202\323\344\223\002)2$/v1/{topic.name=pro" - + "jects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .googl" - + "e.pubsub.v1.PublishRequest\032!.google.pubs" - + "ub.v1.PublishResponse\"C\332A\016topic,messages" - + "\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:" - + "publish:\001*\022w\n\010GetTopic\022!.google.pubsub.v" - + "1.GetTopicRequest\032\027.google.pubsub.v1.Top" - + "ic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/" - + "*/topics/*}\022\212\001\n\nListTopics\022#.google.pubs" - + "ub.v1.ListTopicsRequest\032$.google.pubsub." - + "v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022" - + "\037/v1/{project=projects/*}/topics\022\272\001\n\026Lis" - + "tTopicSubscriptions\022/.google.pubsub.v1.L" - + "istTopicSubscriptionsRequest\0320.google.pu" - + "bsub.v1.ListTopicSubscriptionsResponse\"=" - + "\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/to", - "pics/*}/subscriptions\022\252\001\n\022ListTopicSnaps" - + "hots\022+.google.pubsub.v1.ListTopicSnapsho" - + "tsRequest\032,.google.pubsub.v1.ListTopicSn" - + "apshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{to" - + "pic=projects/*/topics/*}/snapshots\022|\n\013De" - + "leteTopic\022$.google.pubsub.v1.DeleteTopic" - + "Request\032\026.google.protobuf.Empty\"/\332A\005topi" - + "c\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}" - + "\022\255\001\n\022DetachSubscription\022+.google.pubsub." - + "v1.DetachSubscriptionRequest\032,.google.pu" - + "bsub.v1.DetachSubscriptionResponse\"<\202\323\344\223" - + "\0026\"4/v1/{subscription=projects/*/subscri" - + "ptions/*}:detach\032p\312A\025pubsub.googleapis.c" - + "om\322AUhttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubs" - + "cription\022\036.google.pubsub.v1.Subscription" - + "\032\036.google.pubsub.v1.Subscription\"^\332A+nam" - + "e,topic,push_config,ack_deadline_seconds" - + "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptio" - + "ns/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pu" - + "bsub.v1.GetSubscriptionRequest\032\036.google." - + "pubsub.v1.Subscription\"D\332A\014subscription\202" - + "\323\344\223\002/\022-/v1/{subscription=projects/*/subs" - + "criptions/*}\022\273\001\n\022UpdateSubscription\022+.go" - + "ogle.pubsub.v1.UpdateSubscriptionRequest" - + "\032\036.google.pubsub.v1.Subscription\"X\332A\030sub" - + "scription,update_mask\202\323\344\223\002722/v1/{subscr" - + "iption.name=projects/*/subscriptions/*}:" - + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" - + ".v1.ListSubscriptionsRequest\032+.google.pu" - + "bsub.v1.ListSubscriptionsResponse\"8\332A\007pr" - + "oject\202\323\344\223\002(\022&/v1/{project=projects/*}/su" - + "bscriptions\022\237\001\n\022DeleteSubscription\022+.goo" - + "gle.pubsub.v1.DeleteSubscriptionRequest\032" - + "\026.google.protobuf.Empty\"D\332A\014subscription" - + "\202\323\344\223\002/*-/v1/{subscription=projects/*/sub" - + "scriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.go" - + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" - + "\026.google.protobuf.Empty\"v\332A)subscription" - + ",ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022" - + "$.google.pubsub.v1.AcknowledgeRequest\032\026." - + "google.protobuf.Empty\"[\332A\024subscription,a" - + "ck_ids\202\323\344\223\002>\"9/v1/{subscription=projects" - + "/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004P" - + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" - + "gle.pubsub.v1.PullResponse\"\210\001\332A,subscrip" - + "tion,return_immediately,max_messages\332A\031s" - + "ubscription,max_messages\202\323\344\223\0027\"2/v1/{sub" - + "scription=projects/*/subscriptions/*}:pu" - + "ll:\001*\022f\n\rStreamingPull\022&.google.pubsub.v" - + "1.StreamingPullRequest\032\'.google.pubsub.v" - + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" - + "PushConfig\022).google.pubsub.v1.ModifyPush" - + "ConfigRequest\032\026.google.protobuf.Empty\"d\332" - + "A\030subscription,push_config\202\323\344\223\002C\">/v1/{s" - + "ubscription=projects/*/subscriptions/*}:" - + "modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.go" - + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" - + "le.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'" - + "\022%/v1/{snapshot=projects/*/snapshots/*}\022" - + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" - + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" - + "tSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v" - + "1/{project=projects/*}/snapshots\022\227\001\n\016Cre" - + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=" - + "projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSna" - + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"L\332A\024s" - + "napshot,update_mask\202\323\344\223\002/2*/v1/{snapshot" - + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" - + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" - + "pshotRequest\032\026.google.protobuf.Empty\"8\332A" - + "\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects/" - + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." - + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsubB\247\001\n\024com.google.p" - + "ubsub.v1B\013PubsubProtoP\001Z2cloud.google.co" - + "m/go/pubsub/apiv1/pubsubpb;pubsubpb\252\002\026Go" - + "ogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubS" - + "ub\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto" - + "3" + + "\n\036pubsub.googleapis.com/Snapshot\"\306\001\n\013See" + + "kRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022/\n\004ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.go" + + "ogleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014See" + + "kResponse2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027" + + ".google.pubsub.v1.Topic\032\027.google.pubsub." + + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=proje" + + "cts/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.goo" + + "gle.pubsub.v1.UpdateTopicRequest\032\027.googl" + + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" + + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics" + + "/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.Pu" + + "blishRequest\032!.google.pubsub.v1.PublishR" + + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{t" + + "opic=projects/*/topics/*}:publish:\001*\022w\n\010" + + "GetTopic\022!.google.pubsub.v1.GetTopicRequ" + + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" + + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001" + + "\n\nListTopics\022#.google.pubsub.v1.ListTopi" + + "csRequest\032$.google.pubsub.v1.ListTopicsR" + + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=" + + "projects/*}/topics\022\272\001\n\026ListTopicSubscrip" + + "tions\022/.google.pubsub.v1.ListTopicSubscr" + + "iptionsRequest\0320.google.pubsub.v1.ListTo" + + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", + "\022-/v1/{topic=projects/*/topics/*}/subscr" + + "iptions\022\252\001\n\022ListTopicSnapshots\022+.google." + + "pubsub.v1.ListTopicSnapshotsRequest\032,.go" + + "ogle.pubsub.v1.ListTopicSnapshotsRespons" + + "e\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*" + + "/topics/*}/snapshots\022|\n\013DeleteTopic\022$.go" + + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" + + "le.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{" + + "topic=projects/*/topics/*}\022\255\001\n\022DetachSub" + + "scription\022+.google.pubsub.v1.DetachSubsc" + + "riptionRequest\032,.google.pubsub.v1.Detach" + + "SubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subsc" + + "ription=projects/*/subscriptions/*}:deta" + + "ch\032p\312A\025pubsub.googleapis.com\322AUhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/pubsub2\322\025\n" + + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo" + + "gle.pubsub.v1.Subscription\032\036.google.pubs" + + "ub.v1.Subscription\"^\332A+name,topic,push_c" + + "onfig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{n" + + "ame=projects/*/subscriptions/*}:\001*\022\241\001\n\017G" + + "etSubscription\022(.google.pubsub.v1.GetSub" + + "scriptionRequest\032\036.google.pubsub.v1.Subs" + + "cription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{su" + + "bscription=projects/*/subscriptions/*}\022\273" + + "\001\n\022UpdateSubscription\022+.google.pubsub.v1" + + ".UpdateSubscriptionRequest\032\036.google.pubs" + + "ub.v1.Subscription\"X\332A\030subscription,upda" + + "te_mask\202\323\344\223\002722/v1/{subscription.name=pr" + + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" + + "scriptions\022*.google.pubsub.v1.ListSubscr" + + "iptionsRequest\032+.google.pubsub.v1.ListSu" + + "bscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/" + + "v1/{project=projects/*}/subscriptions\022\237\001" + + "\n\022DeleteSubscription\022+.google.pubsub.v1." + + "DeleteSubscriptionRequest\032\026.google.proto" + + "buf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{s" + + "ubscription=projects/*/subscriptions/*}\022" + + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" + + ".ModifyAckDeadlineRequest\032\026.google.proto" + + "buf.Empty\"v\332A)subscription,ack_ids,ack_d" + + "eadline_seconds\202\323\344\223\002D\"?/v1/{subscription" + + "=projects/*/subscriptions/*}:modifyAckDe" + + "adline:\001*\022\250\001\n\013Acknowledge\022$.google.pubsu" + + "b.v1.AcknowledgeRequest\032\026.google.protobu" + + "f.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google.p" + + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." + + "PullResponse\"\210\001\332A,subscription,return_im" + + "mediately,max_messages\332A\031subscription,ma" + + "x_messages\202\323\344\223\0027\"2/v1/{subscription=proj" + + "ects/*/subscriptions/*}:pull:\001*\022f\n\rStrea" + + "mingPull\022&.google.pubsub.v1.StreamingPul" + + "lRequest\032\'.google.pubsub.v1.StreamingPul" + + "lResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).g" + + "oogle.pubsub.v1.ModifyPushConfigRequest\032" + + "\026.google.protobuf.Empty\"d\332A\030subscription" + + ",push_config\202\323\344\223\002C\">/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:modifyPushConf" + + "ig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1" + + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapsho" + + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" + + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" + + "est\032\'.google.pubsub.v1.ListSnapshotsResp" + + "onse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=pro" + + "jects/*}/snapshots\022\227\001\n\016CreateSnapshot\022\'." + + "google.pubsub.v1.CreateSnapshotRequest\032\032" + + ".google.pubsub.v1.Snapshot\"@\332A\021name,subs" + + "cription\202\323\344\223\002&\032!/v1/{name=projects/*/sna" + + "pshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google" + + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" + + "e.pubsub.v1.Snapshot\"L\332A\024snapshot,update" + + "_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects" + + "/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'." + + "google.pubsub.v1.DeleteSnapshotRequest\032\026" + + ".google.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002" + + "\'*%/v1/{snapshot=projects/*/snapshots/*}" + + "\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest" + + "\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027" + + "\"2/v1/{subscription=projects/*/subscript" + + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" + + "m\322AUhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/pubsubB\247\001\n\024com.google.pubsub.v1B\013Pubs" + + "ubProtoP\001Z2cloud.google.com/go/pubsub/ap" + + "iv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pub" + + "Sub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google" + + "::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1072,7 +1072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_MessageTransform_descriptor, new java.lang.String[] { - "JavascriptUdf", "Enabled", "Transform", + "JavascriptUdf", "Enabled", "Disabled", "Transform", }); internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7345e9613..1ad7fd33c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 0d99d58e5..0b296c5d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b881f8fa3..7ea1327fa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -722,9 +722,13 @@ message MessageTransform { JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Optional. If set to true, the transform is enabled. If false, the transform - // is disabled and will not be applied to messages. Defaults to `true`. - bool enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. This field is deprecated, use the `disabled` field to disable + // transforms. + bool enabled = 3 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the transform is disabled and will not be applied to + // messages. Defaults to `false`. + bool disabled = 4 [(google.api.field_behavior) = OPTIONAL]; } // A topic resource. diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 81d56bd7f..08781bbfc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From b1345aa9722ee93f5d7d83741b130ec564749ea4 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 14 Mar 2025 14:01:28 -0400 Subject: [PATCH 434/656] ci: the java team to merge auto-generated PRs (#2371) b/379670583 --- .github/CODEOWNERS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 125a152c8..1e8bea4c7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -10,6 +10,17 @@ # for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner **/*.java @googleapis/api-pubsub +# For generated Java code +proto-*/ @googleapis/yoshi-java @googleapis/api-pubsub +grpc-*/ @googleapis/yoshi-java @googleapis/api-pubsub +# Generated code pattern in google-cloud-pubsub +**/*Client.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*Settings.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*ClientHttpJsonTest.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*ClientTest.java @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/yoshi-java @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers From 4ba9d633b3bac4cbb5ffd995dd792b3693fab7e7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 Mar 2025 15:33:51 -0400 Subject: [PATCH 435/656] chore(main): release 1.138.0 (#2369) * chore(main): release 1.138.0 * chore: generate libraries at Fri Mar 14 18:02:14 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 22 ++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 43 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c22019d..f77a4f9eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.138.0](https://github.com/googleapis/java-pubsub/compare/v1.137.1...v1.138.0) (2025-03-14) + + +### Features + +* Deprecate `enabled` field for message transforms and add `disabled` field ([76b2a3d](https://github.com/googleapis/java-pubsub/commit/76b2a3dc1f001dfeb3f8974a4cc4de843b7383bc)) +* Next release from main branch is 1.138.0 ([#2361](https://github.com/googleapis/java-pubsub/issues/2361)) ([b6ba56c](https://github.com/googleapis/java-pubsub/commit/b6ba56c04619660d2660a660eaacbda7de9f8608)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.55.1 ([76b2a3d](https://github.com/googleapis/java-pubsub/commit/76b2a3dc1f001dfeb3f8974a4cc4de843b7383bc)) +* Prevent excessive string parsing when publishing and receiving messages to improve performance ([#2317](https://github.com/googleapis/java-pubsub/issues/2317)) ([07b1350](https://github.com/googleapis/java-pubsub/commit/07b135001b4726c9bafafe90c80d369f25f04956)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.48.1 ([#2356](https://github.com/googleapis/java-pubsub/issues/2356)) ([7d3d2e4](https://github.com/googleapis/java-pubsub/commit/7d3d2e4690539ebbe7ab521c2c345b06cba766ea)) +* Update dependency com.google.cloud:google-cloud-storage to v2.49.0 ([#2358](https://github.com/googleapis/java-pubsub/issues/2358)) ([81d3435](https://github.com/googleapis/java-pubsub/commit/81d34352d332ee9c4935e7908b6b9a2383d3a8ba)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.45.1 ([#2366](https://github.com/googleapis/java-pubsub/issues/2366)) ([15899d1](https://github.com/googleapis/java-pubsub/commit/15899d127131747c51c71c94d66ff581f70278f3)) +* Update googleapis/sdk-platform-java action to v2.55.1 ([#2367](https://github.com/googleapis/java-pubsub/issues/2367)) ([de6f84a](https://github.com/googleapis/java-pubsub/commit/de6f84a43a27e954c0dc635158c43c5db4d07dfa)) + ## [1.137.1](https://github.com/googleapis/java-pubsub/compare/v1.137.0...v1.137.1) (2025-02-26) diff --git a/README.md b/README.md index 16509a14f..b4815f2d4 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.137.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.138.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.138.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.138.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c79fe0f20..23974ed45 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.2-SNAPSHOT + 1.138.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index bc78e9350..228dae29c 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index d0aebc5fa..380f1f500 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/pom.xml b/pom.xml index 35e19dbe5..d4edd2342 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.2-SNAPSHOT + 1.138.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 306129afb..33873694a 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7ddcb7938..dc6902be5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/versions.txt b/versions.txt index c50eab1b7..5d89f2bf7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.1:1.137.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT +google-cloud-pubsub:1.138.0:1.138.0 +grpc-google-cloud-pubsub-v1:1.120.0:1.120.0 +proto-google-cloud-pubsub-v1:1.120.0:1.120.0 From b81164aa5682c8046ebfa44e1e47579e4c3fcd28 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 18 Mar 2025 15:06:47 +0100 Subject: [PATCH 436/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.50.0 (#2372) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b31e29cf1..1235fd782 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.49.0 + 2.50.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dc6902be5..f594c6028 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.49.0 + 2.50.0 com.google.cloud.opentelemetry From 05eb9c0ce5179ff9e8656544258adc02a59336e5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 18 Mar 2025 15:07:05 +0100 Subject: [PATCH 437/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.30.1 (#2364) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1235fd782..80b6d9289 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f594c6028..3e751bdba 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0a152aa44..5b15d9550 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 From 606f0448484731551262f002ad48008c0bbd3036 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Mar 2025 15:01:35 +0100 Subject: [PATCH 438/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.138.0 (#2374) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 80b6d9289..b591f037e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.138.0 From 748058fc018e3a36dedd576404037bf8c016c794 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Mar 2025 15:02:00 +0100 Subject: [PATCH 439/656] deps: update dependency com.google.cloud:google-cloud-core to v2.53.1 (#2365) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b591f037e..9dd49762f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3e751bdba..fd3a94369 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5b15d9550..5ad578adf 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests From 405e485bbe503357a0616ec72de8fea00cb91c9c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Mar 2025 18:26:05 +0100 Subject: [PATCH 440/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.49.0 (#2380) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9dd49762f..acb5ac617 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.48.1 + 2.49.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fd3a94369..24923e2de 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.48.1 + 2.49.0 com.google.cloud From 76ef67c0529af9a9ae97b131dd382d69ff2ec0f7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Mar 2025 18:26:15 +0100 Subject: [PATCH 441/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.57.0 (#2381) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5ad578adf..5e5d38a60 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.56.0 + 26.57.0 pom import From ea14493e302f7471afc18e972471a59ce21e9348 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 27 Mar 2025 19:27:01 -0400 Subject: [PATCH 442/656] chore: Update generation configuration at Tue Mar 18 02:30:12 UTC 2025 (#2375) * chore: Update generation configuration at Sat Mar 15 02:27:31 UTC 2025 * chore: Update generation configuration at Mon Mar 17 02:30:47 UTC 2025 * chore: Update generation configuration at Tue Mar 18 02:30:12 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 936aed548..9855a797c 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.55.1 -googleapis_commitish: d0ba3ce0fafe1225ebda6b259a2e29dfe2934bb5 +googleapis_commitish: 6155d42e99f45ebf53100d492852be1561916137 libraries_bom_version: 26.56.0 libraries: - api_shortname: pubsub From 4119cc03895873f94ddef10850753fb59384a8fc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 28 Mar 2025 01:38:14 +0100 Subject: [PATCH 443/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.30.2 (#2383) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index acb5ac617..bd608c657 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 24923e2de..daa2a4cc6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5e5d38a60..4b60d917e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 From 00070b74e54fcb62b91a4d72a88d3b20b2425a94 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 31 Mar 2025 10:40:49 -0400 Subject: [PATCH 444/656] fix: Add retries for ack and modack operations that don't return with a metadata map (#2385) * fix: Add retries for ack and modack operations that don't return with a metadata map * fix: Remove messages from pending requests if the ack/modack failure does not have a metadata map * fix: Forget ack IDs when ack/modacks fail with non-retryable errors --- .../cloud/pubsub/v1/MessageDispatcher.java | 15 ++ .../cloud/pubsub/v1/PubsubMessageWrapper.java | 4 + .../google/cloud/pubsub/v1/StatusUtil.java | 20 +++ .../v1/StreamingSubscriberConnection.java | 128 ++++++++++-------- .../v1/StreamingSubscriberConnectionTest.java | 62 +++++++++ 5 files changed, 174 insertions(+), 55 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 34ef312f3..983844a62 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -476,6 +476,21 @@ void notifyAckFailed(AckRequestData ackRequestData) { synchronized (outstandingReceipts) { outstandingReceipts.remove(ackRequestData.getAckId()); } + + // When notifying that an ack/modack has failed, due to a non-retryable error, + // we attempt to remove the message from the pending messages and release it from the flow + // controller so that we no longer attempt to extend the message's ack deadline. + if (pendingMessages.remove(ackRequestData.getAckId()) == null) { + /* + * We're forgetting the message for the second time. This may occur on modacks because the message passed + * its total expiration and was forgotten and then the user finishes working on the message + * which forgets the message again. Additionally, when a failed ack occurs, we will have already forgotten + * the message, so we don't need to here. Turns the second forget into a no-op so we don't free twice. + */ + return; + } + flowController.release(1, ackRequestData.getMessageWrapper().getSerializedSize()); + messagesWaiter.incrementPendingCount(-1); } private void processBatch(List batch) { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 839eecf91..7067b0c1a 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -133,6 +133,10 @@ int getDataSize() { return message.getData().size(); } + int getSerializedSize() { + return message.getSerializedSize(); + } + String getOrderingKey() { return message.getOrderingKey(); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java index a7b8e1faa..56c19306d 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -25,6 +25,26 @@ private StatusUtil() { // Static class, not instantiable. } + static AckResponse getFailedAckResponse(Throwable t) { + if (!(t instanceof ApiException)) { + return AckResponse.OTHER; + } + + ApiException apiException = (ApiException) t; + AckResponse failedAckResponse; + switch (apiException.getStatusCode().getCode()) { + case FAILED_PRECONDITION: + failedAckResponse = AckResponse.FAILED_PRECONDITION; + break; + case PERMISSION_DENIED: + failedAckResponse = AckResponse.PERMISSION_DENIED; + break; + default: + failedAckResponse = AckResponse.OTHER; + } + return failedAckResponse; + } + static boolean isRetryable(Throwable error) { if (!(error instanceof ApiException)) { return true; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 80ff2b4e1..26411942f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -408,21 +408,7 @@ private void setFailureFutureOutstandingMessages(Throwable t) { AckResponse ackResponse; if (getExactlyOnceDeliveryEnabled()) { - if (!(t instanceof ApiException)) { - ackResponse = AckResponse.OTHER; - } - - ApiException apiException = (ApiException) t; - switch (apiException.getStatusCode().getCode()) { - case FAILED_PRECONDITION: - ackResponse = AckResponse.FAILED_PRECONDITION; - break; - case PERMISSION_DENIED: - ackResponse = AckResponse.PERMISSION_DENIED; - break; - default: - ackResponse = AckResponse.OTHER; - } + ackResponse = StatusUtil.getFailedAckResponse(t); } else { // We should set success regardless if ExactlyOnceDelivery is not enabled ackResponse = AckResponse.SUCCESSFUL; @@ -504,7 +490,7 @@ private void sendModackOperations( modackRequestData.getIsReceiptModack()); ApiFutureCallback callback = getCallback( - modackRequestData.getAckRequestData(), + ackRequestDataInRequestList, deadlineExtensionSeconds, true, currentBackoffMillis, @@ -611,23 +597,14 @@ public void onFailure(Throwable t) { List ackRequestDataArrayRetryList = new ArrayList<>(); try { Map metadataMap = getMetadataMapFromThrowable(t); - ackRequestDataList.forEach( - ackRequestData -> { - String ackId = ackRequestData.getAckId(); - if (metadataMap.containsKey(ackId)) { - // An error occured - String errorMessage = metadataMap.get(ackId); - if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { - // Retry all "TRANSIENT_*" error messages - do not set message future - logger.log(Level.INFO, "Transient error message, will resend", errorMessage); - ackRequestDataArrayRetryList.add(ackRequestData); - } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { - // Permanent failure, send - logger.log( - Level.INFO, - "Permanent error invalid ack id message, will not resend", - errorMessage); - ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + if (metadataMap.isEmpty()) { + String operation = isModack ? "ModifyAckDeadline" : "Acknowledge"; + if (!StatusUtil.isRetryable(t)) { + logger.log(Level.WARNING, "Un-retryable error on " + operation, t); + ackRequestDataList.forEach( + ackRequestData -> { + AckResponse failedAckResponse = StatusUtil.getFailedAckResponse(t); + ackRequestData.setResponse(failedAckResponse, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); tracer.addEndRpcEvent( ackRequestData.getMessageWrapper(), @@ -635,35 +612,76 @@ public void onFailure(Throwable t) { isModack, deadlineExtensionSeconds); tracer.setSubscriberSpanException( - ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); + ackRequestData.getMessageWrapper(), t, "Error with no metadata map"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Error with no metadata map"); + pendingRequests.remove(ackRequestData); + }); + } else { + logger.log(Level.INFO, "Retryable error on " + operation + ", will resend", t); + ackRequestDataArrayRetryList.addAll(ackRequestDataList); + ackRequestDataList.forEach( + ackRequestData -> { + pendingRequests.remove(ackRequestData); + }); + } + } else { + ackRequestDataList.forEach( + ackRequestData -> { + String ackId = ackRequestData.getAckId(); + if (metadataMap.containsKey(ackId)) { + // An error occured + String errorMessage = metadataMap.get(ackId); + if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { + // Retry all "TRANSIENT_*" error messages - do not set message future + logger.log(Level.INFO, "Transient error message, will resend", errorMessage); + ackRequestDataArrayRetryList.add(ackRequestData); + } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { + // Permanent failure + logger.log( + Level.INFO, + "Permanent error invalid ack id message, will not resend", + errorMessage); + ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); + } else { + logger.log( + Level.INFO, "Unknown error message, will not resend", errorMessage); + ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Unknown error message"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Unknown error message"); + } } else { - logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); - ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); - messageDispatcher.notifyAckFailed(ackRequestData); + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); tracer.addEndRpcEvent( ackRequestData.getMessageWrapper(), rpcSpanSampled, isModack, deadlineExtensionSeconds); - tracer.setSubscriberSpanException( - ackRequestData.getMessageWrapper(), t, "Unknown error message"); - ackRequestData - .getMessageWrapper() - .setSubscriberSpanException(t, "Unknown error message"); } - } else { - ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); - messageDispatcher.notifyAckSuccess(ackRequestData); - tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); - tracer.addEndRpcEvent( - ackRequestData.getMessageWrapper(), - rpcSpanSampled, - isModack, - deadlineExtensionSeconds); - } - // Remove from our pending - pendingRequests.remove(ackRequestData); - }); + // Remove from our pending + pendingRequests.remove(ackRequestData); + }); + } } catch (InvalidProtocolBufferException e) { // If we fail to parse out the errorInfo, we should retry all logger.log( diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 8bf0113b5..335ccbdc3 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -17,6 +17,7 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.argThat; import static org.mockito.Mockito.*; import com.google.api.core.ApiFutures; @@ -24,6 +25,8 @@ import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; @@ -32,6 +35,7 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.rpc.ErrorInfo; import com.google.rpc.Status; +import io.grpc.Status.Code; import io.grpc.StatusException; import io.grpc.protobuf.StatusProto; import java.time.Duration; @@ -65,6 +69,8 @@ public class StreamingSubscriberConnectionTest { "MOCK-ACK-ID-TRANSIENT-FAILURE-SERVICE-UNAVAILABLE-THEN-SUCCESS"; private static final String MOCK_ACK_ID_INVALID = "MOCK-ACK-ID-INVALID"; private static final String MOCK_ACK_ID_OTHER = "MOCK-ACK-ID-OTHER"; + private static final String MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED = + "MOCK-ACK-ID-NO-METADATA-MAP-INTERNAL-ERROR"; private static final String PERMANENT_FAILURE_INVALID_ACK_ID = "PERMANENT_FAILURE_INVALID_ACK_ID"; private static final String TRANSIENT_FAILURE_UNORDERED_ACK_ID = @@ -398,6 +404,62 @@ public void testSendAckOperationsExactlyOnceEnabledMessageFuturesAcks() { } } + @Test + public void testSendAckOperationsExactlyOnceEnabledErrorWithEmptyMetadataMap() { + // Setup + + // The list(s) of ackIds allows us to mock the grpc response(s) + List ackIdsRequest = new ArrayList<>(); + List ackRequestDataList = new ArrayList(); + + // Initial) INTERNAL error, retryable + // Retry) PERMISSION_DENIED, not retryable + SettableApiFuture messageInternalErrorThenPermissionDenied = + SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED) + .setMessageFuture(messageInternalErrorThenPermissionDenied) + .build()); + ackIdsRequest.add(MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED); + + // Build our request so we can set our mock responses + AcknowledgeRequest acknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsRequest) + .build(); + + ApiException internalError = + new ApiException("internal", null, GrpcStatusCode.of(Code.INTERNAL), true); + ApiException permissionDeniedError = + new ApiException( + "permission_denied", null, GrpcStatusCode.of(Code.PERMISSION_DENIED), false); + // Set mock grpc responses + when(mockSubscriberStub.acknowledgeCallable().futureCall(acknowledgeRequest)) + .thenReturn(ApiFutures.immediateFailedFuture(internalError)) + .thenReturn(ApiFutures.immediateFailedFuture(permissionDeniedError)); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(true); + + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + + // Backoff + systemExecutor.advanceTime(Duration.ofMillis(200)); + + // Assert expected behavior; + verify(mockSubscriberStub.acknowledgeCallable(), times(2)).futureCall(acknowledgeRequest); + verify(mockSubscriberStub, never()).modifyAckDeadlineCallable(); + + try { + assertEquals(AckResponse.PERMISSION_DENIED, messageInternalErrorThenPermissionDenied.get()); + } catch (InterruptedException | ExecutionException e) { + // In case something goes wrong retrieving the futures + throw new AssertionError(); + } + } + @Test public void testSetFailureResponseOutstandingMessages() { // Setup From f904786f87e80cdc09bba947cd53e42dffb7132e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 23 Apr 2025 13:11:57 -0400 Subject: [PATCH 445/656] chore: Update generation configuration at Sun Mar 30 02:33:11 UTC 2025 (#2386) * chore: Update generation configuration at Fri Mar 28 02:30:48 UTC 2025 * chore: generate libraries at Fri Mar 28 02:31:20 UTC 2025 * chore: Update generation configuration at Sat Mar 29 02:29:23 UTC 2025 * chore: generate libraries at Sat Mar 29 02:29:51 UTC 2025 * chore: Update generation configuration at Sun Mar 30 02:33:11 UTC 2025 * chore: generate libraries at Sun Mar 30 02:33:47 UTC 2025 --- README.md | 6 +++--- generation_config.yaml | 4 ++-- .../java/com/google/pubsub/v1/JavaScriptUDF.java | 14 +++++++------- .../google/pubsub/v1/JavaScriptUDFOrBuilder.java | 4 ++-- .../src/main/proto/google/pubsub/v1/pubsub.proto | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b4815f2d4..ea9463cd1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.56.0 + 26.57.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.137.1 + 1.138.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.56.0') +implementation platform('com.google.cloud:libraries-bom:26.58.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 9855a797c..ee80bf8b3 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.55.1 -googleapis_commitish: 6155d42e99f45ebf53100d492852be1561916137 -libraries_bom_version: 26.56.0 +googleapis_commitish: 2b63b9276dca4d5046470fe5e1022bd982629f62 +libraries_bom_version: 26.58.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index f5b467deb..c205f528d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -200,7 +200,7 @@ public java.lang.String getCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -728,7 +728,7 @@ public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -779,7 +779,7 @@ public java.lang.String getCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -830,7 +830,7 @@ public com.google.protobuf.ByteString getCodeBytes() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -880,7 +880,7 @@ public Builder setCode(java.lang.String value) { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -926,7 +926,7 @@ public Builder clearCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index 2be71ea24..80ba75c77 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -77,7 +77,7 @@ public interface JavaScriptUDFOrBuilder * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -118,7 +118,7 @@ public interface JavaScriptUDFOrBuilder * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 7ea1327fa..ed879ba88 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -702,7 +702,7 @@ message JavaScriptUDF { // * // * @param {Object} metadata - Pub/Sub message metadata. // * Keys: - // * - (required) 'message_id' : {string} + // * - (optional) 'message_id' : {string} // * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format // * - (optional) 'ordering_key': {string} // */ From 4472d7baff4894a7c5cf0efc7eadd83ec8801d7a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:47:23 -0400 Subject: [PATCH 446/656] chore: Update generation configuration at Thu Apr 24 02:32:32 UTC 2025 (#2395) * chore: Update generation configuration at Wed Apr 23 17:12:15 UTC 2025 * chore: generate libraries at Wed Apr 23 17:12:45 UTC 2025 * chore: Update generation configuration at Thu Apr 24 02:32:32 UTC 2025 * chore: manually update generation configuration * chore: generate libraries at Thu Apr 24 14:50:47 UTC 2025 * chore: manually update libraries bom version * chore: generate libraries at Thu Apr 24 14:59:23 UTC 2025 * chore: use spotify fmt plugin in build.sh * chore: remove old graalvm jobs --------- Co-authored-by: Diego Marquez --- .github/generated-files-bot.yml | 1 + .github/scripts/update_generation_config.sh | 11 +- .github/sync-repo-settings.yaml | 5 +- .github/workflows/ci.yaml | 2 +- .../hermetic_library_generation.yaml | 2 +- .github/workflows/renovate_config_check.yaml | 4 +- .../workflows/update_generation_config.yaml | 4 +- .kokoro/build.sh | 2 +- ...raalvm-native.cfg => graalvm-native-a.cfg} | 7 +- ...lvm-native-17.cfg => graalvm-native-b.cfg} | 9 +- .kokoro/presubmit/graalvm-native-c.cfg | 38 + CONTRIBUTING.md | 2 +- README.md | 2 +- generation_config.yaml | 6 +- .../v1/AckReplyConsumerWithResponse.java | 3 +- .../google/cloud/pubsub/v1/Subscriber.java | 4 +- .../v1/stub/HttpJsonSubscriberStub.java | 3 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 3 +- .../pubsub/v1/MockSchemaServiceImpl.java | 3 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 3 +- .../cloud/pubsub/v1/PublisherImplTest.java | 120 +-- .../cloud/pubsub/v1/SubscriberTest.java | 6 +- .../com/google/pubsub/v1/PublisherGrpc.java | 161 +++ .../google/pubsub/v1/SchemaServiceGrpc.java | 162 +++ .../com/google/pubsub/v1/SubscriberGrpc.java | 318 ++++++ .../google/pubsub/v1/AcknowledgeRequest.java | 22 + .../v1/AcknowledgeRequestOrBuilder.java | 4 + .../com/google/pubsub/v1/BigQueryConfig.java | 44 + .../pubsub/v1/BigQueryConfigOrBuilder.java | 3 + .../google/pubsub/v1/CloudStorageConfig.java | 108 ++ .../v1/CloudStorageConfigOrBuilder.java | 12 + .../google/pubsub/v1/CommitSchemaRequest.java | 21 + .../v1/CommitSchemaRequestOrBuilder.java | 3 + .../google/pubsub/v1/CreateSchemaRequest.java | 28 + .../v1/CreateSchemaRequestOrBuilder.java | 4 + .../pubsub/v1/CreateSnapshotRequest.java | 30 + .../v1/CreateSnapshotRequestOrBuilder.java | 7 + .../google/pubsub/v1/DeadLetterPolicy.java | 13 + .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 1 + .../google/pubsub/v1/DeleteSchemaRequest.java | 9 + .../v1/DeleteSchemaRequestOrBuilder.java | 1 + .../v1/DeleteSchemaRevisionRequest.java | 16 + .../DeleteSchemaRevisionRequestOrBuilder.java | 2 + .../pubsub/v1/DeleteSnapshotRequest.java | 9 + .../v1/DeleteSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSubscriptionRequest.java | 9 + .../DeleteSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeleteTopicRequest.java | 9 + .../v1/DeleteTopicRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionRequest.java | 9 + .../DetachSubscriptionRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionResponse.java | 2 + .../java/com/google/pubsub/v1/Encoding.java | 2 + .../google/pubsub/v1/ExpirationPolicy.java | 14 + .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 + .../google/pubsub/v1/GetSchemaRequest.java | 16 + .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 + .../google/pubsub/v1/GetSnapshotRequest.java | 9 + .../v1/GetSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/GetSubscriptionRequest.java | 9 + .../v1/GetSubscriptionRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/GetTopicRequest.java | 9 + .../pubsub/v1/GetTopicRequestOrBuilder.java | 1 + .../v1/IngestionDataSourceSettings.java | 411 ++++++++ .../IngestionDataSourceSettingsOrBuilder.java | 12 + .../pubsub/v1/IngestionFailureEvent.java | 249 +++++ .../v1/IngestionFailureEventOrBuilder.java | 10 + .../com/google/pubsub/v1/JavaScriptUDF.java | 16 + .../pubsub/v1/JavaScriptUDFOrBuilder.java | 2 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 27 + .../ListSchemaRevisionsRequestOrBuilder.java | 3 + .../v1/ListSchemaRevisionsResponse.java | 31 + .../ListSchemaRevisionsResponseOrBuilder.java | 5 + .../google/pubsub/v1/ListSchemasRequest.java | 27 + .../v1/ListSchemasRequestOrBuilder.java | 3 + .../google/pubsub/v1/ListSchemasResponse.java | 31 + .../v1/ListSchemasResponseOrBuilder.java | 5 + .../pubsub/v1/ListSnapshotsRequest.java | 20 + .../v1/ListSnapshotsRequestOrBuilder.java | 2 + .../pubsub/v1/ListSnapshotsResponse.java | 31 + .../v1/ListSnapshotsResponseOrBuilder.java | 5 + .../pubsub/v1/ListSubscriptionsRequest.java | 20 + .../v1/ListSubscriptionsRequestOrBuilder.java | 2 + .../pubsub/v1/ListSubscriptionsResponse.java | 31 + .../ListSubscriptionsResponseOrBuilder.java | 5 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 20 + .../ListTopicSnapshotsRequestOrBuilder.java | 2 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 22 + .../ListTopicSnapshotsResponseOrBuilder.java | 4 + .../v1/ListTopicSubscriptionsRequest.java | 20 + ...istTopicSubscriptionsRequestOrBuilder.java | 2 + .../v1/ListTopicSubscriptionsResponse.java | 22 + ...stTopicSubscriptionsResponseOrBuilder.java | 4 + .../google/pubsub/v1/ListTopicsRequest.java | 20 + .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 + .../google/pubsub/v1/ListTopicsResponse.java | 31 + .../v1/ListTopicsResponseOrBuilder.java | 5 + .../pubsub/v1/MessageStoragePolicy.java | 19 + .../v1/MessageStoragePolicyOrBuilder.java | 3 + .../google/pubsub/v1/MessageTransform.java | 23 + .../pubsub/v1/MessageTransformOrBuilder.java | 2 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 26 + .../v1/ModifyAckDeadlineRequestOrBuilder.java | 4 + .../pubsub/v1/ModifyPushConfigRequest.java | 21 + .../v1/ModifyPushConfigRequestOrBuilder.java | 3 + .../pubsub/v1/PlatformLogsSettings.java | 14 + .../v1/PlatformLogsSettingsOrBuilder.java | 1 + .../com/google/pubsub/v1/PublishRequest.java | 31 + .../pubsub/v1/PublishRequestOrBuilder.java | 5 + .../com/google/pubsub/v1/PublishResponse.java | 15 + .../pubsub/v1/PublishResponseOrBuilder.java | 3 + .../com/google/pubsub/v1/PubsubMessage.java | 46 + .../pubsub/v1/PubsubMessageOrBuilder.java | 9 + .../com/google/pubsub/v1/PubsubProto.java | 925 ++++++++++-------- .../com/google/pubsub/v1/PullRequest.java | 17 + .../pubsub/v1/PullRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/PullResponse.java | 24 + .../pubsub/v1/PullResponseOrBuilder.java | 4 + .../java/com/google/pubsub/v1/PushConfig.java | 90 ++ .../google/pubsub/v1/PushConfigOrBuilder.java | 12 + .../com/google/pubsub/v1/ReceivedMessage.java | 25 + .../pubsub/v1/ReceivedMessageOrBuilder.java | 3 + .../com/google/pubsub/v1/RetryPolicy.java | 26 + .../pubsub/v1/RetryPolicyOrBuilder.java | 4 + .../pubsub/v1/RollbackSchemaRequest.java | 16 + .../v1/RollbackSchemaRequestOrBuilder.java | 2 + .../java/com/google/pubsub/v1/Schema.java | 44 + .../com/google/pubsub/v1/SchemaOrBuilder.java | 6 + .../com/google/pubsub/v1/SchemaProto.java | 10 +- .../com/google/pubsub/v1/SchemaSettings.java | 30 + .../pubsub/v1/SchemaSettingsOrBuilder.java | 4 + .../java/com/google/pubsub/v1/SchemaView.java | 2 + .../com/google/pubsub/v1/SeekRequest.java | 30 + .../pubsub/v1/SeekRequestOrBuilder.java | 5 + .../com/google/pubsub/v1/SeekResponse.java | 2 + .../java/com/google/pubsub/v1/Snapshot.java | 42 + .../google/pubsub/v1/SnapshotOrBuilder.java | 9 + .../pubsub/v1/StreamingPullRequest.java | 64 ++ .../v1/StreamingPullRequestOrBuilder.java | 10 + .../pubsub/v1/StreamingPullResponse.java | 189 ++++ .../v1/StreamingPullResponseOrBuilder.java | 10 + .../com/google/pubsub/v1/Subscription.java | 215 ++++ .../pubsub/v1/SubscriptionOrBuilder.java | 31 + .../main/java/com/google/pubsub/v1/Topic.java | 113 +++ .../java/com/google/pubsub/v1/TopicName.java | 3 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 20 + .../pubsub/v1/UpdateSnapshotRequest.java | 26 + .../v1/UpdateSnapshotRequestOrBuilder.java | 4 + .../pubsub/v1/UpdateSubscriptionRequest.java | 26 + .../UpdateSubscriptionRequestOrBuilder.java | 4 + .../google/pubsub/v1/UpdateTopicRequest.java | 26 + .../v1/UpdateTopicRequestOrBuilder.java | 4 + .../pubsub/v1/ValidateMessageRequest.java | 41 + .../v1/ValidateMessageRequestOrBuilder.java | 6 + .../pubsub/v1/ValidateMessageResponse.java | 2 + .../pubsub/v1/ValidateSchemaRequest.java | 21 + .../v1/ValidateSchemaRequestOrBuilder.java | 3 + .../pubsub/v1/ValidateSchemaResponse.java | 2 + .../main/proto/google/pubsub/v1/pubsub.proto | 2 +- .../main/proto/google/pubsub/v1/schema.proto | 2 +- renovate.json | 1 - .../pubsub/OpenTelemetryPublisherExample.java | 3 +- .../OpenTelemetrySubscriberExample.java | 3 +- .../pubsub/PublishAvroRecordsExample.java | 2 +- .../SubscribeWithAvroSchemaExample.java | 2 +- ...bscribeWithAvroSchemaRevisionsExample.java | 2 +- .../src/main/java/utilities/State.java | 10 +- .../src/main/java/utilities/StateProto.java | 19 + .../test/java/pubsub/DeadLetterQueueIT.java | 2 +- .../src/test/java/pubsub/SchemaIT.java | 2 +- 170 files changed, 4320 insertions(+), 527 deletions(-) rename .kokoro/presubmit/{graalvm-native.cfg => graalvm-native-a.cfg} (77%) rename .kokoro/presubmit/{graalvm-native-17.cfg => graalvm-native-b.cfg} (74%) create mode 100644 .kokoro/presubmit/graalvm-native-c.cfg diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index c644a24e1..e58cdcbad 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -6,6 +6,7 @@ externalManifests: file: '.github/readme/synth.metadata/synth.metadata' jsonpath: '$.generatedFiles[*]' ignoreAuthors: +- 'cloud-java-bot' - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index 91434688c..fff56bf5d 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -15,8 +15,15 @@ set -e function get_latest_released_version() { local group_id=$1 local artifact_id=$2 - latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) - echo "${latest}" + json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json") + latest=$(jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< "${json_content}" | sort -V | tail -n 1) + if [[ -z "${latest}" ]]; then + echo "The latest version of ${group_id}:${artifact_id} is empty." + echo "The returned json from maven.org is invalid: ${json_content}" + exit 1 + else + echo "${latest}" + fi } # Update a key to a new value in the generation config. diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 846e0ed3b..310f09976 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -15,8 +15,9 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' + - 'Kokoro - Test: Java GraalVM Native Image A' + - 'Kokoro - Test: Java GraalVM Native Image B' + - 'Kokoro - Test: Java GraalVM Native Image C' - javadoc - library_generation - unmanaged_dependency_check diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b91fa381f..4dd9974f2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -104,7 +104,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: temurin - java-version: 11 + java-version: 17 - run: java -version - run: .kokoro/build.sh env: diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index ca1baea12..6b856abde 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.55.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml index 7c5ec7865..47b9e87c9 100644 --- a/.github/workflows/renovate_config_check.yaml +++ b/.github/workflows/renovate_config_check.yaml @@ -7,7 +7,7 @@ on: jobs: renovate_bot_config_validation: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' - name: Install Renovate and Config Validator run: | diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index f15c80785..cd2d5fd5a 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -28,6 +28,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - name: Update params in generation config to latest shell: bash @@ -36,7 +37,8 @@ jobs: [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/update_generation_config.sh \ - --base_branch "${base_branch}"\ + --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 351d0d40c..41903cda1 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -52,7 +52,7 @@ test) RETURN_CODE=$? ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn com.spotify.fmt:fmt-maven-plugin:check RETURN_CODE=$? ;; javadoc) diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native-a.cfg similarity index 77% rename from .kokoro/presubmit/graalvm-native.cfg rename to .kokoro/presubmit/graalvm-native-a.cfg index fb1979a33..d0c295213 100644 --- a/.kokoro/presubmit/graalvm-native.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { @@ -31,3 +31,8 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-b.cfg similarity index 74% rename from .kokoro/presubmit/graalvm-native-17.cfg rename to .kokoro/presubmit/graalvm-native-b.cfg index 07ae08a98..962c305ff 100644 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,12 +3,12 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { key: "JOB_TYPE" - value: "graalvm17" + value: "graalvm" } # TODO: remove this after we've migrated all tests and scripts @@ -30,4 +30,9 @@ env_vars: { env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" } \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg new file mode 100644 index 000000000..87b5dff65 --- /dev/null +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -0,0 +1,38 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b65dd279c..ff092b68e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -84,7 +84,7 @@ Code in this repo is formatted with [google-java-format](https://github.com/google/google-java-format). To run formatting on your project, you can run: ``` -mvn com.coveo:fmt-maven-plugin:format +mvn com.spotify.fmt:fmt-maven-plugin:format ``` [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account diff --git a/README.md b/README.md index ea9463cd1..748acba71 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.58.0') +implementation platform('com.google.cloud:libraries-bom:26.59.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index ee80bf8b3..26559e519 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.55.1 -googleapis_commitish: 2b63b9276dca4d5046470fe5e1022bd982629f62 -libraries_bom_version: 26.58.0 +gapic_generator_version: 2.56.2 +googleapis_commitish: 261895f1d8ced9564f4cf872f7f4f9a1f4c615d3 +libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java index 59ea25ae7..445ba7287 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -34,7 +34,8 @@ * processing code is idempotent, as you may receive any given message more than once. */ @BetaApi( - "This is a preview feature. For more details, see https://cloud.google.com/pubsub/docs/exactly-once-delivery.") + "This is a preview feature. For more details, see" + + " https://cloud.google.com/pubsub/docs/exactly-once-delivery.") public interface AckReplyConsumerWithResponse { /** * Acknowledges that the message has been successfully processed. The service will not send the diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 4b9ea3825..36ec5dc36 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -185,9 +185,7 @@ private Subscriber(Builder builder) { flowController = new FlowController( - builder - .flowControlSettings - .toBuilder() + builder.flowControlSettings.toBuilder() .setLimitExceededBehavior(LimitExceededBehavior.Block) .build()); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 9cda4b223..3b6a28ee6 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1223,7 +1223,8 @@ public UnaryCallable getIamPolicyCallable() { public BidiStreamingCallable streamingPullCallable() { throw new UnsupportedOperationException( - "Not implemented: streamingPullCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamingPullCallable(). REST transport is not implemented for this" + + " method yet."); } @Override diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 5b2148c36..e01c205a6 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -189,7 +189,8 @@ public void listTopicSubscriptions( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", + "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), ListTopicSubscriptionsResponse.class.getName(), Exception.class.getName()))); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index c2324f0b7..71c5edb34 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -212,7 +212,8 @@ public void deleteSchemaRevision( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method DeleteSchemaRevision, expected %s or %s", + "Unrecognized response type %s for method DeleteSchemaRevision, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), Schema.class.getName(), Exception.class.getName()))); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index e466178eb..cd711d2a2 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -265,7 +265,8 @@ public void onNext(StreamingPullRequest value) { responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method StreamingPull, expected %s or %s", + "Unrecognized response type %s for method StreamingPull, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), StreamingPullResponse.class.getName(), Exception.class.getName()))); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index cdefa84f7..39155c848 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -118,8 +118,7 @@ public void testPublishByDuration() throws Exception { getTestPublisherBuilder() // To demonstrate that reaching duration will trigger publish .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofSeconds(5)) .setElementCountThreshold(10L) .build()) @@ -148,8 +147,7 @@ public void testPublishByNumBatchedMessages() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -187,8 +185,7 @@ public void testSinglePublishByNumBytes() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -223,8 +220,7 @@ public void testPublishByShutdown() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofSeconds(100)) .setElementCountThreshold(10L) .build()) @@ -256,8 +252,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { getTestPublisherBuilder() // To demonstrate that reaching duration will trigger publish .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -297,8 +292,7 @@ public void testPublishWithCompression() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -328,8 +322,7 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(3L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -381,8 +374,7 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(10L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -444,8 +436,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(10L) .setRequestByteThreshold(64L) .setDelayThresholdDuration(Duration.ofSeconds(100)) @@ -488,8 +479,7 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) @@ -671,8 +661,7 @@ public void testErrorPropagation() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -692,8 +681,7 @@ public void testPublishFailureRetries() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -716,8 +704,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) @@ -741,8 +728,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(3) .build()) @@ -766,8 +752,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) @@ -792,13 +777,11 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .build()) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -876,8 +859,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(null) .build()); fail("Should have thrown an NullPointerException"); @@ -886,8 +868,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(0L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -896,8 +877,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(-1L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -906,8 +886,7 @@ public void testBuilderInvalidArguments() { } builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofMillis(1)) .build()); try { @@ -919,8 +898,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofMillis(-1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -929,14 +907,12 @@ public void testBuilderInvalidArguments() { } builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .build()); try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(null) .build()); fail("Should have thrown an NullPointerException"); @@ -945,8 +921,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(0L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -955,8 +930,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(-1L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -965,14 +939,12 @@ public void testBuilderInvalidArguments() { } builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT) .build()); try { builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -980,14 +952,12 @@ public void testBuilderInvalidArguments() { // Expected } builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT) .build()); try { builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -1001,8 +971,7 @@ public void testPartialBatchingSettings() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.getDefaultBatchingSettings() - .toBuilder() + Publisher.Builder.getDefaultBatchingSettings().toBuilder() .setRequestByteThreshold(5000L) .build()) .build(); @@ -1014,8 +983,7 @@ public void testPartialBatchingSettings() throws Exception { publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.getDefaultBatchingSettings() - .toBuilder() + Publisher.Builder.getDefaultBatchingSettings().toBuilder() .setElementCountThreshold(500L) .build()) .build(); @@ -1031,8 +999,7 @@ public void testAwaitTermination() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) @@ -1065,8 +1032,7 @@ public void invalidFlowControlBytes_throwException() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1090,8 +1056,7 @@ public void invalidFlowControlElementCount_throwException() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1115,8 +1080,7 @@ public void testMessageExceedsFlowControlLimits_throwException() throws Exceptio getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1143,8 +1107,7 @@ public void testPublishFlowControl_throwException() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1185,8 +1148,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1232,8 +1194,7 @@ public void testPublishFlowControl_block() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1324,8 +1285,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { final Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 679d37e40..253a91f73 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -297,8 +297,7 @@ public void testPartialFlowControlSettings() throws Exception { Subscriber subscriber = getTestSubscriberBuilder(testReceiver) .setFlowControlSettings( - Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS - .toBuilder() + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.toBuilder() .setMaxOutstandingElementCount(500L) .build()) .build(); @@ -310,8 +309,7 @@ public void testPartialFlowControlSettings() throws Exception { subscriber = getTestSubscriberBuilder(testReceiver) .setFlowControlSettings( - Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS - .toBuilder() + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.toBuilder() .setMaxOutstandingRequestBytes(5_000_000_000L) .build()) .build(); diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 851a57745..a1b0a2b1c 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -422,6 +422,19 @@ public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp return PublisherStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static PublisherBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PublisherBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherBlockingV2Stub(channel, callOptions); + } + }; + return PublisherBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -799,6 +812,154 @@ public void detachSubscription( * messages to a topic. *
*/ + public static final class PublisherBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PublisherBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates the given topic with the given name. See the [resource name rules]
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
+     * 
+ */ + public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing topic by updating the fields specified in the update
+     * mask. Note that certain properties of a topic are not modifiable.
+     * 
+ */ + public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
+     * does not exist.
+     * 
+ */ + public com.google.pubsub.v1.PublishResponse publish( + com.google.pubsub.v1.PublishRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPublishMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the configuration of a topic.
+     * 
+ */ + public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists matching topics.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicsResponse listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the names of the attached subscriptions on this topic.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the names of the snapshots on this topic. Snapshots are used in
+     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
+     * which allow you to manage message acknowledgments in bulk. That is, you can
+     * set the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
+     * does not exist. After a topic is deleted, a new topic may be created with
+     * the same name; this is an entirely new topic with none of the old
+     * configuration or subscriptions. Existing subscriptions to this topic are
+     * not deleted, but their `topic` field is set to `_deleted-topic_`.
+     * 
+ */ + public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detaches a subscription from this topic. All messages retained in the
+     * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
+     * will return FAILED_PRECONDITION. If the subscription is a push
+     * subscription, pushes to the endpoint will stop.
+     * 
+ */ + public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Publisher. + * + *
+   * The service that an application uses to manipulate topics, and to send
+   * messages to a topic.
+   * 
+ */ public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 076e1f798..35c281c88 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -467,6 +467,19 @@ public SchemaServiceStub newStub( return SchemaServiceStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SchemaServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingV2Stub(channel, callOptions); + } + }; + return SchemaServiceBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -848,6 +861,155 @@ public void validateMessage( * Service for doing schema-related operations. * */ + public static final class SchemaServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema createSchema( + com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists schemas in a project.
+     * 
+ */ + public com.google.pubsub.v1.ListSchemasResponse listSchemas( + com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all schema revisions for the named schema.
+     * 
+ */ + public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Commits a new schema revision to an existing schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new schema revision that is a copy of the provided revision_id.
+     * 
+ */ + public com.google.pubsub.v1.Schema rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a specific schema revision.
+     * 
+ */ + public com.google.pubsub.v1.Schema deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + public com.google.protobuf.Empty deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Validates a message against a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateMessageResponse validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateMessageMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SchemaService. + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ public static final class SchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index b4b3b9471..531c82e20 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -698,6 +698,19 @@ public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO return SubscriberStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SubscriberBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SubscriberBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberBlockingV2Stub(channel, callOptions); + } + }; + return SubscriberBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -1408,6 +1421,311 @@ public void seek( * establishing a bi-directional stream using the `StreamingPull` method. * */ + public static final class SubscriberBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SubscriberBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SubscriberBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a subscription to a given topic. See the [resource name rules]
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
+     * If the subscription already exists, returns `ALREADY_EXISTS`.
+     * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
+     * If the name is not provided in the request, the server will assign a random
+     * name for this subscription on the same project as the topic, conforming
+     * to the [resource name format]
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
+     * generated name is populated in the returned Subscription object. Note that
+     * for REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.pubsub.v1.Subscription createSubscription( + com.google.pubsub.v1.Subscription request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the configuration details of a subscription.
+     * 
+ */ + public com.google.pubsub.v1.Subscription getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing subscription by updating the fields specified in the
+     * update mask. Note that certain properties of a subscription, such as its
+     * topic, are not modifiable.
+     * 
+ */ + public com.google.pubsub.v1.Subscription updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists matching subscriptions.
+     * 
+ */ + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing subscription. All messages retained in the subscription
+     * are immediately dropped. Calls to `Pull` after deletion will return
+     * `NOT_FOUND`. After a subscription is deleted, a new one may be created with
+     * the same name, but the new one has no association with the old
+     * subscription or its topic unless the same topic is specified.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies the ack deadline for a specific message. This method is useful
+     * to indicate that more time is needed to process a message by the
+     * subscriber, or to make the message available for redelivery if the
+     * processing was interrupted. Note that this does not modify the
+     * subscription-level `ackDeadlineSeconds` used for subsequent messages.
+     * 
+ */ + public com.google.protobuf.Empty modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Acknowledges the messages associated with the `ack_ids` in the
+     * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
+     * from the subscription.
+     * Acknowledging a message whose ack deadline has expired may succeed,
+     * but such a message may be redelivered later. Acknowledging a message more
+     * than once will not result in an error.
+     * 
+ */ + public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Pulls messages from the server.
+     * 
+ */ + public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPullMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Establishes a stream with the server, which sends messages down to the
+     * client. The client streams acknowledgements and ack deadline modifications
+     * back to the server. The server will close the stream and return the status
+     * on any error. The server may close the stream with status `UNAVAILABLE` to
+     * reassign server-side resources, in which case, the client should
+     * re-establish the stream. Flow control can be achieved by configuring the
+     * underlying RPC channel.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> + streamingPull() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamingPullMethod(), getCallOptions()); + } + + /** + * + * + *
+     * Modifies the `PushConfig` for a specified subscription.
+     * This may be used to change a push subscription to a pull one (signified by
+     * an empty `PushConfig`) or vice versa, or change the endpoint URL and other
+     * attributes of a push subscription. Messages will accumulate for delivery
+     * continuously through the call regardless of changes to the `PushConfig`.
+     * 
+ */ + public com.google.protobuf.Empty modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the configuration details of a snapshot. Snapshots are used in
+     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
+     * which allow you to manage message acknowledgments in bulk. That is, you can
+     * set the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the existing snapshots. Snapshots are used in [Seek](
+     * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
+     * allow you to manage message acknowledgments in bulk. That is, you can set
+     * the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * 
+ */ + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a snapshot from the requested subscription. Snapshots are used in
+     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
+     * which allow you to manage message acknowledgments in bulk. That is, you can
+     * set the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * If the snapshot already exists, returns `ALREADY_EXISTS`.
+     * If the requested subscription doesn't exist, returns `NOT_FOUND`.
+     * If the backlog in the subscription is too old -- and the resulting snapshot
+     * would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
+     * See also the `Snapshot.expire_time` field. If the name is not provided in
+     * the request, the server will assign a random
+     * name for this snapshot on the same project as the subscription, conforming
+     * to the [resource name format]
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
+     * generated name is populated in the returned Snapshot object. Note that for
+     * REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing snapshot by updating the fields specified in the update
+     * mask. Snapshots are used in
+     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
+     * which allow you to manage message acknowledgments in bulk. That is, you can
+     * set the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes an existing snapshot. Snapshots are used in [Seek]
+     * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
+     * allow you to manage message acknowledgments in bulk. That is, you can set
+     * the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot.
+     * When the snapshot is deleted, all messages retained in the snapshot
+     * are immediately dropped. After a snapshot is deleted, a new one may be
+     * created with the same name, but the new one has no association with the old
+     * snapshot or its subscription, unless the same subscription is specified.
+     * 
+ */ + public com.google.protobuf.Empty deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Seeks an existing subscription to a point in time or to a given snapshot,
+     * whichever is provided in the request. Snapshots are used in [Seek]
+     * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
+     * allow you to manage message acknowledgments in bulk. That is, you can set
+     * the acknowledgment state of messages in an existing subscription to the
+     * state captured by a snapshot. Note that both the subscription and the
+     * snapshot must be on the same topic.
+     * 
+ */ + public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Subscriber. + * + *
+   * The service that an application uses to manipulate subscriptions and to
+   * consume messages from a subscription via the `Pull` method or by
+   * establishing a bi-directional stream using the `StreamingPull` method.
+   * 
+ */ public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 7a24cea04..29832d367 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -33,6 +33,7 @@ public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use AcknowledgeRequest.newBuilder() to construct. private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -126,6 +129,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -142,6 +146,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -158,6 +163,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -175,6 +181,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -367,6 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -572,6 +580,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -597,6 +606,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -622,6 +632,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -646,6 +657,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -666,6 +678,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -701,6 +714,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -718,6 +732,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -734,6 +749,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -751,6 +767,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -768,6 +785,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -793,6 +811,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -817,6 +836,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -838,6 +858,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -858,6 +879,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 9f3f8bd60..ce9853a20 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface AcknowledgeRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -69,6 +70,7 @@ public interface AcknowledgeRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -83,6 +85,7 @@ public interface AcknowledgeRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -98,6 +101,7 @@ public interface AcknowledgeRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 7508d4817..abe0d01d6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -33,6 +33,7 @@ public final class BigQueryConfig extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigQueryConfig) BigQueryConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use BigQueryConfig.newBuilder() to construct. private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -154,6 +155,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -164,6 +166,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -179,6 +182,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED = 2; */ public static final int PERMISSION_DENIED_VALUE = 2; + /** * * @@ -189,6 +193,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** * * @@ -199,6 +204,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_MISMATCH = 4; */ public static final int SCHEMA_MISMATCH_VALUE = 4; + /** * * @@ -304,6 +310,7 @@ private State(int value) { @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; + /** * * @@ -328,6 +335,7 @@ public java.lang.String getTable() { return s; } } + /** * * @@ -355,6 +363,7 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; private boolean useTopicSchema_ = false; + /** * * @@ -375,6 +384,7 @@ public boolean getUseTopicSchema() { public static final int WRITE_METADATA_FIELD_NUMBER = 3; private boolean writeMetadata_ = false; + /** * * @@ -397,6 +407,7 @@ public boolean getWriteMetadata() { public static final int DROP_UNKNOWN_FIELDS_FIELD_NUMBER = 4; private boolean dropUnknownFields_ = false; + /** * * @@ -419,6 +430,7 @@ public boolean getDropUnknownFields() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; + /** * * @@ -437,6 +449,7 @@ public boolean getDropUnknownFields() { public int getStateValue() { return state_; } + /** * * @@ -460,6 +473,7 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { public static final int USE_TABLE_SCHEMA_FIELD_NUMBER = 6; private boolean useTableSchema_ = false; + /** * * @@ -482,6 +496,7 @@ public boolean getUseTableSchema() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -510,6 +525,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -750,6 +766,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1012,6 +1029,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object table_ = ""; + /** * * @@ -1035,6 +1053,7 @@ public java.lang.String getTable() { return (java.lang.String) ref; } } + /** * * @@ -1058,6 +1077,7 @@ public com.google.protobuf.ByteString getTableBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1080,6 +1100,7 @@ public Builder setTable(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1098,6 +1119,7 @@ public Builder clearTable() { onChanged(); return this; } + /** * * @@ -1123,6 +1145,7 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { } private boolean useTopicSchema_; + /** * * @@ -1140,6 +1163,7 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { public boolean getUseTopicSchema() { return useTopicSchema_; } + /** * * @@ -1161,6 +1185,7 @@ public Builder setUseTopicSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1182,6 +1207,7 @@ public Builder clearUseTopicSchema() { } private boolean writeMetadata_; + /** * * @@ -1201,6 +1227,7 @@ public Builder clearUseTopicSchema() { public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1224,6 +1251,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -1247,6 +1275,7 @@ public Builder clearWriteMetadata() { } private boolean dropUnknownFields_; + /** * * @@ -1266,6 +1295,7 @@ public Builder clearWriteMetadata() { public boolean getDropUnknownFields() { return dropUnknownFields_; } + /** * * @@ -1289,6 +1319,7 @@ public Builder setDropUnknownFields(boolean value) { onChanged(); return this; } + /** * * @@ -1312,6 +1343,7 @@ public Builder clearDropUnknownFields() { } private int state_ = 0; + /** * * @@ -1330,6 +1362,7 @@ public Builder clearDropUnknownFields() { public int getStateValue() { return state_; } + /** * * @@ -1351,6 +1384,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -1371,6 +1405,7 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } + /** * * @@ -1395,6 +1430,7 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { onChanged(); return this; } + /** * * @@ -1417,6 +1453,7 @@ public Builder clearState() { } private boolean useTableSchema_; + /** * * @@ -1434,6 +1471,7 @@ public Builder clearState() { public boolean getUseTableSchema() { return useTableSchema_; } + /** * * @@ -1455,6 +1493,7 @@ public Builder setUseTableSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1476,6 +1515,7 @@ public Builder clearUseTableSchema() { } private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -1503,6 +1543,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -1530,6 +1571,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1556,6 +1598,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1578,6 +1621,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1856e1631..6631b9625 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -37,6 +37,7 @@ public interface BigQueryConfigOrBuilder * @return The table. */ java.lang.String getTable(); + /** * * @@ -115,6 +116,7 @@ public interface BigQueryConfigOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -163,6 +165,7 @@ public interface BigQueryConfigOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index c2743bc50..6d4d9bbfb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -33,6 +33,7 @@ public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig) CloudStorageConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorageConfig.newBuilder() to construct. private CloudStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -154,6 +155,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -164,6 +166,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -175,6 +178,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED = 2; */ public static final int PERMISSION_DENIED_VALUE = 2; + /** * * @@ -185,6 +189,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** * * @@ -196,6 +201,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; + /** * * @@ -301,6 +307,7 @@ public interface TextConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.TextConfig) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -317,6 +324,7 @@ public static final class TextConfig extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) TextConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use TextConfig.newBuilder() to construct. private TextConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -496,6 +504,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -760,6 +769,7 @@ public interface AvroConfigOrBuilder */ boolean getUseTopicSchema(); } + /** * * @@ -775,6 +785,7 @@ public static final class AvroConfig extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) AvroConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroConfig.newBuilder() to construct. private AvroConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -805,6 +816,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int WRITE_METADATA_FIELD_NUMBER = 1; private boolean writeMetadata_ = false; + /** * * @@ -828,6 +840,7 @@ public boolean getWriteMetadata() { public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; private boolean useTopicSchema_ = false; + /** * * @@ -1014,6 +1027,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1213,6 +1227,7 @@ public Builder mergeFrom( private int bitField0_; private boolean writeMetadata_; + /** * * @@ -1233,6 +1248,7 @@ public Builder mergeFrom( public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1257,6 +1273,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -1281,6 +1298,7 @@ public Builder clearWriteMetadata() { } private boolean useTopicSchema_; + /** * * @@ -1297,6 +1315,7 @@ public Builder clearWriteMetadata() { public boolean getUseTopicSchema() { return useTopicSchema_; } + /** * * @@ -1317,6 +1336,7 @@ public Builder setUseTopicSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1418,6 +1438,7 @@ public enum OutputFormatCase private OutputFormatCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -1454,6 +1475,7 @@ public OutputFormatCase getOutputFormatCase() { @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -1480,6 +1502,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -1511,6 +1534,7 @@ public com.google.protobuf.ByteString getBucketBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenamePrefix_ = ""; + /** * * @@ -1535,6 +1559,7 @@ public java.lang.String getFilenamePrefix() { return s; } } + /** * * @@ -1564,6 +1589,7 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenameSuffix_ = ""; + /** * * @@ -1589,6 +1615,7 @@ public java.lang.String getFilenameSuffix() { return s; } } + /** * * @@ -1619,6 +1646,7 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenameDatetimeFormat_ = ""; + /** * * @@ -1644,6 +1672,7 @@ public java.lang.String getFilenameDatetimeFormat() { return s; } } + /** * * @@ -1671,6 +1700,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { } public static final int TEXT_CONFIG_FIELD_NUMBER = 4; + /** * * @@ -1689,6 +1719,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { public boolean hasTextConfig() { return outputFormatCase_ == 4; } + /** * * @@ -1710,6 +1741,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { } return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } + /** * * @@ -1731,6 +1763,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig } public static final int AVRO_CONFIG_FIELD_NUMBER = 5; + /** * * @@ -1749,6 +1782,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig public boolean hasAvroConfig() { return outputFormatCase_ == 5; } + /** * * @@ -1770,6 +1804,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { } return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } + /** * * @@ -1792,6 +1827,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public static final int MAX_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration maxDuration_; + /** * * @@ -1810,6 +1846,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public boolean hasMaxDuration() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -1828,6 +1865,7 @@ public boolean hasMaxDuration() { public com.google.protobuf.Duration getMaxDuration() { return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } + /** * * @@ -1847,6 +1885,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { public static final int MAX_BYTES_FIELD_NUMBER = 7; private long maxBytes_ = 0L; + /** * * @@ -1867,6 +1906,7 @@ public long getMaxBytes() { public static final int MAX_MESSAGES_FIELD_NUMBER = 8; private long maxMessages_ = 0L; + /** * * @@ -1886,6 +1926,7 @@ public long getMaxMessages() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; + /** * * @@ -1904,6 +1945,7 @@ public long getMaxMessages() { public int getStateValue() { return state_; } + /** * * @@ -1929,6 +1971,7 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -1957,6 +2000,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -2260,6 +2304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -2634,6 +2679,7 @@ public Builder clearOutputFormat() { private int bitField0_; private java.lang.Object bucket_ = ""; + /** * * @@ -2659,6 +2705,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -2684,6 +2731,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2708,6 +2756,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2728,6 +2777,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -2755,6 +2805,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenamePrefix_ = ""; + /** * * @@ -2778,6 +2829,7 @@ public java.lang.String getFilenamePrefix() { return (java.lang.String) ref; } } + /** * * @@ -2801,6 +2853,7 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2823,6 +2876,7 @@ public Builder setFilenamePrefix(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2841,6 +2895,7 @@ public Builder clearFilenamePrefix() { onChanged(); return this; } + /** * * @@ -2866,6 +2921,7 @@ public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenameSuffix_ = ""; + /** * * @@ -2890,6 +2946,7 @@ public java.lang.String getFilenameSuffix() { return (java.lang.String) ref; } } + /** * * @@ -2914,6 +2971,7 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2937,6 +2995,7 @@ public Builder setFilenameSuffix(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2956,6 +3015,7 @@ public Builder clearFilenameSuffix() { onChanged(); return this; } + /** * * @@ -2982,6 +3042,7 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenameDatetimeFormat_ = ""; + /** * * @@ -3006,6 +3067,7 @@ public java.lang.String getFilenameDatetimeFormat() { return (java.lang.String) ref; } } + /** * * @@ -3030,6 +3092,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3053,6 +3116,7 @@ public Builder setFilenameDatetimeFormat(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3072,6 +3136,7 @@ public Builder clearFilenameDatetimeFormat() { onChanged(); return this; } + /** * * @@ -3102,6 +3167,7 @@ public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString val com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> textConfigBuilder_; + /** * * @@ -3120,6 +3186,7 @@ public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString val public boolean hasTextConfig() { return outputFormatCase_ == 4; } + /** * * @@ -3148,6 +3215,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } } + /** * * @@ -3173,6 +3241,7 @@ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig outputFormatCase_ = 4; return this; } + /** * * @@ -3196,6 +3265,7 @@ public Builder setTextConfig( outputFormatCase_ = 4; return this; } + /** * * @@ -3232,6 +3302,7 @@ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfi outputFormatCase_ = 4; return this; } + /** * * @@ -3260,6 +3331,7 @@ public Builder clearTextConfig() { } return this; } + /** * * @@ -3275,6 +3347,7 @@ public Builder clearTextConfig() { public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { return getTextConfigFieldBuilder().getBuilder(); } + /** * * @@ -3298,6 +3371,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } } + /** * * @@ -3339,6 +3413,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> avroConfigBuilder_; + /** * * @@ -3357,6 +3432,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig public boolean hasAvroConfig() { return outputFormatCase_ == 5; } + /** * * @@ -3385,6 +3461,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } } + /** * * @@ -3410,6 +3487,7 @@ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig outputFormatCase_ = 5; return this; } + /** * * @@ -3433,6 +3511,7 @@ public Builder setAvroConfig( outputFormatCase_ = 5; return this; } + /** * * @@ -3469,6 +3548,7 @@ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfi outputFormatCase_ = 5; return this; } + /** * * @@ -3497,6 +3577,7 @@ public Builder clearAvroConfig() { } return this; } + /** * * @@ -3512,6 +3593,7 @@ public Builder clearAvroConfig() { public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { return getAvroConfigFieldBuilder().getBuilder(); } + /** * * @@ -3535,6 +3617,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } } + /** * * @@ -3577,6 +3660,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDurationBuilder_; + /** * * @@ -3594,6 +3678,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public boolean hasMaxDuration() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -3617,6 +3702,7 @@ public com.google.protobuf.Duration getMaxDuration() { return maxDurationBuilder_.getMessage(); } } + /** * * @@ -3642,6 +3728,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -3664,6 +3751,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal onChanged(); return this; } + /** * * @@ -3694,6 +3782,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -3716,6 +3805,7 @@ public Builder clearMaxDuration() { onChanged(); return this; } + /** * * @@ -3733,6 +3823,7 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { onChanged(); return getMaxDurationFieldBuilder().getBuilder(); } + /** * * @@ -3754,6 +3845,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { : maxDuration_; } } + /** * * @@ -3784,6 +3876,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { } private long maxBytes_; + /** * * @@ -3801,6 +3894,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { public long getMaxBytes() { return maxBytes_; } + /** * * @@ -3822,6 +3916,7 @@ public Builder setMaxBytes(long value) { onChanged(); return this; } + /** * * @@ -3843,6 +3938,7 @@ public Builder clearMaxBytes() { } private long maxMessages_; + /** * * @@ -3859,6 +3955,7 @@ public Builder clearMaxBytes() { public long getMaxMessages() { return maxMessages_; } + /** * * @@ -3879,6 +3976,7 @@ public Builder setMaxMessages(long value) { onChanged(); return this; } + /** * * @@ -3899,6 +3997,7 @@ public Builder clearMaxMessages() { } private int state_ = 0; + /** * * @@ -3917,6 +4016,7 @@ public Builder clearMaxMessages() { public int getStateValue() { return state_; } + /** * * @@ -3938,6 +4038,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -3958,6 +4059,7 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } + /** * * @@ -3982,6 +4084,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { onChanged(); return this; } + /** * * @@ -4004,6 +4107,7 @@ public Builder clearState() { } private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -4031,6 +4135,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -4058,6 +4163,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -4084,6 +4190,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -4106,6 +4213,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d01518bda..b4977dc74 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -39,6 +39,7 @@ public interface CloudStorageConfigOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -68,6 +69,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenamePrefix. */ java.lang.String getFilenamePrefix(); + /** * * @@ -96,6 +98,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenameSuffix. */ java.lang.String getFilenameSuffix(); + /** * * @@ -125,6 +128,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenameDatetimeFormat. */ java.lang.String getFilenameDatetimeFormat(); + /** * * @@ -155,6 +159,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the textConfig field is set. */ boolean hasTextConfig(); + /** * * @@ -170,6 +175,7 @@ public interface CloudStorageConfigOrBuilder * @return The textConfig. */ com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig(); + /** * * @@ -199,6 +205,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the avroConfig field is set. */ boolean hasAvroConfig(); + /** * * @@ -214,6 +221,7 @@ public interface CloudStorageConfigOrBuilder * @return The avroConfig. */ com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig(); + /** * * @@ -243,6 +251,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the maxDuration field is set. */ boolean hasMaxDuration(); + /** * * @@ -258,6 +267,7 @@ public interface CloudStorageConfigOrBuilder * @return The maxDuration. */ com.google.protobuf.Duration getMaxDuration(); + /** * * @@ -316,6 +326,7 @@ public interface CloudStorageConfigOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -349,6 +360,7 @@ public interface CloudStorageConfigOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index c2c5e3623..413633f6e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -33,6 +33,7 @@ public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.CommitSchemaRequest) CommitSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CommitSchemaRequest.newBuilder() to construct. private CommitSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -138,6 +142,7 @@ public com.google.protobuf.ByteString getNameBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -153,6 +158,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -339,6 +345,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -551,6 +558,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -576,6 +584,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -601,6 +610,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -625,6 +635,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -645,6 +656,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -677,6 +689,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -691,6 +704,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -709,6 +723,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -731,6 +746,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -750,6 +766,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -777,6 +794,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -796,6 +814,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -810,6 +829,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -826,6 +846,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 1edbdf9f7..de5fa4e7f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface CommitSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -67,6 +68,7 @@ public interface CommitSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -79,6 +81,7 @@ public interface CommitSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index dc1cfd98d..ddc3093a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -33,6 +33,7 @@ public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) CreateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CreateSchemaRequest.newBuilder() to construct. private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -95,6 +97,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -124,6 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -143,6 +147,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -162,6 +167,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -184,6 +190,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; + /** * * @@ -211,6 +218,7 @@ public java.lang.String getSchemaId() { return s; } } + /** * * @@ -420,6 +428,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -647,6 +656,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -672,6 +682,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -697,6 +708,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -721,6 +733,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -741,6 +754,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -773,6 +787,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -791,6 +806,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -813,6 +829,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -839,6 +856,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -862,6 +880,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -893,6 +912,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -916,6 +936,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -934,6 +955,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -954,6 +976,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * @@ -985,6 +1008,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private java.lang.Object schemaId_ = ""; + /** * * @@ -1011,6 +1035,7 @@ public java.lang.String getSchemaId() { return (java.lang.String) ref; } } + /** * * @@ -1037,6 +1062,7 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1062,6 +1088,7 @@ public Builder setSchemaId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1083,6 +1110,7 @@ public Builder clearSchemaId() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index bd5833c53..09db02945 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface CreateSchemaRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -71,6 +72,7 @@ public interface CreateSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -87,6 +89,7 @@ public interface CreateSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * @@ -118,6 +121,7 @@ public interface CreateSchemaRequestOrBuilder * @return The schemaId. */ java.lang.String getSchemaId(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 33156b713..f6c92ab39 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -33,6 +33,7 @@ public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -80,6 +81,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -110,6 +112,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -145,6 +148,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -178,6 +182,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -238,6 +243,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -255,12 +261,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -275,6 +283,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -296,6 +305,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -503,6 +513,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -742,6 +753,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -771,6 +783,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -800,6 +813,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -828,6 +842,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -852,6 +867,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -883,6 +899,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscription_ = ""; + /** * * @@ -915,6 +932,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -947,6 +965,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -978,6 +997,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1005,6 +1025,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1063,6 +1084,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1080,12 +1102,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1100,6 +1124,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1121,6 +1146,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1148,6 +1174,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1165,12 +1192,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000004; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1192,6 +1221,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000004; return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 4e3005b50..1993fcb45 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -43,6 +43,7 @@ public interface CreateSnapshotRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -85,6 +86,7 @@ public interface CreateSnapshotRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -119,6 +121,7 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -130,9 +133,11 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -144,6 +149,7 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -159,6 +165,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index f69e9df57..51009677c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -37,6 +37,7 @@ public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy) DeadLetterPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use DeadLetterPolicy.newBuilder() to construct. private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -71,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object deadLetterTopic_ = ""; + /** * * @@ -102,6 +104,7 @@ public java.lang.String getDeadLetterTopic() { return s; } } + /** * * @@ -136,6 +139,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_ = 0; + /** * * @@ -330,6 +334,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -530,6 +535,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object deadLetterTopic_ = ""; + /** * * @@ -560,6 +566,7 @@ public java.lang.String getDeadLetterTopic() { return (java.lang.String) ref; } } + /** * * @@ -590,6 +597,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -619,6 +627,7 @@ public Builder setDeadLetterTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -644,6 +653,7 @@ public Builder clearDeadLetterTopic() { onChanged(); return this; } + /** * * @@ -676,6 +686,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { } private int maxDeliveryAttempts_; + /** * * @@ -703,6 +714,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } + /** * * @@ -734,6 +746,7 @@ public Builder setMaxDeliveryAttempts(int value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index dd07b59c0..e5f13f3db 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -44,6 +44,7 @@ public interface DeadLetterPolicyOrBuilder * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index acef5dad6..c941b2ddc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -33,6 +33,7 @@ public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSchemaRequest.newBuilder() to construct. private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 2a41af559..833bb21c6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 3d4db9d4c..a890e0ba2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -33,6 +33,7 @@ public final class DeleteSchemaRevisionRequest extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) DeleteSchemaRevisionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSchemaRevisionRequest.newBuilder() to construct. private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -96,6 +98,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -129,6 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -158,6 +162,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -356,6 +361,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -555,6 +561,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -582,6 +589,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -609,6 +617,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -635,6 +644,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -657,6 +667,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -686,6 +697,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -714,6 +726,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -742,6 +755,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -769,6 +783,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -792,6 +807,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index b8d8f0620..9c74f7198 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -41,6 +41,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -77,6 +78,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder */ @java.lang.Deprecated java.lang.String getRevisionId(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 42ed4e16e..2a26c265d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -33,6 +33,7 @@ public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object snapshot_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 27df98b2d..c9c8a0192 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSnapshotRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index fc6c3429b..6e9a70a2e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class DeleteSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSubscriptionRequest.newBuilder() to construct. private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 1d6385c58..b4c9d0fe8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 9279189c5..1ff347e6d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,6 +33,7 @@ public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteTopicRequest.newBuilder() to construct. private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 74e0aac50..1eba5641a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteTopicRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index b4d6d6a73..3efea7ec1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class DetachSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) DetachSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DetachSubscriptionRequest.newBuilder() to construct. private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 16b220074..43b6725a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DetachSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 808576ae5..9301cd215 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -34,6 +34,7 @@ public final class DetachSubscriptionResponse extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse) DetachSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use DetachSubscriptionResponse.newBuilder() to construct. private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 1ae5ecf81..9ccc59dfe 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -73,6 +73,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { * ENCODING_UNSPECIFIED = 0; */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; + /** * * @@ -83,6 +84,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { * JSON = 1; */ public static final int JSON_VALUE = 1; + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index c26db78ba..cbcdfa760 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -34,6 +34,7 @@ public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy) ExpirationPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use ExpirationPolicy.newBuilder() to construct. private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration ttl_; + /** * * @@ -85,6 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -105,6 +108,7 @@ public boolean hasTtl() { public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } + /** * * @@ -286,6 +290,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -489,6 +494,7 @@ public Builder mergeFrom( com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** * * @@ -508,6 +514,7 @@ public Builder mergeFrom( public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -531,6 +538,7 @@ public com.google.protobuf.Duration getTtl() { return ttlBuilder_.getMessage(); } } + /** * * @@ -558,6 +566,7 @@ public Builder setTtl(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -582,6 +591,7 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -614,6 +624,7 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -638,6 +649,7 @@ public Builder clearTtl() { onChanged(); return this; } + /** * * @@ -657,6 +669,7 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { onChanged(); return getTtlFieldBuilder().getBuilder(); } + /** * * @@ -678,6 +691,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index d61c44494..13d40370b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -41,6 +41,7 @@ public interface ExpirationPolicyOrBuilder * @return Whether the ttl field is set. */ boolean hasTtl(); + /** * * @@ -58,6 +59,7 @@ public interface ExpirationPolicyOrBuilder * @return The ttl. */ com.google.protobuf.Duration getTtl(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 10ca7ae56..441892893 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -33,6 +33,7 @@ public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) GetSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSchemaRequest.newBuilder() to construct. private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -139,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getViewValue() { return view_; } + /** * * @@ -323,6 +328,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -519,6 +525,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -544,6 +551,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -569,6 +577,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -593,6 +602,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -613,6 +623,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -640,6 +651,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -656,6 +668,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -675,6 +688,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -692,6 +706,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -714,6 +729,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index ff5c589a5..f90f40032 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -68,6 +69,7 @@ public interface GetSchemaRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 87620b557..f21acaa42 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -33,6 +33,7 @@ public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object snapshot_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 7e9d9a514..17f4fd93f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSnapshotRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 70a2388eb..1662b80d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSubscriptionRequest.newBuilder() to construct. private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index f77a5594e..7dde24ac7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 3400ff350..245c8e678 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,6 +33,7 @@ public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) GetTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetTopicRequest.newBuilder() to construct. private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -277,6 +280,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -459,6 +463,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -484,6 +489,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -509,6 +515,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -533,6 +540,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -553,6 +561,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index dc6bdd088..8a0092a6e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetTopicRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index ba7ce4fc2..a5d102910 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -33,6 +33,7 @@ public final class IngestionDataSourceSettings extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) IngestionDataSourceSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use IngestionDataSourceSettings.newBuilder() to construct. private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -81,6 +82,7 @@ public interface AwsKinesisOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -109,6 +111,7 @@ public interface AwsKinesisOrBuilder * @return The streamArn. */ java.lang.String getStreamArn(); + /** * * @@ -135,6 +138,7 @@ public interface AwsKinesisOrBuilder * @return The consumerArn. */ java.lang.String getConsumerArn(); + /** * * @@ -163,6 +167,7 @@ public interface AwsKinesisOrBuilder * @return The awsRoleArn. */ java.lang.String getAwsRoleArn(); + /** * * @@ -193,6 +198,7 @@ public interface AwsKinesisOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -209,6 +215,7 @@ public interface AwsKinesisOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -223,6 +230,7 @@ public static final class AwsKinesis extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) AwsKinesisOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsKinesis.newBuilder() to construct. private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -350,6 +358,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -360,6 +369,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -378,6 +388,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * KINESIS_PERMISSION_DENIED = 2; */ public static final int KINESIS_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -390,6 +401,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -400,6 +412,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STREAM_NOT_FOUND = 4; */ public static final int STREAM_NOT_FOUND_VALUE = 4; + /** * * @@ -504,6 +517,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -522,6 +536,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -549,6 +564,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getStat @SuppressWarnings("serial") private volatile java.lang.Object streamArn_ = ""; + /** * * @@ -572,6 +588,7 @@ public java.lang.String getStreamArn() { return s; } } + /** * * @@ -600,6 +617,7 @@ public com.google.protobuf.ByteString getStreamArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object consumerArn_ = ""; + /** * * @@ -624,6 +642,7 @@ public java.lang.String getConsumerArn() { return s; } } + /** * * @@ -653,6 +672,7 @@ public com.google.protobuf.ByteString getConsumerArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object awsRoleArn_ = ""; + /** * * @@ -678,6 +698,7 @@ public java.lang.String getAwsRoleArn() { return s; } } + /** * * @@ -708,6 +729,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -734,6 +756,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -962,6 +985,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1210,6 +1234,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -1228,6 +1253,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -1249,6 +1275,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -1271,6 +1298,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getStat ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED : result; } + /** * * @@ -1296,6 +1324,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -1318,6 +1347,7 @@ public Builder clearState() { } private java.lang.Object streamArn_ = ""; + /** * * @@ -1340,6 +1370,7 @@ public java.lang.String getStreamArn() { return (java.lang.String) ref; } } + /** * * @@ -1362,6 +1393,7 @@ public com.google.protobuf.ByteString getStreamArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1383,6 +1415,7 @@ public Builder setStreamArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1400,6 +1433,7 @@ public Builder clearStreamArn() { onChanged(); return this; } + /** * * @@ -1424,6 +1458,7 @@ public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object consumerArn_ = ""; + /** * * @@ -1447,6 +1482,7 @@ public java.lang.String getConsumerArn() { return (java.lang.String) ref; } } + /** * * @@ -1470,6 +1506,7 @@ public com.google.protobuf.ByteString getConsumerArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1492,6 +1529,7 @@ public Builder setConsumerArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1510,6 +1548,7 @@ public Builder clearConsumerArn() { onChanged(); return this; } + /** * * @@ -1535,6 +1574,7 @@ public Builder setConsumerArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object awsRoleArn_ = ""; + /** * * @@ -1559,6 +1599,7 @@ public java.lang.String getAwsRoleArn() { return (java.lang.String) ref; } } + /** * * @@ -1583,6 +1624,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1606,6 +1648,7 @@ public Builder setAwsRoleArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1625,6 +1668,7 @@ public Builder clearAwsRoleArn() { onChanged(); return this; } + /** * * @@ -1651,6 +1695,7 @@ public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -1676,6 +1721,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -1701,6 +1747,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1725,6 +1772,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1745,6 +1793,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -1856,6 +1905,7 @@ public interface CloudStorageOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -1886,6 +1936,7 @@ public interface CloudStorageOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -1915,6 +1966,7 @@ public interface CloudStorageOrBuilder * @return Whether the textFormat field is set. */ boolean hasTextFormat(); + /** * * @@ -1929,6 +1981,7 @@ public interface CloudStorageOrBuilder * @return The textFormat. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat getTextFormat(); + /** * * @@ -1957,6 +2010,7 @@ public interface CloudStorageOrBuilder * @return Whether the avroFormat field is set. */ boolean hasAvroFormat(); + /** * * @@ -1971,6 +2025,7 @@ public interface CloudStorageOrBuilder * @return The avroFormat. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat getAvroFormat(); + /** * * @@ -2001,6 +2056,7 @@ public interface CloudStorageOrBuilder * @return Whether the pubsubAvroFormat field is set. */ boolean hasPubsubAvroFormat(); + /** * * @@ -2018,6 +2074,7 @@ public interface CloudStorageOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat getPubsubAvroFormat(); + /** * * @@ -2049,6 +2106,7 @@ public interface CloudStorageOrBuilder * @return Whether the minimumObjectCreateTime field is set. */ boolean hasMinimumObjectCreateTime(); + /** * * @@ -2064,6 +2122,7 @@ public interface CloudStorageOrBuilder * @return The minimumObjectCreateTime. */ com.google.protobuf.Timestamp getMinimumObjectCreateTime(); + /** * * @@ -2092,6 +2151,7 @@ public interface CloudStorageOrBuilder * @return The matchGlob. */ java.lang.String getMatchGlob(); + /** * * @@ -2110,6 +2170,7 @@ public interface CloudStorageOrBuilder com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.InputFormatCase getInputFormatCase(); } + /** * * @@ -2124,6 +2185,7 @@ public static final class CloudStorage extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) CloudStorageOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorage.newBuilder() to construct. private CloudStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2248,6 +2310,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -2258,6 +2321,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -2274,6 +2338,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_STORAGE_PERMISSION_DENIED = 2; */ public static final int CLOUD_STORAGE_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -2286,6 +2351,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -2296,6 +2362,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * BUCKET_NOT_FOUND = 4; */ public static final int BUCKET_NOT_FOUND_VALUE = 4; + /** * * @@ -2416,6 +2483,7 @@ public interface TextFormatOrBuilder * @return Whether the delimiter field is set. */ boolean hasDelimiter(); + /** * * @@ -2428,6 +2496,7 @@ public interface TextFormatOrBuilder * @return The delimiter. */ java.lang.String getDelimiter(); + /** * * @@ -2441,6 +2510,7 @@ public interface TextFormatOrBuilder */ com.google.protobuf.ByteString getDelimiterBytes(); } + /** * * @@ -2457,6 +2527,7 @@ public static final class TextFormat extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) TextFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use TextFormat.newBuilder() to construct. private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2493,6 +2564,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; + /** * * @@ -2508,6 +2580,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasDelimiter() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -2531,6 +2604,7 @@ public java.lang.String getDelimiter() { return s; } } + /** * * @@ -2730,6 +2804,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -2933,6 +3008,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object delimiter_ = ""; + /** * * @@ -2947,6 +3023,7 @@ public Builder mergeFrom( public boolean hasDelimiter() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -2969,6 +3046,7 @@ public java.lang.String getDelimiter() { return (java.lang.String) ref; } } + /** * * @@ -2991,6 +3069,7 @@ public com.google.protobuf.ByteString getDelimiterBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3012,6 +3091,7 @@ public Builder setDelimiter(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3029,6 +3109,7 @@ public Builder clearDelimiter() { onChanged(); return this; } + /** * * @@ -3124,6 +3205,7 @@ public interface AvroFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -3140,6 +3222,7 @@ public static final class AvroFormat extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) AvroFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroFormat.newBuilder() to construct. private AvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3330,6 +3413,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3575,6 +3659,7 @@ public interface PubSubAvroFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -3593,6 +3678,7 @@ public static final class PubSubAvroFormat extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) PubSubAvroFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use PubSubAvroFormat.newBuilder() to construct. private PubSubAvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3786,6 +3872,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -4054,6 +4141,7 @@ public enum InputFormatCase private InputFormatCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -4090,6 +4178,7 @@ public InputFormatCase getInputFormatCase() { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -4108,6 +4197,7 @@ public InputFormatCase getInputFormatCase() { public int getStateValue() { return state_; } + /** * * @@ -4135,6 +4225,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getSt @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -4160,6 +4251,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -4187,6 +4279,7 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int TEXT_FORMAT_FIELD_NUMBER = 3; + /** * * @@ -4204,6 +4297,7 @@ public com.google.protobuf.ByteString getBucketBytes() { public boolean hasTextFormat() { return inputFormatCase_ == 3; } + /** * * @@ -4227,6 +4321,7 @@ public boolean hasTextFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat .getDefaultInstance(); } + /** * * @@ -4250,6 +4345,7 @@ public boolean hasTextFormat() { } public static final int AVRO_FORMAT_FIELD_NUMBER = 4; + /** * * @@ -4267,6 +4363,7 @@ public boolean hasTextFormat() { public boolean hasAvroFormat() { return inputFormatCase_ == 4; } + /** * * @@ -4290,6 +4387,7 @@ public boolean hasAvroFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat .getDefaultInstance(); } + /** * * @@ -4313,6 +4411,7 @@ public boolean hasAvroFormat() { } public static final int PUBSUB_AVRO_FORMAT_FIELD_NUMBER = 5; + /** * * @@ -4332,6 +4431,7 @@ public boolean hasAvroFormat() { public boolean hasPubsubAvroFormat() { return inputFormatCase_ == 5; } + /** * * @@ -4357,6 +4457,7 @@ public boolean hasPubsubAvroFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat .getDefaultInstance(); } + /** * * @@ -4383,6 +4484,7 @@ public boolean hasPubsubAvroFormat() { public static final int MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp minimumObjectCreateTime_; + /** * * @@ -4401,6 +4503,7 @@ public boolean hasPubsubAvroFormat() { public boolean hasMinimumObjectCreateTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -4421,6 +4524,7 @@ public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumObjectCreateTime_; } + /** * * @@ -4444,6 +4548,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde @SuppressWarnings("serial") private volatile java.lang.Object matchGlob_ = ""; + /** * * @@ -4469,6 +4574,7 @@ public java.lang.String getMatchGlob() { return s; } } + /** * * @@ -4763,6 +4869,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -5096,6 +5203,7 @@ public Builder clearInputFormat() { private int bitField0_; private int state_ = 0; + /** * * @@ -5114,6 +5222,7 @@ public Builder clearInputFormat() { public int getStateValue() { return state_; } + /** * * @@ -5135,6 +5244,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -5157,6 +5267,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getSt ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED : result; } + /** * * @@ -5182,6 +5293,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -5204,6 +5316,7 @@ public Builder clearState() { } private java.lang.Object bucket_ = ""; + /** * * @@ -5228,6 +5341,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -5252,6 +5366,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5275,6 +5390,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5294,6 +5410,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -5324,6 +5441,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> textFormatBuilder_; + /** * * @@ -5341,6 +5459,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { public boolean hasTextFormat() { return inputFormatCase_ == 3; } + /** * * @@ -5372,6 +5491,7 @@ public boolean hasTextFormat() { .getDefaultInstance(); } } + /** * * @@ -5397,6 +5517,7 @@ public Builder setTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5420,6 +5541,7 @@ public Builder setTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5458,6 +5580,7 @@ public Builder mergeTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5485,6 +5608,7 @@ public Builder clearTextFormat() { } return this; } + /** * * @@ -5500,6 +5624,7 @@ public Builder clearTextFormat() { getTextFormatBuilder() { return getTextFormatFieldBuilder().getBuilder(); } + /** * * @@ -5525,6 +5650,7 @@ public Builder clearTextFormat() { .getDefaultInstance(); } } + /** * * @@ -5569,6 +5695,7 @@ public Builder clearTextFormat() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> avroFormatBuilder_; + /** * * @@ -5586,6 +5713,7 @@ public Builder clearTextFormat() { public boolean hasAvroFormat() { return inputFormatCase_ == 4; } + /** * * @@ -5617,6 +5745,7 @@ public boolean hasAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5642,6 +5771,7 @@ public Builder setAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5665,6 +5795,7 @@ public Builder setAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5703,6 +5834,7 @@ public Builder mergeAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5730,6 +5862,7 @@ public Builder clearAvroFormat() { } return this; } + /** * * @@ -5745,6 +5878,7 @@ public Builder clearAvroFormat() { getAvroFormatBuilder() { return getAvroFormatFieldBuilder().getBuilder(); } + /** * * @@ -5770,6 +5904,7 @@ public Builder clearAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5816,6 +5951,7 @@ public Builder clearAvroFormat() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage .PubSubAvroFormatOrBuilder> pubsubAvroFormatBuilder_; + /** * * @@ -5835,6 +5971,7 @@ public Builder clearAvroFormat() { public boolean hasPubsubAvroFormat() { return inputFormatCase_ == 5; } + /** * * @@ -5868,6 +6005,7 @@ public boolean hasPubsubAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5895,6 +6033,7 @@ public Builder setPubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5920,6 +6059,7 @@ public Builder setPubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5962,6 +6102,7 @@ public Builder mergePubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5991,6 +6132,7 @@ public Builder clearPubsubAvroFormat() { } return this; } + /** * * @@ -6008,6 +6150,7 @@ public Builder clearPubsubAvroFormat() { getPubsubAvroFormatBuilder() { return getPubsubAvroFormatFieldBuilder().getBuilder(); } + /** * * @@ -6035,6 +6178,7 @@ public Builder clearPubsubAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -6085,6 +6229,7 @@ public Builder clearPubsubAvroFormat() { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumObjectCreateTimeBuilder_; + /** * * @@ -6102,6 +6247,7 @@ public Builder clearPubsubAvroFormat() { public boolean hasMinimumObjectCreateTime() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -6125,6 +6271,7 @@ public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { return minimumObjectCreateTimeBuilder_.getMessage(); } } + /** * * @@ -6150,6 +6297,7 @@ public Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -6173,6 +6321,7 @@ public Builder setMinimumObjectCreateTime( onChanged(); return this; } + /** * * @@ -6203,6 +6352,7 @@ public Builder mergeMinimumObjectCreateTime(com.google.protobuf.Timestamp value) } return this; } + /** * * @@ -6225,6 +6375,7 @@ public Builder clearMinimumObjectCreateTime() { onChanged(); return this; } + /** * * @@ -6242,6 +6393,7 @@ public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder() onChanged(); return getMinimumObjectCreateTimeFieldBuilder().getBuilder(); } + /** * * @@ -6263,6 +6415,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde : minimumObjectCreateTime_; } } + /** * * @@ -6293,6 +6446,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde } private java.lang.Object matchGlob_ = ""; + /** * * @@ -6317,6 +6471,7 @@ public java.lang.String getMatchGlob() { return (java.lang.String) ref; } } + /** * * @@ -6341,6 +6496,7 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6364,6 +6520,7 @@ public Builder setMatchGlob(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6383,6 +6540,7 @@ public Builder clearMatchGlob() { onChanged(); return this; } + /** * * @@ -6495,6 +6653,7 @@ public interface AzureEventHubsOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -6523,6 +6682,7 @@ public interface AzureEventHubsOrBuilder * @return The resourceGroup. */ java.lang.String getResourceGroup(); + /** * * @@ -6548,6 +6708,7 @@ public interface AzureEventHubsOrBuilder * @return The namespace. */ java.lang.String getNamespace(); + /** * * @@ -6573,6 +6734,7 @@ public interface AzureEventHubsOrBuilder * @return The eventHub. */ java.lang.String getEventHub(); + /** * * @@ -6599,6 +6761,7 @@ public interface AzureEventHubsOrBuilder * @return The clientId. */ java.lang.String getClientId(); + /** * * @@ -6626,6 +6789,7 @@ public interface AzureEventHubsOrBuilder * @return The tenantId. */ java.lang.String getTenantId(); + /** * * @@ -6652,6 +6816,7 @@ public interface AzureEventHubsOrBuilder * @return The subscriptionId. */ java.lang.String getSubscriptionId(); + /** * * @@ -6678,6 +6843,7 @@ public interface AzureEventHubsOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -6692,6 +6858,7 @@ public interface AzureEventHubsOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -6706,6 +6873,7 @@ public static final class AzureEventHubs extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) AzureEventHubsOrBuilder { private static final long serialVersionUID = 0L; + // Use AzureEventHubs.newBuilder() to construct. private AzureEventHubs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -6848,6 +7016,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -6858,6 +7027,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -6870,6 +7040,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * EVENT_HUBS_PERMISSION_DENIED = 2; */ public static final int EVENT_HUBS_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -6880,6 +7051,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -6890,6 +7062,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NAMESPACE_NOT_FOUND = 4; */ public static final int NAMESPACE_NOT_FOUND_VALUE = 4; + /** * * @@ -6900,6 +7073,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * EVENT_HUB_NOT_FOUND = 5; */ public static final int EVENT_HUB_NOT_FOUND_VALUE = 5; + /** * * @@ -6910,6 +7084,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SUBSCRIPTION_NOT_FOUND = 6; */ public static final int SUBSCRIPTION_NOT_FOUND_VALUE = 6; + /** * * @@ -7018,6 +7193,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -7036,6 +7212,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -7063,6 +7240,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State get @SuppressWarnings("serial") private volatile java.lang.Object resourceGroup_ = ""; + /** * * @@ -7086,6 +7264,7 @@ public java.lang.String getResourceGroup() { return s; } } + /** * * @@ -7114,6 +7293,7 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; + /** * * @@ -7137,6 +7317,7 @@ public java.lang.String getNamespace() { return s; } } + /** * * @@ -7165,6 +7346,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { @SuppressWarnings("serial") private volatile java.lang.Object eventHub_ = ""; + /** * * @@ -7188,6 +7370,7 @@ public java.lang.String getEventHub() { return s; } } + /** * * @@ -7216,6 +7399,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; + /** * * @@ -7240,6 +7424,7 @@ public java.lang.String getClientId() { return s; } } + /** * * @@ -7269,6 +7454,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object tenantId_ = ""; + /** * * @@ -7293,6 +7479,7 @@ public java.lang.String getTenantId() { return s; } } + /** * * @@ -7322,6 +7509,7 @@ public com.google.protobuf.ByteString getTenantIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; + /** * * @@ -7345,6 +7533,7 @@ public java.lang.String getSubscriptionId() { return s; } } + /** * * @@ -7373,6 +7562,7 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -7397,6 +7587,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -7651,6 +7842,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -7946,6 +8138,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -7964,6 +8157,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -7985,6 +8179,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -8007,6 +8202,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State get ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED : result; } + /** * * @@ -8032,6 +8228,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -8054,6 +8251,7 @@ public Builder clearState() { } private java.lang.Object resourceGroup_ = ""; + /** * * @@ -8076,6 +8274,7 @@ public java.lang.String getResourceGroup() { return (java.lang.String) ref; } } + /** * * @@ -8098,6 +8297,7 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8119,6 +8319,7 @@ public Builder setResourceGroup(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8136,6 +8337,7 @@ public Builder clearResourceGroup() { onChanged(); return this; } + /** * * @@ -8160,6 +8362,7 @@ public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { } private java.lang.Object namespace_ = ""; + /** * * @@ -8182,6 +8385,7 @@ public java.lang.String getNamespace() { return (java.lang.String) ref; } } + /** * * @@ -8204,6 +8408,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8225,6 +8430,7 @@ public Builder setNamespace(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8242,6 +8448,7 @@ public Builder clearNamespace() { onChanged(); return this; } + /** * * @@ -8266,6 +8473,7 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { } private java.lang.Object eventHub_ = ""; + /** * * @@ -8288,6 +8496,7 @@ public java.lang.String getEventHub() { return (java.lang.String) ref; } } + /** * * @@ -8310,6 +8519,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8331,6 +8541,7 @@ public Builder setEventHub(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8348,6 +8559,7 @@ public Builder clearEventHub() { onChanged(); return this; } + /** * * @@ -8372,6 +8584,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { } private java.lang.Object clientId_ = ""; + /** * * @@ -8395,6 +8608,7 @@ public java.lang.String getClientId() { return (java.lang.String) ref; } } + /** * * @@ -8418,6 +8632,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8440,6 +8655,7 @@ public Builder setClientId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8458,6 +8674,7 @@ public Builder clearClientId() { onChanged(); return this; } + /** * * @@ -8483,6 +8700,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object tenantId_ = ""; + /** * * @@ -8506,6 +8724,7 @@ public java.lang.String getTenantId() { return (java.lang.String) ref; } } + /** * * @@ -8529,6 +8748,7 @@ public com.google.protobuf.ByteString getTenantIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8551,6 +8771,7 @@ public Builder setTenantId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8569,6 +8790,7 @@ public Builder clearTenantId() { onChanged(); return this; } + /** * * @@ -8594,6 +8816,7 @@ public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscriptionId_ = ""; + /** * * @@ -8616,6 +8839,7 @@ public java.lang.String getSubscriptionId() { return (java.lang.String) ref; } } + /** * * @@ -8638,6 +8862,7 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8659,6 +8884,7 @@ public Builder setSubscriptionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8676,6 +8902,7 @@ public Builder clearSubscriptionId() { onChanged(); return this; } + /** * * @@ -8700,6 +8927,7 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -8723,6 +8951,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -8746,6 +8975,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8768,6 +8998,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8786,6 +9017,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -8897,6 +9129,7 @@ public interface AwsMskOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -8926,6 +9159,7 @@ public interface AwsMskOrBuilder * @return The clusterArn. */ java.lang.String getClusterArn(); + /** * * @@ -8953,6 +9187,7 @@ public interface AwsMskOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -8981,6 +9216,7 @@ public interface AwsMskOrBuilder * @return The awsRoleArn. */ java.lang.String getAwsRoleArn(); + /** * * @@ -9011,6 +9247,7 @@ public interface AwsMskOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -9027,6 +9264,7 @@ public interface AwsMskOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -9041,6 +9279,7 @@ public static final class AwsMsk extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) AwsMskOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsMsk.newBuilder() to construct. private AwsMsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -9158,6 +9397,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -9168,6 +9408,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -9178,6 +9419,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * MSK_PERMISSION_DENIED = 2; */ public static final int MSK_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -9188,6 +9430,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -9198,6 +9441,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLUSTER_NOT_FOUND = 4; */ public static final int CLUSTER_NOT_FOUND_VALUE = 4; + /** * * @@ -9302,6 +9546,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -9320,6 +9565,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -9347,6 +9593,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() @SuppressWarnings("serial") private volatile java.lang.Object clusterArn_ = ""; + /** * * @@ -9371,6 +9618,7 @@ public java.lang.String getClusterArn() { return s; } } + /** * * @@ -9400,6 +9648,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -9424,6 +9673,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -9453,6 +9703,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object awsRoleArn_ = ""; + /** * * @@ -9478,6 +9729,7 @@ public java.lang.String getAwsRoleArn() { return s; } } + /** * * @@ -9508,6 +9760,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -9534,6 +9787,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -9762,6 +10016,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -10007,6 +10262,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -10025,6 +10281,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -10046,6 +10303,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -10068,6 +10326,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED : result; } + /** * * @@ -10092,6 +10351,7 @@ public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk. onChanged(); return this; } + /** * * @@ -10114,6 +10374,7 @@ public Builder clearState() { } private java.lang.Object clusterArn_ = ""; + /** * * @@ -10137,6 +10398,7 @@ public java.lang.String getClusterArn() { return (java.lang.String) ref; } } + /** * * @@ -10160,6 +10422,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10182,6 +10445,7 @@ public Builder setClusterArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10200,6 +10464,7 @@ public Builder clearClusterArn() { onChanged(); return this; } + /** * * @@ -10225,6 +10490,7 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -10248,6 +10514,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -10271,6 +10538,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10293,6 +10561,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10311,6 +10580,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -10336,6 +10606,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object awsRoleArn_ = ""; + /** * * @@ -10360,6 +10631,7 @@ public java.lang.String getAwsRoleArn() { return (java.lang.String) ref; } } + /** * * @@ -10384,6 +10656,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10407,6 +10680,7 @@ public Builder setAwsRoleArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10426,6 +10700,7 @@ public Builder clearAwsRoleArn() { onChanged(); return this; } + /** * * @@ -10452,6 +10727,7 @@ public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -10477,6 +10753,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -10502,6 +10779,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10526,6 +10804,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10546,6 +10825,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -10656,6 +10936,7 @@ public interface ConfluentCloudOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -10684,6 +10965,7 @@ public interface ConfluentCloudOrBuilder * @return The bootstrapServer. */ java.lang.String getBootstrapServer(); + /** * * @@ -10709,6 +10991,7 @@ public interface ConfluentCloudOrBuilder * @return The clusterId. */ java.lang.String getClusterId(); + /** * * @@ -10735,6 +11018,7 @@ public interface ConfluentCloudOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -10763,6 +11047,7 @@ public interface ConfluentCloudOrBuilder * @return The identityPoolId. */ java.lang.String getIdentityPoolId(); + /** * * @@ -10791,6 +11076,7 @@ public interface ConfluentCloudOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -10805,6 +11091,7 @@ public interface ConfluentCloudOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -10819,6 +11106,7 @@ public static final class ConfluentCloud extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) ConfluentCloudOrBuilder { private static final long serialVersionUID = 0L; + // Use ConfluentCloud.newBuilder() to construct. private ConfluentCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -10948,6 +11236,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -10958,6 +11247,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -10969,6 +11259,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; */ public static final int CONFLUENT_CLOUD_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -10979,6 +11270,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -10989,6 +11281,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNREACHABLE_BOOTSTRAP_SERVER = 4; */ public static final int UNREACHABLE_BOOTSTRAP_SERVER_VALUE = 4; + /** * * @@ -10999,6 +11292,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLUSTER_NOT_FOUND = 5; */ public static final int CLUSTER_NOT_FOUND_VALUE = 5; + /** * * @@ -11105,6 +11399,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -11123,6 +11418,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -11150,6 +11446,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State get @SuppressWarnings("serial") private volatile java.lang.Object bootstrapServer_ = ""; + /** * * @@ -11173,6 +11470,7 @@ public java.lang.String getBootstrapServer() { return s; } } + /** * * @@ -11201,6 +11499,7 @@ public com.google.protobuf.ByteString getBootstrapServerBytes() { @SuppressWarnings("serial") private volatile java.lang.Object clusterId_ = ""; + /** * * @@ -11224,6 +11523,7 @@ public java.lang.String getClusterId() { return s; } } + /** * * @@ -11252,6 +11552,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -11276,6 +11577,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -11305,6 +11607,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object identityPoolId_ = ""; + /** * * @@ -11330,6 +11633,7 @@ public java.lang.String getIdentityPoolId() { return s; } } + /** * * @@ -11360,6 +11664,7 @@ public com.google.protobuf.ByteString getIdentityPoolIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -11384,6 +11689,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -11620,6 +11926,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -11885,6 +12192,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -11903,6 +12211,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -11924,6 +12233,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -11946,6 +12256,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State get ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED : result; } + /** * * @@ -11971,6 +12282,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -11993,6 +12305,7 @@ public Builder clearState() { } private java.lang.Object bootstrapServer_ = ""; + /** * * @@ -12015,6 +12328,7 @@ public java.lang.String getBootstrapServer() { return (java.lang.String) ref; } } + /** * * @@ -12037,6 +12351,7 @@ public com.google.protobuf.ByteString getBootstrapServerBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12058,6 +12373,7 @@ public Builder setBootstrapServer(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12075,6 +12391,7 @@ public Builder clearBootstrapServer() { onChanged(); return this; } + /** * * @@ -12099,6 +12416,7 @@ public Builder setBootstrapServerBytes(com.google.protobuf.ByteString value) { } private java.lang.Object clusterId_ = ""; + /** * * @@ -12121,6 +12439,7 @@ public java.lang.String getClusterId() { return (java.lang.String) ref; } } + /** * * @@ -12143,6 +12462,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12164,6 +12484,7 @@ public Builder setClusterId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12181,6 +12502,7 @@ public Builder clearClusterId() { onChanged(); return this; } + /** * * @@ -12205,6 +12527,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -12228,6 +12551,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -12251,6 +12575,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12273,6 +12598,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12291,6 +12617,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -12316,6 +12643,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object identityPoolId_ = ""; + /** * * @@ -12340,6 +12668,7 @@ public java.lang.String getIdentityPoolId() { return (java.lang.String) ref; } } + /** * * @@ -12364,6 +12693,7 @@ public com.google.protobuf.ByteString getIdentityPoolIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12387,6 +12717,7 @@ public Builder setIdentityPoolId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12406,6 +12737,7 @@ public Builder clearIdentityPoolId() { onChanged(); return this; } + /** * * @@ -12432,6 +12764,7 @@ public Builder setIdentityPoolIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -12455,6 +12788,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -12478,6 +12812,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12500,6 +12835,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12518,6 +12854,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -12630,6 +12967,7 @@ public enum SourceCase private SourceCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -12669,6 +13007,7 @@ public SourceCase getSourceCase() { } public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** * * @@ -12686,6 +13025,7 @@ public SourceCase getSourceCase() { public boolean hasAwsKinesis() { return sourceCase_ == 1; } + /** * * @@ -12706,6 +13046,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } + /** * * @@ -12727,6 +13068,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis } public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** * * @@ -12744,6 +13086,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis public boolean hasCloudStorage() { return sourceCase_ == 2; } + /** * * @@ -12764,6 +13107,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto } return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } + /** * * @@ -12785,6 +13129,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto } public static final int AZURE_EVENT_HUBS_FIELD_NUMBER = 3; + /** * * @@ -12802,6 +13147,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto public boolean hasAzureEventHubs() { return sourceCase_ == 3; } + /** * * @@ -12822,6 +13168,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE } return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } + /** * * @@ -12843,6 +13190,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE } public static final int AWS_MSK_FIELD_NUMBER = 5; + /** * * @@ -12860,6 +13208,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE public boolean hasAwsMsk() { return sourceCase_ == 5; } + /** * * @@ -12880,6 +13229,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } + /** * * @@ -12900,6 +13250,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs } public static final int CONFLUENT_CLOUD_FIELD_NUMBER = 6; + /** * * @@ -12917,6 +13268,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs public boolean hasConfluentCloud() { return sourceCase_ == 6; } + /** * * @@ -12937,6 +13289,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu } return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } + /** * * @@ -12959,6 +13312,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; + /** * * @@ -12977,6 +13331,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu public boolean hasPlatformLogsSettings() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -12997,6 +13352,7 @@ public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() : platformLogsSettings_; } + /** * * @@ -13268,6 +13624,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -13587,6 +13944,7 @@ public Builder clearSource() { com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> awsKinesisBuilder_; + /** * * @@ -13604,6 +13962,7 @@ public Builder clearSource() { public boolean hasAwsKinesis() { return sourceCase_ == 1; } + /** * * @@ -13631,6 +13990,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } } + /** * * @@ -13656,6 +14016,7 @@ public Builder setAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13678,6 +14039,7 @@ public Builder setAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13715,6 +14077,7 @@ public Builder mergeAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13742,6 +14105,7 @@ public Builder clearAwsKinesis() { } return this; } + /** * * @@ -13757,6 +14121,7 @@ public Builder clearAwsKinesis() { getAwsKinesisBuilder() { return getAwsKinesisFieldBuilder().getBuilder(); } + /** * * @@ -13780,6 +14145,7 @@ public Builder clearAwsKinesis() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } } + /** * * @@ -13821,6 +14187,7 @@ public Builder clearAwsKinesis() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> cloudStorageBuilder_; + /** * * @@ -13838,6 +14205,7 @@ public Builder clearAwsKinesis() { public boolean hasCloudStorage() { return sourceCase_ == 2; } + /** * * @@ -13865,6 +14233,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } + /** * * @@ -13890,6 +14259,7 @@ public Builder setCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13912,6 +14282,7 @@ public Builder setCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13949,6 +14320,7 @@ public Builder mergeCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13976,6 +14348,7 @@ public Builder clearCloudStorage() { } return this; } + /** * * @@ -13991,6 +14364,7 @@ public Builder clearCloudStorage() { getCloudStorageBuilder() { return getCloudStorageFieldBuilder().getBuilder(); } + /** * * @@ -14014,6 +14388,7 @@ public Builder clearCloudStorage() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } + /** * * @@ -14055,6 +14430,7 @@ public Builder clearCloudStorage() { com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> azureEventHubsBuilder_; + /** * * @@ -14072,6 +14448,7 @@ public Builder clearCloudStorage() { public boolean hasAzureEventHubs() { return sourceCase_ == 3; } + /** * * @@ -14099,6 +14476,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } + /** * * @@ -14124,6 +14502,7 @@ public Builder setAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14146,6 +14525,7 @@ public Builder setAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14183,6 +14563,7 @@ public Builder mergeAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14210,6 +14591,7 @@ public Builder clearAzureEventHubs() { } return this; } + /** * * @@ -14225,6 +14607,7 @@ public Builder clearAzureEventHubs() { getAzureEventHubsBuilder() { return getAzureEventHubsFieldBuilder().getBuilder(); } + /** * * @@ -14248,6 +14631,7 @@ public Builder clearAzureEventHubs() { return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } + /** * * @@ -14289,6 +14673,7 @@ public Builder clearAzureEventHubs() { com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> awsMskBuilder_; + /** * * @@ -14306,6 +14691,7 @@ public Builder clearAzureEventHubs() { public boolean hasAwsMsk() { return sourceCase_ == 5; } + /** * * @@ -14333,6 +14719,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } + /** * * @@ -14357,6 +14744,7 @@ public Builder setAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk sourceCase_ = 5; return this; } + /** * * @@ -14379,6 +14767,7 @@ public Builder setAwsMsk( sourceCase_ = 5; return this; } + /** * * @@ -14414,6 +14803,7 @@ public Builder mergeAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsM sourceCase_ = 5; return this; } + /** * * @@ -14441,6 +14831,7 @@ public Builder clearAwsMsk() { } return this; } + /** * * @@ -14455,6 +14846,7 @@ public Builder clearAwsMsk() { public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder getAwsMskBuilder() { return getAwsMskFieldBuilder().getBuilder(); } + /** * * @@ -14477,6 +14869,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } + /** * * @@ -14517,6 +14910,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> confluentCloudBuilder_; + /** * * @@ -14534,6 +14928,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs public boolean hasConfluentCloud() { return sourceCase_ == 6; } + /** * * @@ -14561,6 +14956,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } + /** * * @@ -14586,6 +14982,7 @@ public Builder setConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14608,6 +15005,7 @@ public Builder setConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14645,6 +15043,7 @@ public Builder mergeConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14672,6 +15071,7 @@ public Builder clearConfluentCloud() { } return this; } + /** * * @@ -14687,6 +15087,7 @@ public Builder clearConfluentCloud() { getConfluentCloudBuilder() { return getConfluentCloudFieldBuilder().getBuilder(); } + /** * * @@ -14710,6 +15111,7 @@ public Builder clearConfluentCloud() { return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } + /** * * @@ -14752,6 +15154,7 @@ public Builder clearConfluentCloud() { com.google.pubsub.v1.PlatformLogsSettings.Builder, com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> platformLogsSettingsBuilder_; + /** * * @@ -14769,6 +15172,7 @@ public Builder clearConfluentCloud() { public boolean hasPlatformLogsSettings() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -14792,6 +15196,7 @@ public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { return platformLogsSettingsBuilder_.getMessage(); } } + /** * * @@ -14817,6 +15222,7 @@ public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings onChanged(); return this; } + /** * * @@ -14840,6 +15246,7 @@ public Builder setPlatformLogsSettings( onChanged(); return this; } + /** * * @@ -14871,6 +15278,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin } return this; } + /** * * @@ -14893,6 +15301,7 @@ public Builder clearPlatformLogsSettings() { onChanged(); return this; } + /** * * @@ -14910,6 +15319,7 @@ public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettings onChanged(); return getPlatformLogsSettingsFieldBuilder().getBuilder(); } + /** * * @@ -14931,6 +15341,7 @@ public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSetting : platformLogsSettings_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index aba0b49cb..84ef926a9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -38,6 +38,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the awsKinesis field is set. */ boolean hasAwsKinesis(); + /** * * @@ -52,6 +53,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The awsKinesis. */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); + /** * * @@ -79,6 +81,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the cloudStorage field is set. */ boolean hasCloudStorage(); + /** * * @@ -93,6 +96,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The cloudStorage. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage(); + /** * * @@ -120,6 +124,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the azureEventHubs field is set. */ boolean hasAzureEventHubs(); + /** * * @@ -134,6 +139,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The azureEventHubs. */ com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs(); + /** * * @@ -162,6 +168,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the awsMsk field is set. */ boolean hasAwsMsk(); + /** * * @@ -176,6 +183,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The awsMsk. */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk(); + /** * * @@ -203,6 +211,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the confluentCloud field is set. */ boolean hasConfluentCloud(); + /** * * @@ -217,6 +226,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The confluentCloud. */ com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud(); + /** * * @@ -246,6 +256,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the platformLogsSettings field is set. */ boolean hasPlatformLogsSettings(); + /** * * @@ -261,6 +272,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The platformLogsSettings. */ com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 624ec551c..206b6d9e9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -34,6 +34,7 @@ public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent) IngestionFailureEventOrBuilder { private static final long serialVersionUID = 0L; + // Use IngestionFailureEvent.newBuilder() to construct. private IngestionFailureEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public interface ApiViolationReasonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -90,6 +92,7 @@ public static final class ApiViolationReason extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) ApiViolationReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use ApiViolationReason.newBuilder() to construct. private ApiViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -270,6 +273,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -512,6 +516,7 @@ public interface AvroFailureReasonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -527,6 +532,7 @@ public static final class AvroFailureReason extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) AvroFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroFailureReason.newBuilder() to construct. private AvroFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -707,6 +713,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -955,6 +962,7 @@ public interface CloudStorageFailureOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -981,6 +989,7 @@ public interface CloudStorageFailureOrBuilder * @return The objectName. */ java.lang.String getObjectName(); + /** * * @@ -1023,6 +1032,7 @@ public interface CloudStorageFailureOrBuilder * @return Whether the avroFailureReason field is set. */ boolean hasAvroFailureReason(); + /** * * @@ -1037,6 +1047,7 @@ public interface CloudStorageFailureOrBuilder * @return The avroFailureReason. */ com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + /** * * @@ -1066,6 +1077,7 @@ public interface CloudStorageFailureOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -1081,6 +1093,7 @@ public interface CloudStorageFailureOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -1098,6 +1111,7 @@ public interface CloudStorageFailureOrBuilder com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); } + /** * * @@ -1112,6 +1126,7 @@ public static final class CloudStorageFailure extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) CloudStorageFailureOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorageFailure.newBuilder() to construct. private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1160,6 +1175,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -1196,6 +1212,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -1219,6 +1236,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -1247,6 +1265,7 @@ public com.google.protobuf.ByteString getBucketBytes() { @SuppressWarnings("serial") private volatile java.lang.Object objectName_ = ""; + /** * * @@ -1271,6 +1290,7 @@ public java.lang.String getObjectName() { return s; } } + /** * * @@ -1298,6 +1318,7 @@ public com.google.protobuf.ByteString getObjectNameBytes() { public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; private long objectGeneration_ = 0L; + /** * * @@ -1316,6 +1337,7 @@ public long getObjectGeneration() { } public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + /** * * @@ -1333,6 +1355,7 @@ public long getObjectGeneration() { public boolean hasAvroFailureReason() { return reasonCase_ == 5; } + /** * * @@ -1353,6 +1376,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu } return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } + /** * * @@ -1374,6 +1398,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + /** * * @@ -1392,6 +1417,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu public boolean hasApiViolationReason() { return reasonCase_ == 6; } + /** * * @@ -1413,6 +1439,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -1654,6 +1681,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1938,6 +1966,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object bucket_ = ""; + /** * * @@ -1960,6 +1989,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -1982,6 +2012,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2003,6 +2034,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2020,6 +2052,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -2044,6 +2077,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { } private java.lang.Object objectName_ = ""; + /** * * @@ -2067,6 +2101,7 @@ public java.lang.String getObjectName() { return (java.lang.String) ref; } } + /** * * @@ -2090,6 +2125,7 @@ public com.google.protobuf.ByteString getObjectNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2112,6 +2148,7 @@ public Builder setObjectName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2130,6 +2167,7 @@ public Builder clearObjectName() { onChanged(); return this; } + /** * * @@ -2155,6 +2193,7 @@ public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { } private long objectGeneration_; + /** * * @@ -2171,6 +2210,7 @@ public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { public long getObjectGeneration() { return objectGeneration_; } + /** * * @@ -2191,6 +2231,7 @@ public Builder setObjectGeneration(long value) { onChanged(); return this; } + /** * * @@ -2215,6 +2256,7 @@ public Builder clearObjectGeneration() { com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> avroFailureReasonBuilder_; + /** * * @@ -2232,6 +2274,7 @@ public Builder clearObjectGeneration() { public boolean hasAvroFailureReason() { return reasonCase_ == 5; } + /** * * @@ -2259,6 +2302,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } } + /** * * @@ -2284,6 +2328,7 @@ public Builder setAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2306,6 +2351,7 @@ public Builder setAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2343,6 +2389,7 @@ public Builder mergeAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2370,6 +2417,7 @@ public Builder clearAvroFailureReason() { } return this; } + /** * * @@ -2385,6 +2433,7 @@ public Builder clearAvroFailureReason() { getAvroFailureReasonBuilder() { return getAvroFailureReasonFieldBuilder().getBuilder(); } + /** * * @@ -2408,6 +2457,7 @@ public Builder clearAvroFailureReason() { return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } } + /** * * @@ -2449,6 +2499,7 @@ public Builder clearAvroFailureReason() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -2467,6 +2518,7 @@ public Builder clearAvroFailureReason() { public boolean hasApiViolationReason() { return reasonCase_ == 6; } + /** * * @@ -2495,6 +2547,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -2521,6 +2574,7 @@ public Builder setApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2544,6 +2598,7 @@ public Builder setApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2582,6 +2637,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2610,6 +2666,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -2626,6 +2683,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -2650,6 +2708,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -2771,6 +2830,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The clusterArn. */ java.lang.String getClusterArn(); + /** * * @@ -2796,6 +2856,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The kafkaTopic. */ java.lang.String getKafkaTopic(); + /** * * @@ -2851,6 +2912,7 @@ public interface AwsMskFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -2866,6 +2928,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -2883,6 +2946,7 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -2897,6 +2961,7 @@ public static final class AwsMskFailureReason extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsMskFailureReason.newBuilder() to construct. private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2944,6 +3009,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2978,6 +3044,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object clusterArn_ = ""; + /** * * @@ -3001,6 +3068,7 @@ public java.lang.String getClusterArn() { return s; } } + /** * * @@ -3029,6 +3097,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object kafkaTopic_ = ""; + /** * * @@ -3052,6 +3121,7 @@ public java.lang.String getKafkaTopic() { return s; } } + /** * * @@ -3078,6 +3148,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -3096,6 +3167,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -3114,6 +3186,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -3132,6 +3205,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -3153,6 +3227,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -3387,6 +3462,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3666,6 +3742,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object clusterArn_ = ""; + /** * * @@ -3688,6 +3765,7 @@ public java.lang.String getClusterArn() { return (java.lang.String) ref; } } + /** * * @@ -3710,6 +3788,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3731,6 +3810,7 @@ public Builder setClusterArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3748,6 +3828,7 @@ public Builder clearClusterArn() { onChanged(); return this; } + /** * * @@ -3772,6 +3853,7 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object kafkaTopic_ = ""; + /** * * @@ -3794,6 +3876,7 @@ public java.lang.String getKafkaTopic() { return (java.lang.String) ref; } } + /** * * @@ -3816,6 +3899,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3837,6 +3921,7 @@ public Builder setKafkaTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3854,6 +3939,7 @@ public Builder clearKafkaTopic() { onChanged(); return this; } + /** * * @@ -3878,6 +3964,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -3893,6 +3980,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -3912,6 +4000,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -3931,6 +4020,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -3947,6 +4037,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -3967,6 +4058,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -3991,6 +4083,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -4009,6 +4102,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -4037,6 +4131,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -4063,6 +4158,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4086,6 +4182,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4124,6 +4221,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4152,6 +4250,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -4168,6 +4267,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -4192,6 +4292,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -4313,6 +4414,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The namespace. */ java.lang.String getNamespace(); + /** * * @@ -4338,6 +4440,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The eventHub. */ java.lang.String getEventHub(); + /** * * @@ -4393,6 +4496,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -4408,6 +4512,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -4426,6 +4531,7 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -4441,6 +4547,7 @@ public static final class AzureEventHubsFailureReason // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AzureEventHubsFailureReason.newBuilder() to construct. private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -4488,6 +4595,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -4522,6 +4630,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; + /** * * @@ -4545,6 +4654,7 @@ public java.lang.String getNamespace() { return s; } } + /** * * @@ -4573,6 +4683,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { @SuppressWarnings("serial") private volatile java.lang.Object eventHub_ = ""; + /** * * @@ -4596,6 +4707,7 @@ public java.lang.String getEventHub() { return s; } } + /** * * @@ -4622,6 +4734,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -4640,6 +4753,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -4658,6 +4772,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -4676,6 +4791,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -4697,6 +4813,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -4933,6 +5050,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -5218,6 +5336,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object namespace_ = ""; + /** * * @@ -5240,6 +5359,7 @@ public java.lang.String getNamespace() { return (java.lang.String) ref; } } + /** * * @@ -5262,6 +5382,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5283,6 +5404,7 @@ public Builder setNamespace(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5300,6 +5422,7 @@ public Builder clearNamespace() { onChanged(); return this; } + /** * * @@ -5324,6 +5447,7 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { } private java.lang.Object eventHub_ = ""; + /** * * @@ -5346,6 +5470,7 @@ public java.lang.String getEventHub() { return (java.lang.String) ref; } } + /** * * @@ -5368,6 +5493,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5389,6 +5515,7 @@ public Builder setEventHub(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5406,6 +5533,7 @@ public Builder clearEventHub() { onChanged(); return this; } + /** * * @@ -5430,6 +5558,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -5445,6 +5574,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -5464,6 +5594,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -5483,6 +5614,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -5499,6 +5631,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -5519,6 +5652,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -5543,6 +5677,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -5561,6 +5696,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -5589,6 +5725,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -5615,6 +5752,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5638,6 +5776,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5676,6 +5815,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5704,6 +5844,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -5720,6 +5861,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -5744,6 +5886,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -5866,6 +6009,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The clusterId. */ java.lang.String getClusterId(); + /** * * @@ -5891,6 +6035,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The kafkaTopic. */ java.lang.String getKafkaTopic(); + /** * * @@ -5946,6 +6091,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -5961,6 +6107,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -5979,6 +6126,7 @@ public interface ConfluentCloudFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -5994,6 +6142,7 @@ public static final class ConfluentCloudFailureReason // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use ConfluentCloudFailureReason.newBuilder() to construct. private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -6041,6 +6190,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -6075,6 +6225,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object clusterId_ = ""; + /** * * @@ -6098,6 +6249,7 @@ public java.lang.String getClusterId() { return s; } } + /** * * @@ -6126,6 +6278,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object kafkaTopic_ = ""; + /** * * @@ -6149,6 +6302,7 @@ public java.lang.String getKafkaTopic() { return s; } } + /** * * @@ -6175,6 +6329,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -6193,6 +6348,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -6211,6 +6367,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -6229,6 +6386,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -6250,6 +6408,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -6486,6 +6645,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -6771,6 +6931,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object clusterId_ = ""; + /** * * @@ -6793,6 +6954,7 @@ public java.lang.String getClusterId() { return (java.lang.String) ref; } } + /** * * @@ -6815,6 +6977,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6836,6 +6999,7 @@ public Builder setClusterId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6853,6 +7017,7 @@ public Builder clearClusterId() { onChanged(); return this; } + /** * * @@ -6877,6 +7042,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object kafkaTopic_ = ""; + /** * * @@ -6899,6 +7065,7 @@ public java.lang.String getKafkaTopic() { return (java.lang.String) ref; } } + /** * * @@ -6921,6 +7088,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6942,6 +7110,7 @@ public Builder setKafkaTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6959,6 +7128,7 @@ public Builder clearKafkaTopic() { onChanged(); return this; } + /** * * @@ -6983,6 +7153,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -6998,6 +7169,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -7017,6 +7189,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -7036,6 +7209,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -7052,6 +7226,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -7072,6 +7247,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -7096,6 +7272,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -7114,6 +7291,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -7142,6 +7320,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -7168,6 +7347,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7191,6 +7371,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7229,6 +7410,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7257,6 +7439,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -7273,6 +7456,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -7297,6 +7481,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -7421,6 +7606,7 @@ public enum FailureCase private FailureCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -7461,6 +7647,7 @@ public FailureCase getFailureCase() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -7485,6 +7672,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -7514,6 +7702,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; + /** * * @@ -7537,6 +7726,7 @@ public java.lang.String getErrorMessage() { return s; } } + /** * * @@ -7562,6 +7752,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** * * @@ -7579,6 +7770,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public boolean hasCloudStorageFailure() { return failureCase_ == 3; } + /** * * @@ -7599,6 +7791,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt } return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } + /** * * @@ -7620,6 +7813,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt } public static final int AWS_MSK_FAILURE_FIELD_NUMBER = 4; + /** * * @@ -7637,6 +7831,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt public boolean hasAwsMskFailure() { return failureCase_ == 4; } + /** * * @@ -7657,6 +7852,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF } return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } + /** * * @@ -7678,6 +7874,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF } public static final int AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER = 5; + /** * * @@ -7695,6 +7892,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF public boolean hasAzureEventHubsFailure() { return failureCase_ == 5; } + /** * * @@ -7717,6 +7915,7 @@ public boolean hasAzureEventHubsFailure() { return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason .getDefaultInstance(); } + /** * * @@ -7739,6 +7938,7 @@ public boolean hasAzureEventHubsFailure() { } public static final int CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER = 6; + /** * * @@ -7756,6 +7956,7 @@ public boolean hasAzureEventHubsFailure() { public boolean hasConfluentCloudFailure() { return failureCase_ == 6; } + /** * * @@ -7778,6 +7979,7 @@ public boolean hasConfluentCloudFailure() { return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance(); } + /** * * @@ -8040,6 +8242,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -8338,6 +8541,7 @@ public Builder clearFailure() { private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -8361,6 +8565,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -8384,6 +8589,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8406,6 +8612,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8424,6 +8631,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -8449,6 +8657,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object errorMessage_ = ""; + /** * * @@ -8471,6 +8680,7 @@ public java.lang.String getErrorMessage() { return (java.lang.String) ref; } } + /** * * @@ -8493,6 +8703,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8514,6 +8725,7 @@ public Builder setErrorMessage(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8531,6 +8743,7 @@ public Builder clearErrorMessage() { onChanged(); return this; } + /** * * @@ -8559,6 +8772,7 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> cloudStorageFailureBuilder_; + /** * * @@ -8576,6 +8790,7 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { public boolean hasCloudStorageFailure() { return failureCase_ == 3; } + /** * * @@ -8603,6 +8818,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } } + /** * * @@ -8628,6 +8844,7 @@ public Builder setCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8650,6 +8867,7 @@ public Builder setCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8687,6 +8905,7 @@ public Builder mergeCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8714,6 +8933,7 @@ public Builder clearCloudStorageFailure() { } return this; } + /** * * @@ -8729,6 +8949,7 @@ public Builder clearCloudStorageFailure() { getCloudStorageFailureBuilder() { return getCloudStorageFailureFieldBuilder().getBuilder(); } + /** * * @@ -8752,6 +8973,7 @@ public Builder clearCloudStorageFailure() { return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } } + /** * * @@ -8793,6 +9015,7 @@ public Builder clearCloudStorageFailure() { com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> awsMskFailureBuilder_; + /** * * @@ -8810,6 +9033,7 @@ public Builder clearCloudStorageFailure() { public boolean hasAwsMskFailure() { return failureCase_ == 4; } + /** * * @@ -8837,6 +9061,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } + /** * * @@ -8862,6 +9087,7 @@ public Builder setAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8884,6 +9110,7 @@ public Builder setAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8921,6 +9148,7 @@ public Builder mergeAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8948,6 +9176,7 @@ public Builder clearAwsMskFailure() { } return this; } + /** * * @@ -8963,6 +9192,7 @@ public Builder clearAwsMskFailure() { getAwsMskFailureBuilder() { return getAwsMskFailureFieldBuilder().getBuilder(); } + /** * * @@ -8986,6 +9216,7 @@ public Builder clearAwsMskFailure() { return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } + /** * * @@ -9027,6 +9258,7 @@ public Builder clearAwsMskFailure() { com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> azureEventHubsFailureBuilder_; + /** * * @@ -9044,6 +9276,7 @@ public Builder clearAwsMskFailure() { public boolean hasAzureEventHubsFailure() { return failureCase_ == 5; } + /** * * @@ -9074,6 +9307,7 @@ public boolean hasAzureEventHubsFailure() { .getDefaultInstance(); } } + /** * * @@ -9099,6 +9333,7 @@ public Builder setAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9122,6 +9357,7 @@ public Builder setAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9160,6 +9396,7 @@ public Builder mergeAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9187,6 +9424,7 @@ public Builder clearAzureEventHubsFailure() { } return this; } + /** * * @@ -9202,6 +9440,7 @@ public Builder clearAzureEventHubsFailure() { getAzureEventHubsFailureBuilder() { return getAzureEventHubsFailureFieldBuilder().getBuilder(); } + /** * * @@ -9226,6 +9465,7 @@ public Builder clearAzureEventHubsFailure() { .getDefaultInstance(); } } + /** * * @@ -9268,6 +9508,7 @@ public Builder clearAzureEventHubsFailure() { com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> confluentCloudFailureBuilder_; + /** * * @@ -9285,6 +9526,7 @@ public Builder clearAzureEventHubsFailure() { public boolean hasConfluentCloudFailure() { return failureCase_ == 6; } + /** * * @@ -9315,6 +9557,7 @@ public boolean hasConfluentCloudFailure() { .getDefaultInstance(); } } + /** * * @@ -9340,6 +9583,7 @@ public Builder setConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9363,6 +9607,7 @@ public Builder setConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9401,6 +9646,7 @@ public Builder mergeConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9428,6 +9674,7 @@ public Builder clearConfluentCloudFailure() { } return this; } + /** * * @@ -9443,6 +9690,7 @@ public Builder clearConfluentCloudFailure() { getConfluentCloudFailureBuilder() { return getConfluentCloudFailureFieldBuilder().getBuilder(); } + /** * * @@ -9467,6 +9715,7 @@ public Builder clearConfluentCloudFailure() { .getDefaultInstance(); } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index b488636cf..9fc268820 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -37,6 +37,7 @@ public interface IngestionFailureEventOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -63,6 +64,7 @@ public interface IngestionFailureEventOrBuilder * @return The errorMessage. */ java.lang.String getErrorMessage(); + /** * * @@ -90,6 +92,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the cloudStorageFailure field is set. */ boolean hasCloudStorageFailure(); + /** * * @@ -104,6 +107,7 @@ public interface IngestionFailureEventOrBuilder * @return The cloudStorageFailure. */ com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure(); + /** * * @@ -132,6 +136,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the awsMskFailure field is set. */ boolean hasAwsMskFailure(); + /** * * @@ -146,6 +151,7 @@ public interface IngestionFailureEventOrBuilder * @return The awsMskFailure. */ com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure(); + /** * * @@ -174,6 +180,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the azureEventHubsFailure field is set. */ boolean hasAzureEventHubsFailure(); + /** * * @@ -188,6 +195,7 @@ public interface IngestionFailureEventOrBuilder * @return The azureEventHubsFailure. */ com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getAzureEventHubsFailure(); + /** * * @@ -216,6 +224,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the confluentCloudFailure field is set. */ boolean hasConfluentCloudFailure(); + /** * * @@ -230,6 +239,7 @@ public interface IngestionFailureEventOrBuilder * @return The confluentCloudFailure. */ com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getConfluentCloudFailure(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index c205f528d..d4ab92c91 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -34,6 +34,7 @@ public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.JavaScriptUDF) JavaScriptUDFOrBuilder { private static final long serialVersionUID = 0L; + // Use JavaScriptUDF.newBuilder() to construct. private JavaScriptUDF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object functionName_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getFunctionName() { return s; } } + /** * * @@ -122,6 +125,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; + /** * * @@ -174,6 +178,7 @@ public java.lang.String getCode() { return s; } } + /** * * @@ -393,6 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -591,6 +597,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object functionName_ = ""; + /** * * @@ -614,6 +621,7 @@ public java.lang.String getFunctionName() { return (java.lang.String) ref; } } + /** * * @@ -637,6 +645,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -659,6 +668,7 @@ public Builder setFunctionName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -677,6 +687,7 @@ public Builder clearFunctionName() { onChanged(); return this; } + /** * * @@ -702,6 +713,7 @@ public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object code_ = ""; + /** * * @@ -753,6 +765,7 @@ public java.lang.String getCode() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +817,7 @@ public com.google.protobuf.ByteString getCodeBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -854,6 +868,7 @@ public Builder setCode(java.lang.String value) { onChanged(); return this; } + /** * * @@ -900,6 +915,7 @@ public Builder clearCode() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index 80ba75c77..cb3ba0f4d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -37,6 +37,7 @@ public interface JavaScriptUDFOrBuilder * @return The functionName. */ java.lang.String getFunctionName(); + /** * * @@ -92,6 +93,7 @@ public interface JavaScriptUDFOrBuilder * @return The code. */ java.lang.String getCode(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 0ab2ac7a9..4f7e414d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -33,6 +33,7 @@ public final class ListSchemaRevisionsRequest extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest) ListSchemaRevisionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsRequest.newBuilder() to construct. private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -122,6 +125,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -139,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getViewValue() { return view_; } + /** * * @@ -160,6 +165,7 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; + /** * * @@ -180,6 +186,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -204,6 +211,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -415,6 +423,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -640,6 +649,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -664,6 +674,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -688,6 +699,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -711,6 +723,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -730,6 +743,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -756,6 +770,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -773,6 +788,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -793,6 +809,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -811,6 +828,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -834,6 +852,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * @@ -855,6 +874,7 @@ public Builder clearView() { } private int pageSize_; + /** * * @@ -870,6 +890,7 @@ public Builder clearView() { public int getPageSize() { return pageSize_; } + /** * * @@ -889,6 +910,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -908,6 +930,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -931,6 +954,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -954,6 +978,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -976,6 +1001,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -994,6 +1020,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 681c829bd..812a4bfff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -67,6 +68,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * @@ -108,6 +110,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 826388448..5774b60a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -33,6 +33,7 @@ public final class ListSchemaRevisionsResponse extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsResponse) ListSchemaRevisionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsResponse.newBuilder() to construct. private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List schemas_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSchemasList() { return schemas_; } + /** * * @@ -94,6 +97,7 @@ public java.util.List getSchemasList() { public java.util.List getSchemasOrBuilderList() { return schemas_; } + /** * * @@ -107,6 +111,7 @@ public java.util.List getSchemas public int getSchemasCount() { return schemas_.size(); } + /** * * @@ -120,6 +125,7 @@ public int getSchemasCount() { public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } + /** * * @@ -138,6 +144,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -162,6 +169,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -357,6 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -632,6 +641,7 @@ public java.util.List getSchemasList() { return schemasBuilder_.getMessageList(); } } + /** * * @@ -648,6 +658,7 @@ public int getSchemasCount() { return schemasBuilder_.getCount(); } } + /** * * @@ -664,6 +675,7 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemasBuilder_.getMessage(index); } } + /** * * @@ -686,6 +698,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -705,6 +718,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -727,6 +741,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -749,6 +764,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -768,6 +784,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { } return this; } + /** * * @@ -787,6 +804,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -806,6 +824,7 @@ public Builder addAllSchemas(java.lang.Iterable getSchemasBuilderList } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -968,6 +995,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -991,6 +1019,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1013,6 +1042,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1031,6 +1061,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index de9f891d8..01008b7a9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -34,6 +34,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasList(); + /** * * @@ -44,6 +45,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ com.google.pubsub.v1.Schema getSchemas(int index); + /** * * @@ -54,6 +56,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ int getSchemasCount(); + /** * * @@ -64,6 +67,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasOrBuilderList(); + /** * * @@ -88,6 +92,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 0c98c0d84..bfc18011b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -33,6 +33,7 @@ public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) ListSchemasRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemasRequest.newBuilder() to construct. private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -95,6 +97,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -124,6 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -141,6 +145,7 @@ public com.google.protobuf.ByteString getParentBytes() { public int getViewValue() { return view_; } + /** * * @@ -162,6 +167,7 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; + /** * * @@ -182,6 +188,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -207,6 +214,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -418,6 +426,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -642,6 +651,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -667,6 +677,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -692,6 +703,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -716,6 +728,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -736,6 +749,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -763,6 +777,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -780,6 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -800,6 +816,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -818,6 +835,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -841,6 +859,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * @@ -862,6 +881,7 @@ public Builder clearView() { } private int pageSize_; + /** * * @@ -877,6 +897,7 @@ public Builder clearView() { public int getPageSize() { return pageSize_; } + /** * * @@ -896,6 +917,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -915,6 +937,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -939,6 +962,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -963,6 +987,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -986,6 +1011,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1005,6 +1031,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 050de5229..b02a46248 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSchemasRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -69,6 +70,7 @@ public interface ListSchemasRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * @@ -111,6 +113,7 @@ public interface ListSchemasRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 1ac5143e8..0295fbf55 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -33,6 +33,7 @@ public final class ListSchemasResponse extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) ListSchemasResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemasResponse.newBuilder() to construct. private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List schemas_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSchemasList() { return schemas_; } + /** * * @@ -94,6 +97,7 @@ public java.util.List getSchemasList() { public java.util.List getSchemasOrBuilderList() { return schemas_; } + /** * * @@ -107,6 +111,7 @@ public java.util.List getSchemas public int getSchemasCount() { return schemas_.size(); } + /** * * @@ -120,6 +125,7 @@ public int getSchemasCount() { public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } + /** * * @@ -138,6 +144,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -162,6 +169,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -356,6 +364,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -629,6 +638,7 @@ public java.util.List getSchemasList() { return schemasBuilder_.getMessageList(); } } + /** * * @@ -645,6 +655,7 @@ public int getSchemasCount() { return schemasBuilder_.getCount(); } } + /** * * @@ -661,6 +672,7 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemasBuilder_.getMessage(index); } } + /** * * @@ -683,6 +695,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -702,6 +715,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -724,6 +738,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -746,6 +761,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -765,6 +781,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { } return this; } + /** * * @@ -784,6 +801,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -803,6 +821,7 @@ public Builder addAllSchemas(java.lang.Iterable getSchemasBuilderList } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -965,6 +992,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -988,6 +1016,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1010,6 +1039,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1028,6 +1058,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index dfe71b9a2..4074b7a2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -34,6 +34,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasList(); + /** * * @@ -44,6 +45,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ com.google.pubsub.v1.Schema getSchemas(int index); + /** * * @@ -54,6 +56,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ int getSchemasCount(); + /** * * @@ -64,6 +67,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasOrBuilderList(); + /** * * @@ -88,6 +92,7 @@ public interface ListSchemasResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 55485115b..eb72cc74f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -33,6 +33,7 @@ public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index e8711c1ef..ce1882a87 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSnapshotsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListSnapshotsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index bc58cb7c8..1f663f3bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -33,6 +33,7 @@ public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List snapshots_; + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSnapshotsList() { return snapshots_; } + /** * * @@ -99,6 +102,7 @@ public java.util.List getSnapshotsList() { getSnapshotsOrBuilderList() { return snapshots_; } + /** * * @@ -114,6 +118,7 @@ public java.util.List getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -129,6 +134,7 @@ public int getSnapshotsCount() { public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -149,6 +155,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -174,6 +181,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -645,6 +654,7 @@ public java.util.List getSnapshotsList() { return snapshotsBuilder_.getMessageList(); } } + /** * * @@ -663,6 +673,7 @@ public int getSnapshotsCount() { return snapshotsBuilder_.getCount(); } } + /** * * @@ -681,6 +692,7 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshotsBuilder_.getMessage(index); } } + /** * * @@ -705,6 +717,7 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -726,6 +739,7 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui } return this; } + /** * * @@ -750,6 +764,7 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -774,6 +789,7 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -795,6 +811,7 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu } return this; } + /** * * @@ -816,6 +833,7 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui } return this; } + /** * * @@ -838,6 +856,7 @@ public Builder addAllSnapshots( } return this; } + /** * * @@ -859,6 +878,7 @@ public Builder clearSnapshots() { } return this; } + /** * * @@ -880,6 +900,7 @@ public Builder removeSnapshots(int index) { } return this; } + /** * * @@ -894,6 +915,7 @@ public Builder removeSnapshots(int index) { public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } + /** * * @@ -912,6 +934,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return snapshotsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -931,6 +954,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return java.util.Collections.unmodifiableList(snapshots_); } } + /** * * @@ -946,6 +970,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { return getSnapshotsFieldBuilder() .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); } + /** * * @@ -961,6 +986,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } + /** * * @@ -994,6 +1020,7 @@ public java.util.List getSnapshotsBuilder } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -1018,6 +1045,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1042,6 +1070,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1065,6 +1094,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1084,6 +1114,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 5a20d8d27..34b81ac66 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListSnapshotsResponseOrBuilder * */ java.util.List getSnapshotsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListSnapshotsResponseOrBuilder * */ com.google.pubsub.v1.Snapshot getSnapshots(int index); + /** * * @@ -60,6 +62,7 @@ public interface ListSnapshotsResponseOrBuilder * */ int getSnapshotsCount(); + /** * * @@ -72,6 +75,7 @@ public interface ListSnapshotsResponseOrBuilder * */ java.util.List getSnapshotsOrBuilderList(); + /** * * @@ -99,6 +103,7 @@ public interface ListSnapshotsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 846b75ce1..d3848c784 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -33,6 +33,7 @@ public final class ListSubscriptionsRequest extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSubscriptionsRequest.newBuilder() to construct. private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index ff862e1c3..5532ede62 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSubscriptionsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListSubscriptionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 0a3209dd1..c8a74e5d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -33,6 +33,7 @@ public final class ListSubscriptionsResponse extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List subscriptions_; + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSubscriptionsList() { return subscriptions_; } + /** * * @@ -99,6 +102,7 @@ public java.util.List getSubscriptionsList() getSubscriptionsOrBuilderList() { return subscriptions_; } + /** * * @@ -114,6 +118,7 @@ public java.util.List getSubscriptionsList() public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -129,6 +134,7 @@ public int getSubscriptionsCount() { public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -149,6 +155,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -174,6 +181,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -646,6 +655,7 @@ public java.util.List getSubscriptionsList() return subscriptionsBuilder_.getMessageList(); } } + /** * * @@ -664,6 +674,7 @@ public int getSubscriptionsCount() { return subscriptionsBuilder_.getCount(); } } + /** * * @@ -682,6 +693,7 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptionsBuilder_.getMessage(index); } } + /** * * @@ -706,6 +718,7 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val } return this; } + /** * * @@ -728,6 +741,7 @@ public Builder setSubscriptions( } return this; } + /** * * @@ -752,6 +766,7 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { } return this; } + /** * * @@ -776,6 +791,7 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val } return this; } + /** * * @@ -797,6 +813,7 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde } return this; } + /** * * @@ -819,6 +836,7 @@ public Builder addSubscriptions( } return this; } + /** * * @@ -841,6 +859,7 @@ public Builder addAllSubscriptions( } return this; } + /** * * @@ -862,6 +881,7 @@ public Builder clearSubscriptions() { } return this; } + /** * * @@ -883,6 +903,7 @@ public Builder removeSubscriptions(int index) { } return this; } + /** * * @@ -897,6 +918,7 @@ public Builder removeSubscriptions(int index) { public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } + /** * * @@ -915,6 +937,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int return subscriptionsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -934,6 +957,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int return java.util.Collections.unmodifiableList(subscriptions_); } } + /** * * @@ -949,6 +973,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder() .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } + /** * * @@ -964,6 +989,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int ind return getSubscriptionsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } + /** * * @@ -1000,6 +1026,7 @@ public java.util.List getSubscription } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -1024,6 +1051,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1048,6 +1076,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1071,6 +1100,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1090,6 +1120,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 579430360..253b956ad 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ java.util.List getSubscriptionsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ com.google.pubsub.v1.Subscription getSubscriptions(int index); + /** * * @@ -60,6 +62,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ int getSubscriptionsCount(); + /** * * @@ -73,6 +76,7 @@ public interface ListSubscriptionsResponseOrBuilder */ java.util.List getSubscriptionsOrBuilderList(); + /** * * @@ -100,6 +104,7 @@ public interface ListSubscriptionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index bf2ba6738..164ae38f7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicSnapshotsRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) ListTopicSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsRequest.newBuilder() to construct. private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6eddb25e0..ef628af35 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSnapshotsRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicSnapshotsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index c57f292fc..453f43f88 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicSnapshotsResponse extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) ListTopicSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsResponse.newBuilder() to construct. private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; } + /** * * @@ -97,6 +100,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -112,6 +116,7 @@ public int getSnapshotsCount() { public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -132,6 +137,7 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -157,6 +163,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -358,6 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -572,6 +580,7 @@ private void ensureSnapshotsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -587,6 +596,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { snapshots_.makeImmutable(); return snapshots_; } + /** * * @@ -601,6 +611,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -616,6 +627,7 @@ public int getSnapshotsCount() { public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -631,6 +643,7 @@ public java.lang.String getSnapshots(int index) { public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } + /** * * @@ -654,6 +667,7 @@ public Builder setSnapshots(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +690,7 @@ public Builder addSnapshots(java.lang.String value) { onChanged(); return this; } + /** * * @@ -695,6 +710,7 @@ public Builder addAllSnapshots(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -713,6 +729,7 @@ public Builder clearSnapshots() { onChanged(); return this; } + /** * * @@ -738,6 +755,7 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -762,6 +780,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -786,6 +805,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -809,6 +829,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -828,6 +849,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index c9cb3d6b1..9a7e4a3a4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return A list containing the snapshots. */ java.util.List getSnapshotsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The count of snapshots. */ int getSnapshotsCount(); + /** * * @@ -61,6 +63,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); + /** * * @@ -89,6 +92,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index d9420dffc..84af5e75c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicSubscriptionsRequest extends com.google.protobuf.Gen // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsRequest.newBuilder() to construct. private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -583,6 +590,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -608,6 +616,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -633,6 +642,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -657,6 +667,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -677,6 +688,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -704,6 +716,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -719,6 +732,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -738,6 +752,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -757,6 +772,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -781,6 +797,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -805,6 +822,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -828,6 +846,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -847,6 +866,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index d389accaf..c8338efee 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSubscriptionsRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicSubscriptionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 08dd87b28..d712636ba 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicSubscriptionsResponse extends com.google.protobuf.Ge // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsResponse.newBuilder() to construct. private ListTopicSubscriptionsResponse( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -70,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -87,6 +89,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; } + /** * * @@ -104,6 +107,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -122,6 +126,7 @@ public int getSubscriptionsCount() { public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -145,6 +150,7 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -170,6 +176,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -371,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -585,6 +593,7 @@ private void ensureSubscriptionsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -603,6 +612,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { subscriptions_.makeImmutable(); return subscriptions_; } + /** * * @@ -620,6 +630,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -638,6 +649,7 @@ public int getSubscriptionsCount() { public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -656,6 +668,7 @@ public java.lang.String getSubscriptions(int index) { public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } + /** * * @@ -682,6 +695,7 @@ public Builder setSubscriptions(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -707,6 +721,7 @@ public Builder addSubscriptions(java.lang.String value) { onChanged(); return this; } + /** * * @@ -729,6 +744,7 @@ public Builder addAllSubscriptions(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -750,6 +766,7 @@ public Builder clearSubscriptions() { onChanged(); return this; } + /** * * @@ -778,6 +795,7 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -802,6 +820,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -826,6 +845,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -849,6 +869,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -868,6 +889,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 279a179a6..c39777756 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return A list containing the subscriptions. */ java.util.List getSubscriptionsList(); + /** * * @@ -54,6 +55,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The count of subscriptions. */ int getSubscriptionsCount(); + /** * * @@ -70,6 +72,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The subscriptions at the given index. */ java.lang.String getSubscriptions(int index); + /** * * @@ -101,6 +104,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 592003e43..5e617e581 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicsRequest.newBuilder() to construct. private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -370,6 +376,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -581,6 +588,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -606,6 +614,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -631,6 +640,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -655,6 +665,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -675,6 +686,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -702,6 +714,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -717,6 +730,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -736,6 +750,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -755,6 +770,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -779,6 +795,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -803,6 +820,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -826,6 +844,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -845,6 +864,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 6334aae4c..6c13f0440 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 1c54ae35d..2747f0943 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List topics_; + /** * * @@ -82,6 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getTopicsList() { return topics_; } + /** * * @@ -96,6 +99,7 @@ public java.util.List getTopicsList() { public java.util.List getTopicsOrBuilderList() { return topics_; } + /** * * @@ -110,6 +114,7 @@ public java.util.List getTopicsOr public int getTopicsCount() { return topics_.size(); } + /** * * @@ -124,6 +129,7 @@ public int getTopicsCount() { public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } + /** * * @@ -143,6 +149,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -167,6 +174,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -361,6 +369,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -634,6 +643,7 @@ public java.util.List getTopicsList() { return topicsBuilder_.getMessageList(); } } + /** * * @@ -651,6 +661,7 @@ public int getTopicsCount() { return topicsBuilder_.getCount(); } } + /** * * @@ -668,6 +679,7 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topicsBuilder_.getMessage(index); } } + /** * * @@ -691,6 +703,7 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -711,6 +724,7 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo } return this; } + /** * * @@ -734,6 +748,7 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -757,6 +772,7 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -777,6 +793,7 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { } return this; } + /** * * @@ -797,6 +814,7 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo } return this; } + /** * * @@ -817,6 +835,7 @@ public Builder addAllTopics(java.lang.Iterable getTopicsOr return java.util.Collections.unmodifiableList(topics_); } } + /** * * @@ -917,6 +941,7 @@ public java.util.List getTopicsOr public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } + /** * * @@ -931,6 +956,7 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { return getTopicsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } + /** * * @@ -963,6 +989,7 @@ public java.util.List getTopicsBuilderList() } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -986,6 +1013,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1009,6 +1037,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1031,6 +1060,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1049,6 +1079,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index ef5341c96..b1f27028e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -35,6 +35,7 @@ public interface ListTopicsResponseOrBuilder * */ java.util.List getTopicsList(); + /** * * @@ -46,6 +47,7 @@ public interface ListTopicsResponseOrBuilder * */ com.google.pubsub.v1.Topic getTopics(int index); + /** * * @@ -57,6 +59,7 @@ public interface ListTopicsResponseOrBuilder * */ int getTopicsCount(); + /** * * @@ -68,6 +71,7 @@ public interface ListTopicsResponseOrBuilder * */ java.util.List getTopicsOrBuilderList(); + /** * * @@ -93,6 +97,7 @@ public interface ListTopicsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 5846d2918..af6d1f8b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -33,6 +33,7 @@ public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) MessageStoragePolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use MessageStoragePolicy.newBuilder() to construct. private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -89,6 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } + /** * * @@ -110,6 +113,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } + /** * * @@ -132,6 +136,7 @@ public int getAllowedPersistenceRegionsCount() { public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } + /** * * @@ -157,6 +162,7 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde public static final int ENFORCE_IN_TRANSIT_FIELD_NUMBER = 2; private boolean enforceInTransit_ = false; + /** * * @@ -354,6 +360,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -566,6 +573,7 @@ private void ensureAllowedPersistenceRegionsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -588,6 +596,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() allowedPersistenceRegions_.makeImmutable(); return allowedPersistenceRegions_; } + /** * * @@ -609,6 +618,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } + /** * * @@ -631,6 +641,7 @@ public int getAllowedPersistenceRegionsCount() { public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } + /** * * @@ -653,6 +664,7 @@ public java.lang.String getAllowedPersistenceRegions(int index) { public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } + /** * * @@ -683,6 +695,7 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -712,6 +725,7 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { onChanged(); return this; } + /** * * @@ -738,6 +752,7 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable getAllowedPersistenceRegionsList(); + /** * * @@ -62,6 +63,7 @@ public interface MessageStoragePolicyOrBuilder * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); + /** * * @@ -82,6 +84,7 @@ public interface MessageStoragePolicyOrBuilder * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 692b93359..ff57a28b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -33,6 +33,7 @@ public final class MessageTransform extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageTransform) MessageTransformOrBuilder { private static final long serialVersionUID = 0L; + // Use MessageTransform.newBuilder() to construct. private MessageTransform(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -77,6 +78,7 @@ public enum TransformCase private TransformCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -108,6 +110,7 @@ public TransformCase getTransformCase() { } public static final int JAVASCRIPT_UDF_FIELD_NUMBER = 2; + /** * * @@ -126,6 +129,7 @@ public TransformCase getTransformCase() { public boolean hasJavascriptUdf() { return transformCase_ == 2; } + /** * * @@ -147,6 +151,7 @@ public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { } return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } + /** * * @@ -169,6 +174,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { public static final int ENABLED_FIELD_NUMBER = 3; private boolean enabled_ = false; + /** * * @@ -191,6 +197,7 @@ public boolean getEnabled() { public static final int DISABLED_FIELD_NUMBER = 4; private boolean disabled_ = false; + /** * * @@ -398,6 +405,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -641,6 +649,7 @@ public Builder clearTransform() { com.google.pubsub.v1.JavaScriptUDF.Builder, com.google.pubsub.v1.JavaScriptUDFOrBuilder> javascriptUdfBuilder_; + /** * * @@ -659,6 +668,7 @@ public Builder clearTransform() { public boolean hasJavascriptUdf() { return transformCase_ == 2; } + /** * * @@ -687,6 +697,7 @@ public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } } + /** * * @@ -712,6 +723,7 @@ public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { transformCase_ = 2; return this; } + /** * * @@ -734,6 +746,7 @@ public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF.Builder build transformCase_ = 2; return this; } + /** * * @@ -769,6 +782,7 @@ public Builder mergeJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { transformCase_ = 2; return this; } + /** * * @@ -797,6 +811,7 @@ public Builder clearJavascriptUdf() { } return this; } + /** * * @@ -812,6 +827,7 @@ public Builder clearJavascriptUdf() { public com.google.pubsub.v1.JavaScriptUDF.Builder getJavascriptUdfBuilder() { return getJavascriptUdfFieldBuilder().getBuilder(); } + /** * * @@ -835,6 +851,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } } + /** * * @@ -870,6 +887,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { } private boolean enabled_; + /** * * @@ -889,6 +907,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { public boolean getEnabled() { return enabled_; } + /** * * @@ -912,6 +931,7 @@ public Builder setEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -935,6 +955,7 @@ public Builder clearEnabled() { } private boolean disabled_; + /** * * @@ -951,6 +972,7 @@ public Builder clearEnabled() { public boolean getDisabled() { return disabled_; } + /** * * @@ -971,6 +993,7 @@ public Builder setDisabled(boolean value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 39dbe4062..8970aabb5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -39,6 +39,7 @@ public interface MessageTransformOrBuilder * @return Whether the javascriptUdf field is set. */ boolean hasJavascriptUdf(); + /** * * @@ -54,6 +55,7 @@ public interface MessageTransformOrBuilder * @return The javascriptUdf. */ com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index e03117116..2da1f0f7c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -33,6 +33,7 @@ public final class ModifyAckDeadlineRequest extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineRequest.newBuilder() to construct. private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -126,6 +129,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -140,6 +144,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -154,6 +159,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -169,6 +175,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -187,6 +194,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; private int ackDeadlineSeconds_ = 0; + /** * * @@ -395,6 +403,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -613,6 +622,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -638,6 +648,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -663,6 +674,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -687,6 +699,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -707,6 +720,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -742,6 +756,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -757,6 +772,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -771,6 +787,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -786,6 +803,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -801,6 +819,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -824,6 +843,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +866,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -865,6 +886,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -883,6 +905,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -908,6 +931,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { } private int ackDeadlineSeconds_; + /** * * @@ -931,6 +955,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } + /** * * @@ -958,6 +983,7 @@ public Builder setAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index ede114b6e..40d4bd277 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -67,6 +68,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -79,6 +81,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -92,6 +95,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 74224f5d1..e45a2e6b6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,6 +33,7 @@ public final class ModifyPushConfigRequest extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyPushConfigRequest.newBuilder() to construct. private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 2; private com.google.pubsub.v1.PushConfig pushConfig_; + /** * * @@ -144,6 +148,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -165,6 +170,7 @@ public boolean hasPushConfig() { public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } + /** * * @@ -358,6 +364,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -570,6 +577,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -595,6 +603,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -620,6 +629,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -644,6 +654,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -664,6 +675,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -696,6 +708,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** * * @@ -716,6 +729,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean hasPushConfig() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -742,6 +756,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfigBuilder_.getMessage(); } } + /** * * @@ -770,6 +785,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { onChanged(); return this; } + /** * * @@ -795,6 +811,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV onChanged(); return this; } + /** * * @@ -828,6 +845,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } return this; } + /** * * @@ -853,6 +871,7 @@ public Builder clearPushConfig() { onChanged(); return this; } + /** * * @@ -873,6 +892,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } + /** * * @@ -897,6 +917,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { : pushConfig_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 8ac64d9d5..ac58d9a79 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -73,6 +74,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); + /** * * @@ -91,6 +93,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index 6703c9690..8d05cda1a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -33,6 +33,7 @@ public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.PlatformLogsSettings) PlatformLogsSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use PlatformLogsSettings.newBuilder() to construct. private PlatformLogsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -146,6 +147,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * SEVERITY_UNSPECIFIED = 0; */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** * * @@ -156,6 +158,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * DISABLED = 1; */ public static final int DISABLED_VALUE = 1; + /** * * @@ -166,6 +169,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * DEBUG = 2; */ public static final int DEBUG_VALUE = 2; + /** * * @@ -176,6 +180,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * INFO = 3; */ public static final int INFO_VALUE = 3; + /** * * @@ -186,6 +191,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * WARNING = 4; */ public static final int WARNING_VALUE = 4; + /** * * @@ -288,6 +294,7 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_ = 0; + /** * * @@ -305,6 +312,7 @@ private Severity(int value) { public int getSeverityValue() { return severity_; } + /** * * @@ -488,6 +496,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -669,6 +678,7 @@ public Builder mergeFrom( private int bitField0_; private int severity_ = 0; + /** * * @@ -686,6 +696,7 @@ public Builder mergeFrom( public int getSeverityValue() { return severity_; } + /** * * @@ -706,6 +717,7 @@ public Builder setSeverityValue(int value) { onChanged(); return this; } + /** * * @@ -727,6 +739,7 @@ public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED : result; } + /** * * @@ -750,6 +763,7 @@ public Builder setSeverity(com.google.pubsub.v1.PlatformLogsSettings.Severity va onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index e03a44ad4..0e28b70ff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -38,6 +38,7 @@ public interface PlatformLogsSettingsOrBuilder * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index b840d49fc..7c829056d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -33,6 +33,7 @@ public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) PublishRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use PublishRequest.newBuilder() to construct. private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -125,6 +128,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private java.util.List messages_; + /** * * @@ -140,6 +144,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public java.util.List getMessagesList() { return messages_; } + /** * * @@ -156,6 +161,7 @@ public java.util.List getMessagesList() { getMessagesOrBuilderList() { return messages_; } + /** * * @@ -171,6 +177,7 @@ public java.util.List getMessagesList() { public int getMessagesCount() { return messages_.size(); } + /** * * @@ -186,6 +193,7 @@ public int getMessagesCount() { public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -612,6 +621,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -637,6 +647,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -662,6 +673,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -686,6 +698,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -706,6 +719,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -766,6 +780,7 @@ public java.util.List getMessagesList() { return messagesBuilder_.getMessageList(); } } + /** * * @@ -784,6 +799,7 @@ public int getMessagesCount() { return messagesBuilder_.getCount(); } } + /** * * @@ -802,6 +818,7 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messagesBuilder_.getMessage(index); } } + /** * * @@ -826,6 +843,7 @@ public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) } return this; } + /** * * @@ -848,6 +866,7 @@ public Builder setMessages( } return this; } + /** * * @@ -872,6 +891,7 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { } return this; } + /** * * @@ -896,6 +916,7 @@ public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) } return this; } + /** * * @@ -917,6 +938,7 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderFor } return this; } + /** * * @@ -939,6 +961,7 @@ public Builder addMessages( } return this; } + /** * * @@ -961,6 +984,7 @@ public Builder addAllMessages( } return this; } + /** * * @@ -982,6 +1006,7 @@ public Builder clearMessages() { } return this; } + /** * * @@ -1003,6 +1028,7 @@ public Builder removeMessages(int index) { } return this; } + /** * * @@ -1017,6 +1043,7 @@ public Builder removeMessages(int index) { public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -1035,6 +1062,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde return messagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -1054,6 +1082,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde return java.util.Collections.unmodifiableList(messages_); } } + /** * * @@ -1069,6 +1098,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { return getMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } + /** * * @@ -1084,6 +1114,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) return getMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 9a2d623ae..86816c3a1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface PublishRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -67,6 +68,7 @@ public interface PublishRequestOrBuilder * */ java.util.List getMessagesList(); + /** * * @@ -79,6 +81,7 @@ public interface PublishRequestOrBuilder * */ com.google.pubsub.v1.PubsubMessage getMessages(int index); + /** * * @@ -91,6 +94,7 @@ public interface PublishRequestOrBuilder * */ int getMessagesCount(); + /** * * @@ -103,6 +107,7 @@ public interface PublishRequestOrBuilder * */ java.util.List getMessagesOrBuilderList(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index c39c3e567..82fdddcdc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,6 +33,7 @@ public final class PublishResponse extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) PublishResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use PublishResponse.newBuilder() to construct. private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -84,6 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_; } + /** * * @@ -100,6 +103,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { public int getMessageIdsCount() { return messageIds_.size(); } + /** * * @@ -117,6 +121,7 @@ public int getMessageIdsCount() { public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } + /** * * @@ -299,6 +304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -496,6 +502,7 @@ private void ensureMessageIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -513,6 +520,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { messageIds_.makeImmutable(); return messageIds_; } + /** * * @@ -529,6 +537,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { public int getMessageIdsCount() { return messageIds_.size(); } + /** * * @@ -546,6 +555,7 @@ public int getMessageIdsCount() { public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } + /** * * @@ -563,6 +573,7 @@ public java.lang.String getMessageIds(int index) { public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } + /** * * @@ -588,6 +599,7 @@ public Builder setMessageIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -612,6 +624,7 @@ public Builder addMessageIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -633,6 +646,7 @@ public Builder addAllMessageIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -653,6 +667,7 @@ public Builder clearMessageIds() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index d5a3f1c93..a25181e58 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -38,6 +38,7 @@ public interface PublishResponseOrBuilder * @return A list containing the messageIds. */ java.util.List getMessageIdsList(); + /** * * @@ -52,6 +53,7 @@ public interface PublishResponseOrBuilder * @return The count of messageIds. */ int getMessageIdsCount(); + /** * * @@ -67,6 +69,7 @@ public interface PublishResponseOrBuilder * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index c2480df87..0a8c645d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -40,6 +40,7 @@ public final class PubsubMessage extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage) PubsubMessageOrBuilder { private static final long serialVersionUID = 0L; + // Use PubsubMessage.newBuilder() to construct. private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -87,6 +88,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -130,6 +132,7 @@ private com.google.protobuf.MapField interna public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -149,12 +152,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -171,6 +176,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -194,6 +200,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -222,6 +229,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { @SuppressWarnings("serial") private volatile java.lang.Object messageId_ = ""; + /** * * @@ -248,6 +256,7 @@ public java.lang.String getMessageId() { return s; } } + /** * * @@ -277,6 +286,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { public static final int PUBLISH_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp publishTime_; + /** * * @@ -294,6 +304,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { public boolean hasPublishTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -311,6 +322,7 @@ public boolean hasPublishTime() { public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } + /** * * @@ -331,6 +343,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { @SuppressWarnings("serial") private volatile java.lang.Object orderingKey_ = ""; + /** * * @@ -361,6 +374,7 @@ public java.lang.String getOrderingKey() { return s; } } + /** * * @@ -598,6 +612,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -886,6 +901,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -902,6 +918,7 @@ public Builder mergeFrom( public com.google.protobuf.ByteString getData() { return data_; } + /** * * @@ -924,6 +941,7 @@ public Builder setData(com.google.protobuf.ByteString value) { onChanged(); return this; } + /** * * @@ -971,6 +989,7 @@ public Builder clearData() { public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -990,12 +1009,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -1012,6 +1033,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -1035,6 +1057,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1064,6 +1087,7 @@ public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap().clear(); return this; } + /** * * @@ -1083,12 +1107,14 @@ public Builder removeAttributes(java.lang.String key) { internalGetMutableAttributes().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } + /** * * @@ -1112,6 +1138,7 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -1131,6 +1158,7 @@ public Builder putAllAttributes(java.util.Map publishTimeBuilder_; + /** * * @@ -1273,6 +1306,7 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { public boolean hasPublishTime() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -1295,6 +1329,7 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTimeBuilder_.getMessage(); } } + /** * * @@ -1319,6 +1354,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1340,6 +1376,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa onChanged(); return this; } + /** * * @@ -1369,6 +1406,7 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1390,6 +1428,7 @@ public Builder clearPublishTime() { onChanged(); return this; } + /** * * @@ -1406,6 +1445,7 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() { onChanged(); return getPublishTimeFieldBuilder().getBuilder(); } + /** * * @@ -1426,6 +1466,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { : publishTime_; } } + /** * * @@ -1455,6 +1496,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } private java.lang.Object orderingKey_ = ""; + /** * * @@ -1484,6 +1526,7 @@ public java.lang.String getOrderingKey() { return (java.lang.String) ref; } } + /** * * @@ -1513,6 +1556,7 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1541,6 +1585,7 @@ public Builder setOrderingKey(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1565,6 +1610,7 @@ public Builder clearOrderingKey() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 0e159683a..aaa6bb857 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -51,6 +51,7 @@ public interface PubsubMessageOrBuilder * */ int getAttributesCount(); + /** * * @@ -64,9 +65,11 @@ public interface PubsubMessageOrBuilder * */ boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); + /** * * @@ -80,6 +83,7 @@ public interface PubsubMessageOrBuilder * */ java.util.Map getAttributesMap(); + /** * * @@ -97,6 +101,7 @@ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -126,6 +131,7 @@ java.lang.String getAttributesOrDefault( * @return The messageId. */ java.lang.String getMessageId(); + /** * * @@ -156,6 +162,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the publishTime field is set. */ boolean hasPublishTime(); + /** * * @@ -170,6 +177,7 @@ java.lang.String getAttributesOrDefault( * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); + /** * * @@ -202,6 +210,7 @@ java.lang.String getAttributesOrDefault( * @return The orderingKey. */ java.lang.String getOrderingKey(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 6a8d54f74..22c1a66bb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -357,404 +357,533 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n\035google/pubsub/v1/pubsub.proto\022\020google." + "\n" + + "\035google/pubsub/v1/pubsub.proto\022\020google." + "pubsub.v1\032\034google/api/annotations.proto\032" + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\036google/protobuf/duration.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\"a\n\024MessageStoragePolicy\022(\n\033allowed_p" - + "ersistence_regions\030\001 \003(\tB\003\340A\001\022\037\n\022enforce" - + "_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n\016SchemaSetting" - + "s\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.google" - + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" - + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" - + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\310\027\n\033IngestionDataSourceSetting" - + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" - + "1.IngestionDataSourceSettings.AwsKinesis" - + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." - + "pubsub.v1.IngestionDataSourceSettings.Cl" - + "oudStorageB\003\340A\001H\000\022]\n\020azure_event_hubs\030\003 " - + "\001(\0132<.google.pubsub.v1.IngestionDataSour" - + "ceSettings.AzureEventHubsB\003\340A\001H\000\022L\n\007aws_" - + "msk\030\005 \001(\01324.google.pubsub.v1.IngestionDa" - + "taSourceSettings.AwsMskB\003\340A\001H\000\022\\\n\017conflu" - + "ent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" - + "tionDataSourceSettings.ConfluentCloudB\003\340" - + "A\001H\000\022K\n\026platform_logs_settings\030\004 \001(\0132&.g" - + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A" - + "\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>.google" - + ".pubsub.v1.IngestionDataSourceSettings.A" - + "wsKinesis.StateB\003\340A\003\022\027\n\nstream_arn\030\002 \001(\t" - + "B\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n\014aws_" - + "role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service_accou" - + "nt\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERMISSION" - + "_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003" - + "\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER_NOT_F" - + "OUND\020\005\032\225\006\n\014CloudStorage\022T\n\005state\030\001 \001(\0162@" - + ".google.pubsub.v1.IngestionDataSourceSet" - + "tings.CloudStorage.StateB\003\340A\003\022\023\n\006bucket\030" - + "\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003 \001(\0132E.google" - + ".pubsub.v1.IngestionDataSourceSettings.C" - + "loudStorage.TextFormatB\003\340A\001H\000\022a\n\013avro_fo" - + "rmat\030\004 \001(\0132E.google.pubsub.v1.IngestionD" - + "ataSourceSettings.CloudStorage.AvroForma" - + "tB\003\340A\001H\000\022n\n\022pubsub_avro_format\030\005 \001(\0132K.g" - + "oogle.pubsub.v1.IngestionDataSourceSetti" - + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000" - + "\022C\n\032minimum_object_create_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\001\022\027\n\nmatch_g" - + "lob\030\t \001(\tB\003\340A\001\0327\n\nTextFormat\022\033\n\tdelimite" - + "r\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delimiter\032\014\n\nAvroF" - + "ormat\032\022\n\020PubSubAvroFormat\"\232\001\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022#\n\037CLOUD_" - + "STORAGE_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" - + "ERMISSION_DENIED\020\003\022\024\n\020BUCKET_NOT_FOUND\020\004" - + "\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014input_format\032\377" - + "\003\n\016AzureEventHubs\022V\n\005state\030\001 \001(\0162B.googl" - + "e.pubsub.v1.IngestionDataSourceSettings." - + "AzureEventHubs.StateB\003\340A\003\022\033\n\016resource_gr" - + "oup\030\002 \001(\tB\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001\022\026" - + "\n\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n\tclient_id\030\005 \001(" - + "\tB\003\340A\001\022\026\n\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n\017subscr" - + "iption_id\030\007 \001(\tB\003\340A\001\022 \n\023gcp_service_acco" - + "unt\030\010 \001(\tB\003\340A\001\"\327\001\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022 \n\034EVENT_HUBS_PERMIS" - + "SION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENI" - + "ED\020\003\022\027\n\023NAMESPACE_NOT_FOUND\020\004\022\027\n\023EVENT_H" - + "UB_NOT_FOUND\020\005\022\032\n\026SUBSCRIPTION_NOT_FOUND" - + "\020\006\022\034\n\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n\006Aws" - + "Msk\022N\n\005state\030\001 \001(\0162:.google.pubsub.v1.In" - + "gestionDataSourceSettings.AwsMsk.StateB\003" - + "\340A\003\022\030\n\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n\005topic\030\003" - + " \001(\tB\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023" - + "gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\031\n\025M" - + "SK_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" - + "SION_DENIED\020\003\022\025\n\021CLUSTER_NOT_FOUND\020\004\022\023\n\017" - + "TOPIC_NOT_FOUND\020\005\032\266\003\n\016ConfluentCloud\022V\n\005" - + "state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" - + "DataSourceSettings.ConfluentCloud.StateB" - + "\003\340A\003\022\035\n\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\nc" - + "luster_id\030\003 \001(\tB\003\340A\002\022\022\n\005topic\030\004 \001(\tB\003\340A\002" - + "\022\035\n\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n\023gcp_s" - + "ervice_account\030\006 \001(\tB\003\340A\002\"\276\001\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022%\n!CONFLU" - + "ENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH" - + "_PERMISSION_DENIED\020\003\022 \n\034UNREACHABLE_BOOT" - + "STRAP_SERVER\020\004\022\025\n\021CLUSTER_NOT_FOUND\020\005\022\023\n" - + "\017TOPIC_NOT_FOUND\020\006B\010\n\006source\"\277\001\n\024Platfor" - + "mLogsSettings\022F\n\010severity\030\001 \001(\0162/.google" - + ".pubsub.v1.PlatformLogsSettings.Severity" - + "B\003\340A\001\"_\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIE" - + "D\020\000\022\014\n\010DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013" - + "\n\007WARNING\020\004\022\t\n\005ERROR\020\005\"\211\014\n\025IngestionFail" - + "ureEvent\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_me" - + "ssage\030\002 \001(\tB\003\340A\002\022a\n\025cloud_storage_failur" - + "e\030\003 \001(\0132;.google.pubsub.v1.IngestionFail" - + "ureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n\017a" - + "ws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." - + "IngestionFailureEvent.AwsMskFailureReaso" - + "nB\003\340A\001H\000\022l\n\030azure_event_hubs_failure\030\005 \001" - + "(\0132C.google.pubsub.v1.IngestionFailureEv" - + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k" - + "\n\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.Conflue" - + "ntCloudFailureReasonB\003\340A\001H\000\032\024\n\022ApiViolat" - + "ionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Cloud" - + "StorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013o" - + "bject_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generati" - + "on\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 \001" - + "(\01329.google.pubsub.v1.IngestionFailureEv" - + "ent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_viol" - + "ation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003" - + "\340A\001H\000B\010\n\006reason\032\344\001\n\023AwsMskFailureReason\022" - + "\030\n\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic" - + "\030\002 \001(\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023" - + "\n\006offset\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_rea" - + "son\030\005 \001(\0132:.google.pubsub.v1.IngestionFa" - + "ilureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n\006" - + "reason\032\350\001\n\033AzureEventHubsFailureReason\022\026" - + "\n\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n\tevent_hub\030\002 \001(" - + "\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006off" - + "set\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailure" - + "Event.ApiViolationReasonB\003\340A\001H\000B\010\n\006reaso" - + "n\032\353\001\n\033ConfluentCloudFailureReason\022\027\n\nclu" - + "ster_id\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic\030\002 \001(\tB" - + "\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006offse" - + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" - + "(\0132:.google.pubsub.v1.IngestionFailureEv" - + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" - + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" - + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"\216\001\n\020M" - + "essageTransform\022>\n\016javascript_udf\030\002 \001(\0132" - + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022" - + "\026\n\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n\010disabled\030\004 \001(" - + "\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005Topic\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub" - + ".v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message_st" - + "orage_policy\030\003 \001(\0132&.google.pubsub.v1.Me" - + "ssageStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030" - + "\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .go" - + "ogle.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsa" - + "tisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" - + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsu" - + "b.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_data_" - + "source_settings\030\n \001(\0132-.google.pubsub.v1" - + ".IngestionDataSourceSettingsB\003\340A\001\022C\n\022mes" - + "sage_transforms\030\r \003(\0132\".google.pubsub.v1" - + ".MessageTransformB\003\340A\001\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030ING" - + "ESTION_RESOURCE_ERROR\020\002:c\352A`\n\033pubsub.goo" - + "gleapis.com/Topic\022!projects/{project}/to" - + "pics/{topic}\022\017_deleted-topic_*\006topics2\005t" - + "opic\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A" - + "\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1" - + ".PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nm" - + "essage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032." - + "google.protobuf.Timestamp\022\031\n\014ordering_ke" - + "y\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReque" - + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005" - + "topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A" - + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005top" - + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub." - + "v1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse" - + "\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopic" - + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030" - + "\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017n" - + "ext_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicS" - + "ubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\"\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rs" - + "ubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReque" - + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnap" - + "shotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTop" - + "icRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub" - + ".googleapis.com/Topic\"]\n\031DetachSubscript" - + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\"\034\n\032" - + "DetachSubscriptionResponse\"\215\013\n\014Subscript" - + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340" - + "A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pu" - + "sh_config\030\004 \001(\0132\034.google.pubsub.v1.PushC" - + "onfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .go" - + "ogle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024cl" - + "oud_storage_config\030\026 \001(\0132$.google.pubsub" - + ".v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadl" - + "ine_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_m" - + "essages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" - + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v" - + "1.Subscription.LabelsEntryB\003\340A\001\022$\n\027enabl" - + "e_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirat" - + "ion_policy\030\013 \001(\0132\".google.pubsub.v1.Expi" - + "rationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C" - + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" - + "ub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_pol" - + "icy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicy" - + "B\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_e" - + "xactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic" - + "_message_retention_duration\030\021 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\016" - + "2$.google.pubsub.v1.Subscription.StateB\003" - + "\340A\003\022i\n\037analytics_hub_subscription_info\030\027" - + " \001(\0132;.google.pubsub.v1.Subscription.Ana" - + "lyticsHubSubscriptionInfoB\003\340A\003\022C\n\022messag" - + "e_transforms\030\031 \003(\0132\".google.pubsub.v1.Me" - + "ssageTransformB\003\340A\001\032O\n\034AnalyticsHubSubsc" - + "riptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014sub" - + "scription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOU" - + "RCE_ERROR\020\002:u\352Ar\n\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscri" - + "ptions/{subscription}*\rsubscriptions2\014su" - + "bscription\"\177\n\013RetryPolicy\0227\n\017minimum_bac" - + "koff\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\"V\n\020DeadLetterPolicy\022" - + "\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_d" - + "elivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020Expiratio" - + "nPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endp" - + "oint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.go" - + "ogle.pubsub.v1.PushConfig.AttributesEntr" - + "yB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.google.pubs" - + "ub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pub" - + "sub_wrapper\030\004 \001(\0132*.google.pubsub.v1.Pus" - + "hConfig.PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapp" - + "er\030\005 \001(\0132&.google.pubsub.v1.PushConfig.N" - + "oWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_" - + "account_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001" - + "(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n" - + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_methodB\t\n\007wrapper\"\216\003\n\016Bi" - + "gQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_" - + "topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadat" - + "a\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(" - + "\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google.pubsub.v1" - + ".BigQueryConfig.StateB\003\340A\003\022\035\n\020use_table_" - + "schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_account_ema" - + "il\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" - + "\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n" - + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022C" - + "loudStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034" - + "\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename" - + "_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_" - + "format\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/" - + ".google.pubsub.v1.CloudStorageConfig.Tex" - + "tConfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.AvroCo" - + "nfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007" - + " \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005" - + "state\030\t \001(\0162*.google.pubsub.v1.CloudStor" - + "ageConfig.StateB\003\340A\003\022\"\n\025service_account_" - + "email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroCo" - + "nfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use" - + "_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISS" - + "ION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSI" - + "T_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMA" - + "TCH\020\005B\017\n\routput_format\"|\n\017ReceivedMessag" - + "e\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132" - + "\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" - + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" - + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" - + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscrip" - + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsResponse" - + "\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub." - + "v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\"\223\001\n\027ModifyPush" - + "ConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "6\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1." - + "PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022!\n\022return_immediately\030" - + "\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"" - + "Q\n\014PullResponse\022A\n\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340" - + "A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" - + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" - + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPu" - + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_sec" - + "onds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_i" - + "ds\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_sec" - + "onds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022" - + "%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"" - + "\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025S" - + "treamingPullResponse\022A\n\021received_message" - + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" - + "geB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001(" - + "\0132?.google.pubsub.v1.StreamingPullRespon" - + "se.AcknowledgeConfirmationB\003\340A\001\022t\n modif" - + "y_ack_deadline_confirmation\030\003 \001(\0132E.goog" - + "le.pubsub.v1.StreamingPullResponse.Modif" - + "yAckDeadlineConfirmationB\003\340A\001\022d\n\027subscri" - + "ption_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionProp" - + "ertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022" - + "\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids" - + "\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003" - + "\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003\340" - + "A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007a" - + "ck_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003" - + "(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003(" - + "\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exac" - + "tly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030" - + "message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025" - + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002" - + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s" - + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\022H\n\006labels\030\003 \003(\01323." - + "google.pubsub.v1.CreateSnapshotRequest.L" - + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsho" - + "tRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pubs" - + "ub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n\010Sn" - + "apshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\t" - + "B#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224\n" - + "\013expire_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pub" - + "sub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "a\352A^\n\036pubsub.googleapis.com/Snapshot\022\'pr" - + "ojects/{project}/snapshots/{snapshot}*\ts" - + "napshots2\010snapshot\"N\n\022GetSnapshotRequest" - + "\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googl" - + "eapis.com/Snapshot\"\215\001\n\024ListSnapshotsRequ" - + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\026\n\tpag" - + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" - + "A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnapshots" - + "\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022" - + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteS" - + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\"\306\001\n\013See" - + "kRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022/\n\004ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.go" - + "ogleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014See" - + "kResponse2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027" - + ".google.pubsub.v1.Topic\032\027.google.pubsub." - + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=proje" - + "cts/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.goo" - + "gle.pubsub.v1.UpdateTopicRequest\032\027.googl" + + "roto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\032\035google/pubsub/v1/schema.proto\"a\n" + + "\024MessageStoragePolicy\022(\n" + + "\033allowed_persistence_regions\030\001 \003(\tB\003\340A\001\022\037\n" + + "\022enforce_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n" + + "\016SchemaSettings\0224\n" + + "\006schema\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034pubsub.googleapis.com/Schema\0221\n" + + "\010encoding\030\002 \001(\0162\032.google.pubsub.v1.EncodingB\003\340A\001\022\036\n" + + "\021first_revision_id\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\310\027\n" + + "\033IngestionDataSourceSettings\022T\n" + + "\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + + "1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n\r" + + "cloud_storage\030\002 \001(\0132:.google." + + "pubsub.v1.IngestionDataSourceSettings.CloudStorageB\003\340A\001H\000\022]\n" + + "\020azure_event_hubs\030\003 " + + "\001(\0132<.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsB\003\340A\001H\000\022L\n" + + "\007aws_msk\030\005" + + " \001(\01324.google.pubsub.v1.IngestionDataSourceSettings.AwsMskB\003\340A\001H\000\022\\\n" + + "\017confluent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" + + "tionDataSourceSettings.ConfluentCloudB\003\340A\001H\000\022K\n" + + "\026platform_logs_settings\030\004 \001(\0132&.g" + + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A\001\032\352\002\n\n" + + "AwsKinesis\022R\n" + + "\005state\030\001 \001(\0162>.google" + + ".pubsub.v1.IngestionDataSourceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\n" + + "stream_arn\030\002 \001(\tB\003\340A\002\022\031\n" + + "\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\226\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\035\n" + + "\031KINESIS_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n" + + "\020STREAM_NOT_FOUND\020\004\022\026\n" + + "\022CONSUMER_NOT_FOUND\020\005\032\225\006\n" + + "\014CloudStorage\022T\n" + + "\005state\030\001 \001(\0162@" + + ".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.StateB\003\340A\003\022\023\n" + + "\006bucket\030\002 \001(\tB\003\340A\001\022a\n" + + "\013text_format\030\003 \001(\0132E.google" + + ".pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatB\003\340A\001H\000\022a\n" + + "\013avro_format\030\004 \001(\0132E.google.pubsub.v1.IngestionD" + + "ataSourceSettings.CloudStorage.AvroFormatB\003\340A\001H\000\022n\n" + + "\022pubsub_avro_format\030\005 \001(\0132K.google.pubsub.v1.IngestionDataSourceSetti" + + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000\022C\n" + + "\032minimum_object_create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" + + "match_glob\030\t \001(\tB\003\340A\001\0327\n\n" + + "TextFormat\022\033\n" + + "\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n" + + "_delimiter\032\014\n\n" + + "AvroFormat\032\022\n" + + "\020PubSubAvroFormat\"\232\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022#\n" + + "\037CLOUD_STORAGE_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n" + + "\020BUCKET_NOT_FOUND\020\004\022\024\n" + + "\020TOO_MANY_OBJECTS\020\005B\016\n" + + "\014input_format\032\377\003\n" + + "\016AzureEventHubs\022V\n" + + "\005state\030\001 \001(\0162B.googl" + + "e.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.StateB\003\340A\003\022\033\n" + + "\016resource_group\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tnamespace\030\003 \001(\tB\003\340A\001\022\026\n" + + "\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n" + + "\tclient_id\030\005 \001(\tB\003\340A\001\022\026\n" + + "\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n" + + "\017subscription_id\030\007 \001(\tB\003\340A\001\022 \n" + + "\023gcp_service_account\030\010 \001(\tB\003\340A\001\"\327\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022 \n" + + "\034EVENT_HUBS_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\027\n" + + "\023NAMESPACE_NOT_FOUND\020\004\022\027\n" + + "\023EVENT_HUB_NOT_FOUND\020\005\022\032\n" + + "\026SUBSCRIPTION_NOT_FOUND\020\006\022\034\n" + + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n" + + "\006AwsMsk\022N\n" + + "\005state\030\001 \001(\0162:.google.pubsub.v1.In" + + "gestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" + + "\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n" + + "\005topic\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\031\n" + + "\025MSK_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\025\n" + + "\021CLUSTER_NOT_FOUND\020\004\022\023\n" + + "\017TOPIC_NOT_FOUND\020\005\032\266\003\n" + + "\016ConfluentCloud\022V\n" + + "\005state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" + + "DataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + + "\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "cluster_id\030\003 \001(\tB\003\340A\002\022\022\n" + + "\005topic\030\004 \001(\tB\003\340A\002\022\035\n" + + "\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\006 \001(\tB\003\340A\002\"\276\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022%\n" + + "!CONFLUENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022 \n" + + "\034UNREACHABLE_BOOTSTRAP_SERVER\020\004\022\025\n" + + "\021CLUSTER_NOT_FOUND\020\005\022\023\n" + + "\017TOPIC_NOT_FOUND\020\006B\010\n" + + "\006source\"\277\001\n" + + "\024PlatformLogsSettings\022F\n" + + "\010severity\030\001 \001(\0162/.google" + + ".pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\t\n" + + "\005DEBUG\020\002\022\010\n" + + "\004INFO\020\003\022\013\n" + + "\007WARNING\020\004\022\t\n" + + "\005ERROR\020\005\"\211\014\n" + + "\025IngestionFailureEvent\022\022\n" + + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "error_message\030\002 \001(\tB\003\340A\002\022a\n" + + "\025cloud_storage_failure\030\003" + + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" + + "\017aws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." + + "IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" + + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" + + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + + "\027confluent_cloud_failure\030\006 \001(\0132C.google" + + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\032\024\n" + + "\022ApiViolationReason\032\023\n" + + "\021AvroFailureReason\032\256\002\n" + + "\023CloudStorageFailure\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" + + "\023avro_failure_reason\030\005 \001" + + "(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\344\001\n" + + "\023AwsMskFailureReason\022\030\n" + + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\350\001\n" + + "\033AzureEventHubsFailureReason\022\026\n" + + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\353\001\n" + + "\033ConfluentCloudFailureReason\022\027\n\n" + + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005 \001" + + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reasonB\t\n" + + "\007failure\">\n\r" + + "JavaScriptUDF\022\032\n\r" + + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + + "\020MessageTransform\022>\n" + + "\016javascript_udf\030\002 \001(\0132" + + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + + "\ttransform\"\216\006\n" + + "\005Topic\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" + + "\026message_storage_policy\030\003" + + " \001(\0132&.google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + + "\017schema_settings\030\006 \001(\0132" + + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n" + + "\032message_retention_duration\030\010" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0221\n" + + "\005state\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n" + + "\036ingestion_data_source_settings\030\n" + + " \001(\0132-.google.pubsub.v1.IngestionDataSourceSettingsB\003\340A\001\022C\n" + + "\022message_transforms\030\r" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"H\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\034\n" + + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/to" + + "pics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "PubsubMessage\022\021\n" + + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + + "attributes\030\002" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + "message_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"E\n" + + "\017GetTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"w\n" + + "\022UpdateTopicRequest\022+\n" + + "\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" + + "\016PublishRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0226\n" + + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n" + + "\017PublishResponse\022\030\n" + + "\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n" + + "\021ListTopicsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + + "\022ListTopicsResponse\022,\n" + + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n" + + "\035ListTopicSubscriptionsRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" + + "\036ListTopicSubscriptionsResponse\022A\n\r" + + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" + + "\031ListTopicSnapshotsRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"R\n" + + "\032ListTopicSnapshotsResponse\022\026\n" + + "\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" + + "\022DeleteTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"]\n" + + "\031DetachSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\034\n" + + "\032DetachSubscriptionResponse\"\215\013\n" + + "\014Subscription\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0226\n" + + "\013push_config\030\004" + + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + + "\017bigquery_config\030\022 \001(\0132" + + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" + + "\024cloud_storage_config\030\026" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + + "\032message_retention_duration\030\010" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" + + "\006labels\030\t" + + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\027enable_message_ordering\030\n" + + " \001(\010B\003\340A\001\022B\n" + + "\021expiration_policy\030\013" + + " \001(\0132\".google.pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n" + + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + + "\022dead_letter_policy\030\r" + + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" + + "\014retry_policy\030\016" + + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + + " topic_message_retention_duration\030\021" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" + + "\037analytics_hub_subscription_info\030\027" + + " \001(\0132;.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\022message_transforms\030\031" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" + + "\034AnalyticsHubSubscriptionInfo\022\024\n" + + "\007listing\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014subscription\030\002 \001(\tB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\">\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\022\n" + + "\016RESOURCE_ERROR\020\002:u\352Ar\n" + + "\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "subscriptions2\014subscription\"\177\n" + + "\013RetryPolicy\0227\n" + + "\017minimum_backoff\030\001" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" + + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"V\n" + + "\020DeadLetterPolicy\022\036\n" + + "\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n" + + "\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n" + + "\020ExpirationPolicy\022+\n" + + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + + "PushConfig\022\032\n\r" + + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" + + "attributes\030\002 \003(\0132,.go" + + "ogle.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003" + + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "no_wrapper\030\005" + + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + + "\tOidcToken\022\"\n" + + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n" + + "\010audience\030\002 \001(\tB\003\340A\001\032\017\n\r" + + "PubsubWrapper\032(\n" + + "\tNoWrapper\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_methodB\t\n" + + "\007wrapper\"\216\003\n" + + "\016BigQueryConfig\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" + + "\005state\030\005" + + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n" + + "\021PERMISSION_DENIED\020\002\022\r\n" + + "\tNOT_FOUND\020\003\022\023\n" + + "\017SCHEMA_MISMATCH\020\004\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n" + + "\022CloudStorageConfig\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + + "\030filename_datetime_format\030\n" + + " \001(\tB\003\340A\001\022K\n" + + "\013text_config\030\004 \001(\0132/" + + ".google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\014max_duration\030\006" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" + + "\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + + "TextConfig\032H\n\n" + + "AvroConfig\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n" + + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n" + + "\021PERMISSION_DENIED\020\002\022\r\n" + + "\tNOT_FOUND\020\003\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n" + + "\017SCHEMA_MISMATCH\020\005B\017\n\r" + + "output_format\"|\n" + + "\017ReceivedMessage\022\023\n" + + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" + + "\007message\030\002" + + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + + "\026GetSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + + "\031UpdateSubscriptionRequest\0229\n" + + "\014subscription\030\001" + + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" + + "\030ListSubscriptionsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\031ListSubscriptionsResponse\022:\n\r" + + "subscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" + + "\031DeleteSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\223\001\n" + + "\027ModifyPushConfigRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\0226\n" + + "\013push_config\030\002" + + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n" + + "\013PullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022!\n" + + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + + "\014PullResponse\022A\n" + + "\021received_messages\030\001 \003" + + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\030ModifyAckDeadlineRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n" + + "\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n" + + "\022AcknowledgeRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n" + + "\024StreamingPullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n" + + "\027modify_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n" + + "\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n" + + "\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n" + + "\tclient_id\030\006 \001(\tB\003\340A\001\022%\n" + + "\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n" + + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025StreamingPullResponse\022A\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" + + "\030acknowledge_confirmation\030\005 \001(" + + "\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.goog" + + "le.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\027AcknowledgeConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" + + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n" + + "\030temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n" + + "\035ModifyAckDeadlineConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n" + + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + + "\026SubscriptionProperties\022*\n" + + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\025CreateSnapshotRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\022@\n" + + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n" + + "\006labels\030\003 \003(\01323." + + "google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n" + + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n" + + "\010Snapshot\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\0222\n" + + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0224\n" + + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" + + "\006labels\030\004" + + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + + "\tsnapshots2\010snapshot\"N\n" + + "\022GetSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" + + "\024ListSnapshotsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + + "\025ListSnapshotsResponse\0222\n" + + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" + + "\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + + "\013SeekRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022/\n" + + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" + + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n" + + "\014SeekResponse2\270\013\n" + + "\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub." + + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.googl" + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" - + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics" - + "/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.Pu" - + "blishRequest\032!.google.pubsub.v1.PublishR" - + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{t" - + "opic=projects/*/topics/*}:publish:\001*\022w\n\010" - + "GetTopic\022!.google.pubsub.v1.GetTopicRequ" + + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishR" + + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequ" + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" - + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001" - + "\n\nListTopics\022#.google.pubsub.v1.ListTopi" - + "csRequest\032$.google.pubsub.v1.ListTopicsR" - + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=" - + "projects/*}/topics\022\272\001\n\026ListTopicSubscrip" - + "tions\022/.google.pubsub.v1.ListTopicSubscr" + + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsR" + + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscr" + "iptionsRequest\0320.google.pubsub.v1.ListTo" + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", "\022-/v1/{topic=projects/*/topics/*}/subscr" @@ -842,11 +971,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" + "m\322AUhttps://www.googleapis.com/auth/clou" + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\247\001\n\024com.google.pubsub.v1B\013Pubs" - + "ubProtoP\001Z2cloud.google.com/go/pubsub/ap" - + "iv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pub" - + "Sub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google" - + "::Cloud::PubSub::V1b\006proto3" + + "th/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pubs" + + "ubProtoP\001Z5cloud.google.com/go/pubsub/v2" + + "/apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud." + + "PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goo" + + "gle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 1ad7fd33c..7db45411e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -33,6 +33,7 @@ public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use PullRequest.newBuilder() to construct. private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -91,6 +93,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -120,6 +123,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; private boolean returnImmediately_ = false; + /** * * @@ -148,6 +152,7 @@ public boolean getReturnImmediately() { public static final int MAX_MESSAGES_FIELD_NUMBER = 3; private int maxMessages_ = 0; + /** * * @@ -341,6 +346,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -549,6 +555,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -574,6 +581,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -599,6 +607,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -623,6 +632,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -643,6 +653,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -670,6 +681,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { } private boolean returnImmediately_; + /** * * @@ -696,6 +708,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean getReturnImmediately() { return returnImmediately_; } + /** * * @@ -726,6 +739,7 @@ public Builder setReturnImmediately(boolean value) { onChanged(); return this; } + /** * * @@ -756,6 +770,7 @@ public Builder clearReturnImmediately() { } private int maxMessages_; + /** * * @@ -773,6 +788,7 @@ public Builder clearReturnImmediately() { public int getMaxMessages() { return maxMessages_; } + /** * * @@ -794,6 +810,7 @@ public Builder setMaxMessages(int value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 0b296c5d5..bee10d2e9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface PullRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 9114f636f..e65fd1ebf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,6 +33,7 @@ public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use PullResponse.newBuilder() to construct. private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List receivedMessages_; + /** * * @@ -86,6 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getReceivedMessagesList() { return receivedMessages_; } + /** * * @@ -106,6 +109,7 @@ public java.util.List getReceivedMessagesL getReceivedMessagesOrBuilderList() { return receivedMessages_; } + /** * * @@ -125,6 +129,7 @@ public java.util.List getReceivedMessagesL public int getReceivedMessagesCount() { return receivedMessages_.size(); } + /** * * @@ -144,6 +149,7 @@ public int getReceivedMessagesCount() { public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } + /** * * @@ -323,6 +329,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -588,6 +595,7 @@ public java.util.List getReceivedMessagesL return receivedMessagesBuilder_.getMessageList(); } } + /** * * @@ -610,6 +618,7 @@ public int getReceivedMessagesCount() { return receivedMessagesBuilder_.getCount(); } } + /** * * @@ -632,6 +641,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessagesBuilder_.getMessage(index); } } + /** * * @@ -660,6 +670,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -686,6 +697,7 @@ public Builder setReceivedMessages( } return this; } + /** * * @@ -714,6 +726,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { } return this; } + /** * * @@ -742,6 +755,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -768,6 +782,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -794,6 +809,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -820,6 +836,7 @@ public Builder addAllReceivedMessages( } return this; } + /** * * @@ -845,6 +862,7 @@ public Builder clearReceivedMessages() { } return this; } + /** * * @@ -870,6 +888,7 @@ public Builder removeReceivedMessages(int index) { } return this; } + /** * * @@ -888,6 +907,7 @@ public Builder removeReceivedMessages(int index) { public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -910,6 +930,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return receivedMessagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -933,6 +954,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return java.util.Collections.unmodifiableList(receivedMessages_); } } + /** * * @@ -952,6 +974,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() return getReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -971,6 +994,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return getReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 664f3de29..d22ff6c8f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -40,6 +40,7 @@ public interface PullResponseOrBuilder * */ java.util.List getReceivedMessagesList(); + /** * * @@ -56,6 +57,7 @@ public interface PullResponseOrBuilder * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** * * @@ -72,6 +74,7 @@ public interface PullResponseOrBuilder * */ int getReceivedMessagesCount(); + /** * * @@ -89,6 +92,7 @@ public interface PullResponseOrBuilder */ java.util.List getReceivedMessagesOrBuilderList(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 4eda45f36..fc509ebb9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,6 +33,7 @@ public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use PushConfig.newBuilder() to construct. private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -94,6 +95,7 @@ public interface OidcTokenOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * @@ -129,6 +131,7 @@ public interface OidcTokenOrBuilder * @return The audience. */ java.lang.String getAudience(); + /** * * @@ -148,6 +151,7 @@ public interface OidcTokenOrBuilder */ com.google.protobuf.ByteString getAudienceBytes(); } + /** * * @@ -164,6 +168,7 @@ public static final class OidcToken extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken) OidcTokenOrBuilder { private static final long serialVersionUID = 0L; + // Use OidcToken.newBuilder() to construct. private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -199,6 +204,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -226,6 +232,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -258,6 +265,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { @SuppressWarnings("serial") private volatile java.lang.Object audience_ = ""; + /** * * @@ -287,6 +295,7 @@ public java.lang.String getAudience() { return s; } } + /** * * @@ -486,6 +495,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -689,6 +699,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -715,6 +726,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -741,6 +753,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -766,6 +779,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -787,6 +801,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * @@ -815,6 +830,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) } private java.lang.Object audience_ = ""; + /** * * @@ -843,6 +859,7 @@ public java.lang.String getAudience() { return (java.lang.String) ref; } } + /** * * @@ -871,6 +888,7 @@ public com.google.protobuf.ByteString getAudienceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -898,6 +916,7 @@ public Builder setAudience(java.lang.String value) { onChanged(); return this; } + /** * * @@ -921,6 +940,7 @@ public Builder clearAudience() { onChanged(); return this; } + /** * * @@ -1018,6 +1038,7 @@ public interface PubsubWrapperOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.PubsubWrapper) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -1034,6 +1055,7 @@ public static final class PubsubWrapper extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.PubsubWrapper) PubsubWrapperOrBuilder { private static final long serialVersionUID = 0L; + // Use PubsubWrapper.newBuilder() to construct. private PubsubWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1213,6 +1235,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1460,6 +1483,7 @@ public interface NoWrapperOrBuilder */ boolean getWriteMetadata(); } + /** * * @@ -1474,6 +1498,7 @@ public static final class NoWrapper extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.NoWrapper) NoWrapperOrBuilder { private static final long serialVersionUID = 0L; + // Use NoWrapper.newBuilder() to construct. private NoWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1504,6 +1529,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int WRITE_METADATA_FIELD_NUMBER = 1; private boolean writeMetadata_ = false; + /** * * @@ -1682,6 +1708,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1866,6 +1893,7 @@ public Builder mergeFrom( private int bitField0_; private boolean writeMetadata_; + /** * * @@ -1883,6 +1911,7 @@ public Builder mergeFrom( public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1904,6 +1933,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -2004,6 +2034,7 @@ public enum AuthenticationMethodCase private AuthenticationMethodCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2051,6 +2082,7 @@ public enum WrapperCase private WrapperCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2087,6 +2119,7 @@ public WrapperCase getWrapperCase() { @SuppressWarnings("serial") private volatile java.lang.Object pushEndpoint_ = ""; + /** * * @@ -2111,6 +2144,7 @@ public java.lang.String getPushEndpoint() { return s; } } + /** * * @@ -2162,6 +2196,7 @@ private com.google.protobuf.MapField interna public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -2199,12 +2234,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -2239,6 +2276,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -2280,6 +2318,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -2323,6 +2362,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { } public static final int OIDC_TOKEN_FIELD_NUMBER = 3; + /** * * @@ -2342,6 +2382,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } + /** * * @@ -2364,6 +2405,7 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } + /** * * @@ -2386,6 +2428,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( } public static final int PUBSUB_WRAPPER_FIELD_NUMBER = 4; + /** * * @@ -2405,6 +2448,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } + /** * * @@ -2427,6 +2471,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { } return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } + /** * * @@ -2449,6 +2494,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr } public static final int NO_WRAPPER_FIELD_NUMBER = 5; + /** * * @@ -2466,6 +2512,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr public boolean hasNoWrapper() { return wrapperCase_ == 5; } + /** * * @@ -2486,6 +2533,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { } return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } + /** * * @@ -2742,6 +2790,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -3067,6 +3116,7 @@ public Builder clearWrapper() { private int bitField0_; private java.lang.Object pushEndpoint_ = ""; + /** * * @@ -3090,6 +3140,7 @@ public java.lang.String getPushEndpoint() { return (java.lang.String) ref; } } + /** * * @@ -3113,6 +3164,7 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3135,6 +3187,7 @@ public Builder setPushEndpoint(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3153,6 +3206,7 @@ public Builder clearPushEndpoint() { onChanged(); return this; } + /** * * @@ -3205,6 +3259,7 @@ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -3242,12 +3297,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -3282,6 +3339,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -3323,6 +3381,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -3370,6 +3429,7 @@ public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap().clear(); return this; } + /** * * @@ -3407,12 +3467,14 @@ public Builder removeAttributes(java.lang.String key) { internalGetMutableAttributes().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } + /** * * @@ -3454,6 +3516,7 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -3495,6 +3558,7 @@ public Builder putAllAttributes(java.util.Map oidcTokenBuilder_; + /** * * @@ -3514,6 +3578,7 @@ public Builder putAllAttributes(java.util.Map pubsubWrapperBuilder_; + /** * * @@ -3759,6 +3832,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } + /** * * @@ -3788,6 +3862,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } } + /** * * @@ -3814,6 +3889,7 @@ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper va wrapperCase_ = 4; return this; } + /** * * @@ -3838,6 +3914,7 @@ public Builder setPubsubWrapper( wrapperCase_ = 4; return this; } + /** * * @@ -3874,6 +3951,7 @@ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper wrapperCase_ = 4; return this; } + /** * * @@ -3903,6 +3981,7 @@ public Builder clearPubsubWrapper() { } return this; } + /** * * @@ -3919,6 +3998,7 @@ public Builder clearPubsubWrapper() { public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { return getPubsubWrapperFieldBuilder().getBuilder(); } + /** * * @@ -3943,6 +4023,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } } + /** * * @@ -3985,6 +4066,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> noWrapperBuilder_; + /** * * @@ -4002,6 +4084,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr public boolean hasNoWrapper() { return wrapperCase_ == 5; } + /** * * @@ -4029,6 +4112,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } } + /** * * @@ -4053,6 +4137,7 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { wrapperCase_ = 5; return this; } + /** * * @@ -4074,6 +4159,7 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder bu wrapperCase_ = 5; return this; } + /** * * @@ -4108,6 +4194,7 @@ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { wrapperCase_ = 5; return this; } + /** * * @@ -4135,6 +4222,7 @@ public Builder clearNoWrapper() { } return this; } + /** * * @@ -4149,6 +4237,7 @@ public Builder clearNoWrapper() { public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { return getNoWrapperFieldBuilder().getBuilder(); } + /** * * @@ -4171,6 +4260,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 38b1bc963..784239904 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -37,6 +37,7 @@ public interface PushConfigOrBuilder * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); + /** * * @@ -82,6 +83,7 @@ public interface PushConfigOrBuilder * */ int getAttributesCount(); + /** * * @@ -113,9 +115,11 @@ public interface PushConfigOrBuilder * */ boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); + /** * * @@ -147,6 +151,7 @@ public interface PushConfigOrBuilder * */ java.util.Map getAttributesMap(); + /** * * @@ -182,6 +187,7 @@ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -230,6 +236,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); + /** * * @@ -246,6 +253,7 @@ java.lang.String getAttributesOrDefault( * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); + /** * * @@ -277,6 +285,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the pubsubWrapper field is set. */ boolean hasPubsubWrapper(); + /** * * @@ -293,6 +302,7 @@ java.lang.String getAttributesOrDefault( * @return The pubsubWrapper. */ com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper(); + /** * * @@ -322,6 +332,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the noWrapper field is set. */ boolean hasNoWrapper(); + /** * * @@ -336,6 +347,7 @@ java.lang.String getAttributesOrDefault( * @return The noWrapper. */ com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 99bf4f40b..bf67f45de 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,6 +33,7 @@ public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { private static final long serialVersionUID = 0L; + // Use ReceivedMessage.newBuilder() to construct. private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object ackId_ = ""; + /** * * @@ -91,6 +93,7 @@ public java.lang.String getAckId() { return s; } } + /** * * @@ -117,6 +120,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; + /** * * @@ -133,6 +137,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { public boolean hasMessage() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -149,6 +154,7 @@ public boolean hasMessage() { public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } + /** * * @@ -166,6 +172,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_ = 0; + /** * * @@ -377,6 +384,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -601,6 +609,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object ackId_ = ""; + /** * * @@ -623,6 +632,7 @@ public java.lang.String getAckId() { return (java.lang.String) ref; } } + /** * * @@ -645,6 +655,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -666,6 +677,7 @@ public Builder setAckId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -683,6 +695,7 @@ public Builder clearAckId() { onChanged(); return this; } + /** * * @@ -712,6 +725,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; + /** * * @@ -727,6 +741,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -748,6 +763,7 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return messageBuilder_.getMessage(); } } + /** * * @@ -771,6 +787,7 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { onChanged(); return this; } + /** * * @@ -791,6 +808,7 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV onChanged(); return this; } + /** * * @@ -819,6 +837,7 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { } return this; } + /** * * @@ -839,6 +858,7 @@ public Builder clearMessage() { onChanged(); return this; } + /** * * @@ -854,6 +874,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } + /** * * @@ -873,6 +894,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { : message_; } } + /** * * @@ -901,6 +923,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private int deliveryAttempt_; + /** * * @@ -931,6 +954,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public int getDeliveryAttempt() { return deliveryAttempt_; } + /** * * @@ -965,6 +989,7 @@ public Builder setDeliveryAttempt(int value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 29e4bb6cb..186a843ca 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -36,6 +36,7 @@ public interface ReceivedMessageOrBuilder * @return The ackId. */ java.lang.String getAckId(); + /** * * @@ -62,6 +63,7 @@ public interface ReceivedMessageOrBuilder * @return Whether the message field is set. */ boolean hasMessage(); + /** * * @@ -75,6 +77,7 @@ public interface ReceivedMessageOrBuilder * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 87c8b94e9..ada2ba66b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -43,6 +43,7 @@ public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy) RetryPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use RetryPolicy.newBuilder() to construct. private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -72,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1; private com.google.protobuf.Duration minimumBackoff_; + /** * * @@ -89,6 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -108,6 +111,7 @@ public com.google.protobuf.Duration getMinimumBackoff() { ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; } + /** * * @@ -128,6 +132,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumBackoff_; + /** * * @@ -146,6 +151,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -166,6 +172,7 @@ public com.google.protobuf.Duration getMaximumBackoff() { ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; } + /** * * @@ -361,6 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -593,6 +601,7 @@ public Builder mergeFrom( com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumBackoffBuilder_; + /** * * @@ -610,6 +619,7 @@ public Builder mergeFrom( public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -633,6 +643,7 @@ public com.google.protobuf.Duration getMinimumBackoff() { return minimumBackoffBuilder_.getMessage(); } } + /** * * @@ -658,6 +669,7 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -680,6 +692,7 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor onChanged(); return this; } + /** * * @@ -710,6 +723,7 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -732,6 +746,7 @@ public Builder clearMinimumBackoff() { onChanged(); return this; } + /** * * @@ -749,6 +764,7 @@ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { onChanged(); return getMinimumBackoffFieldBuilder().getBuilder(); } + /** * * @@ -770,6 +786,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { : minimumBackoff_; } } + /** * * @@ -805,6 +822,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumBackoffBuilder_; + /** * * @@ -823,6 +841,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -847,6 +866,7 @@ public com.google.protobuf.Duration getMaximumBackoff() { return maximumBackoffBuilder_.getMessage(); } } + /** * * @@ -873,6 +893,7 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -896,6 +917,7 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor onChanged(); return this; } + /** * * @@ -927,6 +949,7 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -950,6 +973,7 @@ public Builder clearMaximumBackoff() { onChanged(); return this; } + /** * * @@ -968,6 +992,7 @@ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { onChanged(); return getMaximumBackoffFieldBuilder().getBuilder(); } + /** * * @@ -990,6 +1015,7 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { : maximumBackoff_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index f49555336..5df0c7f6b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -38,6 +38,7 @@ public interface RetryPolicyOrBuilder * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); + /** * * @@ -52,6 +53,7 @@ public interface RetryPolicyOrBuilder * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); + /** * * @@ -80,6 +82,7 @@ public interface RetryPolicyOrBuilder * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); + /** * * @@ -95,6 +98,7 @@ public interface RetryPolicyOrBuilder * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 26df96db4..cefb591a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -33,6 +33,7 @@ public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.RollbackSchemaRequest) RollbackSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use RollbackSchemaRequest.newBuilder() to construct. private RollbackSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -149,6 +153,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -344,6 +349,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -542,6 +548,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -566,6 +573,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -590,6 +598,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -613,6 +622,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -632,6 +642,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -658,6 +669,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -683,6 +695,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -708,6 +721,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -732,6 +746,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -752,6 +767,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index de66b349e..ba89f7dbf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface RollbackSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -68,6 +69,7 @@ public interface RollbackSchemaRequestOrBuilder * @return The revisionId. */ java.lang.String getRevisionId(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 0b7f06f7a..806544f74 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -33,6 +33,7 @@ public final class Schema extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -117,6 +118,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** * * @@ -127,6 +129,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * PROTOCOL_BUFFER = 1; */ public static final int PROTOCOL_BUFFER_VALUE = 1; + /** * * @@ -226,6 +229,7 @@ private Type(int value) { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -250,6 +254,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -277,6 +282,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; + /** * * @@ -292,6 +298,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getTypeValue() { return type_; } + /** * * @@ -313,6 +320,7 @@ public com.google.pubsub.v1.Schema.Type getType() { @SuppressWarnings("serial") private volatile java.lang.Object definition_ = ""; + /** * * @@ -338,6 +346,7 @@ public java.lang.String getDefinition() { return s; } } + /** * * @@ -368,6 +377,7 @@ public com.google.protobuf.ByteString getDefinitionBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -393,6 +403,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -421,6 +432,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp revisionCreateTime_; + /** * * @@ -438,6 +450,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -457,6 +470,7 @@ public com.google.protobuf.Timestamp getRevisionCreateTime() { ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } + /** * * @@ -673,6 +687,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -928,6 +943,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -951,6 +967,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -974,6 +991,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -996,6 +1014,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1014,6 +1033,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -1039,6 +1059,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int type_ = 0; + /** * * @@ -1054,6 +1075,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getTypeValue() { return type_; } + /** * * @@ -1072,6 +1094,7 @@ public Builder setTypeValue(int value) { onChanged(); return this; } + /** * * @@ -1088,6 +1111,7 @@ public com.google.pubsub.v1.Schema.Type getType() { com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.forNumber(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } + /** * * @@ -1109,6 +1133,7 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { onChanged(); return this; } + /** * * @@ -1128,6 +1153,7 @@ public Builder clearType() { } private java.lang.Object definition_ = ""; + /** * * @@ -1152,6 +1178,7 @@ public java.lang.String getDefinition() { return (java.lang.String) ref; } } + /** * * @@ -1176,6 +1203,7 @@ public com.google.protobuf.ByteString getDefinitionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1199,6 +1227,7 @@ public Builder setDefinition(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1218,6 +1247,7 @@ public Builder clearDefinition() { onChanged(); return this; } + /** * * @@ -1244,6 +1274,7 @@ public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -1268,6 +1299,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -1292,6 +1324,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1315,6 +1348,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1334,6 +1368,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * @@ -1365,6 +1400,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; + /** * * @@ -1381,6 +1417,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -1403,6 +1440,7 @@ public com.google.protobuf.Timestamp getRevisionCreateTime() { return revisionCreateTimeBuilder_.getMessage(); } } + /** * * @@ -1427,6 +1465,7 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1448,6 +1487,7 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder build onChanged(); return this; } + /** * * @@ -1477,6 +1517,7 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1498,6 +1539,7 @@ public Builder clearRevisionCreateTime() { onChanged(); return this; } + /** * * @@ -1514,6 +1556,7 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { onChanged(); return getRevisionCreateTimeFieldBuilder().getBuilder(); } + /** * * @@ -1534,6 +1577,7 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { : revisionCreateTime_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 81907d0bc..87d31f491 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -37,6 +37,7 @@ public interface SchemaOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -63,6 +64,7 @@ public interface SchemaOrBuilder * @return The enum numeric value on the wire for type. */ int getTypeValue(); + /** * * @@ -90,6 +92,7 @@ public interface SchemaOrBuilder * @return The definition. */ java.lang.String getDefinition(); + /** * * @@ -119,6 +122,7 @@ public interface SchemaOrBuilder * @return The revisionId. */ java.lang.String getRevisionId(); + /** * * @@ -148,6 +152,7 @@ public interface SchemaOrBuilder * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); + /** * * @@ -162,6 +167,7 @@ public interface SchemaOrBuilder * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 27f4675b1..b1879310c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -197,11 +197,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\247\001\n\024com.google.pubsub.v1B\013Sc" - + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" - + "apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.P" - + "ubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goog" - + "le::Cloud::PubSub::V1b\006proto3" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "hemaProtoP\001Z5cloud.google.com/go/pubsub/" + + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 215c89158..17410973f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -33,6 +33,7 @@ public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) SchemaSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use SchemaSettings.newBuilder() to construct. private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -70,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; + /** * * @@ -98,6 +100,7 @@ public java.lang.String getSchema() { return s; } } + /** * * @@ -129,6 +132,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_ = 0; + /** * * @@ -144,6 +148,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { public int getEncodingValue() { return encoding_; } + /** * * @@ -165,6 +170,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("serial") private volatile java.lang.Object firstRevisionId_ = ""; + /** * * @@ -190,6 +196,7 @@ public java.lang.String getFirstRevisionId() { return s; } } + /** * * @@ -220,6 +227,7 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object lastRevisionId_ = ""; + /** * * @@ -245,6 +253,7 @@ public java.lang.String getLastRevisionId() { return s; } } + /** * * @@ -455,6 +464,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -680,6 +690,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object schema_ = ""; + /** * * @@ -707,6 +718,7 @@ public java.lang.String getSchema() { return (java.lang.String) ref; } } + /** * * @@ -734,6 +746,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -760,6 +773,7 @@ public Builder setSchema(java.lang.String value) { onChanged(); return this; } + /** * * @@ -782,6 +796,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -811,6 +826,7 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { } private int encoding_ = 0; + /** * * @@ -827,6 +843,7 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { public int getEncodingValue() { return encoding_; } + /** * * @@ -846,6 +863,7 @@ public Builder setEncodingValue(int value) { onChanged(); return this; } + /** * * @@ -863,6 +881,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } + /** * * @@ -885,6 +904,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { onChanged(); return this; } + /** * * @@ -905,6 +925,7 @@ public Builder clearEncoding() { } private java.lang.Object firstRevisionId_ = ""; + /** * * @@ -929,6 +950,7 @@ public java.lang.String getFirstRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -953,6 +975,7 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -976,6 +999,7 @@ public Builder setFirstRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -995,6 +1019,7 @@ public Builder clearFirstRevisionId() { onChanged(); return this; } + /** * * @@ -1021,6 +1046,7 @@ public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object lastRevisionId_ = ""; + /** * * @@ -1045,6 +1071,7 @@ public java.lang.String getLastRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -1069,6 +1096,7 @@ public com.google.protobuf.ByteString getLastRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1092,6 +1120,7 @@ public Builder setLastRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1111,6 +1140,7 @@ public Builder clearLastRevisionId() { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index b37d4d936..8c63c701b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -41,6 +41,7 @@ public interface SchemaSettingsOrBuilder * @return The schema. */ java.lang.String getSchema(); + /** * * @@ -71,6 +72,7 @@ public interface SchemaSettingsOrBuilder * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); + /** * * @@ -98,6 +100,7 @@ public interface SchemaSettingsOrBuilder * @return The firstRevisionId. */ java.lang.String getFirstRevisionId(); + /** * * @@ -127,6 +130,7 @@ public interface SchemaSettingsOrBuilder * @return The lastRevisionId. */ java.lang.String getLastRevisionId(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 5234521c0..5161ad85d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -74,6 +74,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_VIEW_UNSPECIFIED = 0; */ public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0; + /** * * @@ -84,6 +85,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { * BASIC = 1; */ public static final int BASIC_VALUE = 1; + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index fabd51b78..d15e4efb2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -33,6 +33,7 @@ public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest) SeekRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use SeekRequest.newBuilder() to construct. private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -78,6 +79,7 @@ public enum TargetCase private TargetCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -114,6 +116,7 @@ public TargetCase getTargetCase() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -139,6 +142,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -166,6 +170,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int TIME_FIELD_NUMBER = 2; + /** * * @@ -191,6 +196,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public boolean hasTime() { return targetCase_ == 2; } + /** * * @@ -219,6 +225,7 @@ public com.google.protobuf.Timestamp getTime() { } return com.google.protobuf.Timestamp.getDefaultInstance(); } + /** * * @@ -247,6 +254,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { } public static final int SNAPSHOT_FIELD_NUMBER = 3; + /** * * @@ -265,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { public boolean hasSnapshot() { return targetCase_ == 3; } + /** * * @@ -296,6 +305,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -522,6 +532,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -763,6 +774,7 @@ public Builder clearTarget() { private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -787,6 +799,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -811,6 +824,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -834,6 +848,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -853,6 +868,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -883,6 +899,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; + /** * * @@ -908,6 +925,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean hasTime() { return targetCase_ == 2; } + /** * * @@ -943,6 +961,7 @@ public com.google.protobuf.Timestamp getTime() { return com.google.protobuf.Timestamp.getDefaultInstance(); } } + /** * * @@ -975,6 +994,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { targetCase_ = 2; return this; } + /** * * @@ -1004,6 +1024,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { targetCase_ = 2; return this; } + /** * * @@ -1044,6 +1065,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { targetCase_ = 2; return this; } + /** * * @@ -1079,6 +1101,7 @@ public Builder clearTime() { } return this; } + /** * * @@ -1101,6 +1124,7 @@ public Builder clearTime() { public com.google.protobuf.Timestamp.Builder getTimeBuilder() { return getTimeFieldBuilder().getBuilder(); } + /** * * @@ -1131,6 +1155,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return com.google.protobuf.Timestamp.getDefaultInstance(); } } + /** * * @@ -1191,6 +1216,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { public boolean hasSnapshot() { return targetCase_ == 3; } + /** * * @@ -1223,6 +1249,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -1255,6 +1282,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1280,6 +1308,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1303,6 +1332,7 @@ public Builder clearSnapshot() { } return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 359b6ae0e..b42511c05 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface SeekRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -75,6 +76,7 @@ public interface SeekRequestOrBuilder * @return Whether the time field is set. */ boolean hasTime(); + /** * * @@ -97,6 +99,7 @@ public interface SeekRequestOrBuilder * @return The time. */ com.google.protobuf.Timestamp getTime(); + /** * * @@ -134,6 +137,7 @@ public interface SeekRequestOrBuilder * @return Whether the snapshot field is set. */ boolean hasSnapshot(); + /** * * @@ -150,6 +154,7 @@ public interface SeekRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 247167769..3170e5b2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -33,6 +33,7 @@ public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) SeekResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -209,6 +210,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 781585a23..d06ea822f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -37,6 +37,7 @@ public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot) SnapshotOrBuilder { private static final long serialVersionUID = 0L; + // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -83,6 +84,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -106,6 +108,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -134,6 +137,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -160,6 +164,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -189,6 +194,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; + /** * * @@ -214,6 +220,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public boolean hasExpireTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -239,6 +246,7 @@ public boolean hasExpireTime() { public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } + /** * * @@ -289,6 +297,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -306,12 +315,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -326,6 +337,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -347,6 +359,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -566,6 +579,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -834,6 +848,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -856,6 +871,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -878,6 +894,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -899,6 +916,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -916,6 +934,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -940,6 +959,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -965,6 +985,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -990,6 +1011,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1014,6 +1036,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1034,6 +1057,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -1066,6 +1090,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** * * @@ -1090,6 +1115,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1120,6 +1146,7 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTimeBuilder_.getMessage(); } } + /** * * @@ -1152,6 +1179,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1181,6 +1209,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal onChanged(); return this; } + /** * * @@ -1218,6 +1247,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1247,6 +1277,7 @@ public Builder clearExpireTime() { onChanged(); return this; } + /** * * @@ -1271,6 +1302,7 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } + /** * * @@ -1299,6 +1331,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { : expireTime_; } } + /** * * @@ -1360,6 +1393,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1377,12 +1411,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1397,6 +1433,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1418,6 +1455,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1445,6 +1483,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1462,12 +1501,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1489,6 +1530,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000008; return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index a5606bb50..b24d94416 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -36,6 +36,7 @@ public interface SnapshotOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -64,6 +65,7 @@ public interface SnapshotOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -102,6 +104,7 @@ public interface SnapshotOrBuilder * @return Whether the expireTime field is set. */ boolean hasExpireTime(); + /** * * @@ -124,6 +127,7 @@ public interface SnapshotOrBuilder * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); + /** * * @@ -156,6 +160,7 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -167,9 +172,11 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -181,6 +188,7 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -196,6 +204,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 478c32125..017b0d912 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -35,6 +35,7 @@ public final class StreamingPullRequest extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest) StreamingPullRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use StreamingPullRequest.newBuilder() to construct. private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -73,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -101,6 +103,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -135,6 +138,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -154,6 +158,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -173,6 +178,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -193,6 +199,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -218,6 +225,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); + /** * * @@ -244,6 +252,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } + /** * * @@ -269,6 +278,7 @@ public java.util.List getModifyDeadlineSecondsList() { public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } + /** * * @@ -303,6 +313,7 @@ public int getModifyDeadlineSeconds(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -322,6 +333,7 @@ public int getModifyDeadlineSeconds(int index) { public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } + /** * * @@ -341,6 +353,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } + /** * * @@ -361,6 +374,7 @@ public int getModifyDeadlineAckIdsCount() { public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } + /** * * @@ -384,6 +398,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int streamAckDeadlineSeconds_ = 0; + /** * * @@ -407,6 +422,7 @@ public int getStreamAckDeadlineSeconds() { @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; + /** * * @@ -435,6 +451,7 @@ public java.lang.String getClientId() { return s; } } + /** * * @@ -466,6 +483,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_ = 0L; + /** * * @@ -492,6 +510,7 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_ = 0L; + /** * * @@ -771,6 +790,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1088,6 +1108,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -1115,6 +1136,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -1142,6 +1164,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1168,6 +1191,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1190,6 +1214,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1227,6 +1252,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -1247,6 +1273,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -1266,6 +1293,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -1286,6 +1314,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -1306,6 +1335,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -1334,6 +1364,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1361,6 +1392,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1385,6 +1417,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -1408,6 +1441,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -1445,6 +1479,7 @@ private void ensureModifyDeadlineSecondsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -1471,6 +1506,7 @@ public java.util.List getModifyDeadlineSecondsList() { modifyDeadlineSeconds_.makeImmutable(); return modifyDeadlineSeconds_; } + /** * * @@ -1496,6 +1532,7 @@ public java.util.List getModifyDeadlineSecondsList() { public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } + /** * * @@ -1522,6 +1559,7 @@ public int getModifyDeadlineSecondsCount() { public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } + /** * * @@ -1554,6 +1592,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { onChanged(); return this; } + /** * * @@ -1585,6 +1624,7 @@ public Builder addModifyDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -1616,6 +1656,7 @@ public Builder addAllModifyDeadlineSeconds( onChanged(); return this; } + /** * * @@ -1654,6 +1695,7 @@ private void ensureModifyDeadlineAckIdsIsMutable() { } bitField0_ |= 0x00000008; } + /** * * @@ -1674,6 +1716,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { modifyDeadlineAckIds_.makeImmutable(); return modifyDeadlineAckIds_; } + /** * * @@ -1693,6 +1736,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } + /** * * @@ -1713,6 +1757,7 @@ public int getModifyDeadlineAckIdsCount() { public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } + /** * * @@ -1733,6 +1778,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) { public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } + /** * * @@ -1761,6 +1807,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1788,6 +1835,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1812,6 +1860,7 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v onChanged(); return this; } + /** * * @@ -1835,6 +1884,7 @@ public Builder clearModifyDeadlineAckIds() { onChanged(); return this; } + /** * * @@ -1865,6 +1915,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value } private int streamAckDeadlineSeconds_; + /** * * @@ -1883,6 +1934,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } + /** * * @@ -1905,6 +1957,7 @@ public Builder setStreamAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -1927,6 +1980,7 @@ public Builder clearStreamAckDeadlineSeconds() { } private java.lang.Object clientId_ = ""; + /** * * @@ -1954,6 +2008,7 @@ public java.lang.String getClientId() { return (java.lang.String) ref; } } + /** * * @@ -1981,6 +2036,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2007,6 +2063,7 @@ public Builder setClientId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2029,6 +2086,7 @@ public Builder clearClientId() { onChanged(); return this; } + /** * * @@ -2058,6 +2116,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { } private long maxOutstandingMessages_; + /** * * @@ -2081,6 +2140,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } + /** * * @@ -2108,6 +2168,7 @@ public Builder setMaxOutstandingMessages(long value) { onChanged(); return this; } + /** * * @@ -2135,6 +2196,7 @@ public Builder clearMaxOutstandingMessages() { } private long maxOutstandingBytes_; + /** * * @@ -2158,6 +2220,7 @@ public Builder clearMaxOutstandingMessages() { public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } + /** * * @@ -2185,6 +2248,7 @@ public Builder setMaxOutstandingBytes(long value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index b1de4d1b7..675fc7532 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -41,6 +41,7 @@ public interface StreamingPullRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -76,6 +77,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -93,6 +95,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -111,6 +114,7 @@ public interface StreamingPullRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -153,6 +157,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); + /** * * @@ -176,6 +181,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); + /** * * @@ -218,6 +224,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the modifyDeadlineAckIds. */ java.util.List getModifyDeadlineAckIdsList(); + /** * * @@ -235,6 +242,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); + /** * * @@ -253,6 +261,7 @@ public interface StreamingPullRequestOrBuilder * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); + /** * * @@ -305,6 +314,7 @@ public interface StreamingPullRequestOrBuilder * @return The clientId. */ java.lang.String getClientId(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 4a9fb2591..229d1456f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,6 +34,7 @@ public final class StreamingPullResponse extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse) StreamingPullResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use StreamingPullResponse.newBuilder() to construct. private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -81,6 +82,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -93,6 +95,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -106,6 +109,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -133,6 +137,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the invalidAckIds. */ java.util.List getInvalidAckIdsList(); + /** * * @@ -146,6 +151,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); + /** * * @@ -160,6 +166,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); + /** * * @@ -187,6 +194,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the unorderedAckIds. */ java.util.List getUnorderedAckIdsList(); + /** * * @@ -199,6 +207,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of unorderedAckIds. */ int getUnorderedAckIdsCount(); + /** * * @@ -212,6 +221,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The unorderedAckIds at the given index. */ java.lang.String getUnorderedAckIds(int index); + /** * * @@ -240,6 +250,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the temporaryFailedAckIds. */ java.util.List getTemporaryFailedAckIdsList(); + /** * * @@ -254,6 +265,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); + /** * * @@ -269,6 +281,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); + /** * * @@ -285,6 +298,7 @@ public interface AcknowledgeConfirmationOrBuilder */ com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } + /** * * @@ -300,6 +314,7 @@ public static final class AcknowledgeConfirmation extends com.google.protobuf.Ge // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) AcknowledgeConfirmationOrBuilder { private static final long serialVersionUID = 0L; + // Use AcknowledgeConfirmation.newBuilder() to construct. private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -338,6 +353,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -352,6 +368,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -366,6 +383,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -381,6 +399,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -402,6 +421,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -417,6 +437,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } + /** * * @@ -432,6 +453,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -448,6 +470,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -470,6 +493,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -484,6 +508,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { return unorderedAckIds_; } + /** * * @@ -498,6 +523,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } + /** * * @@ -513,6 +539,7 @@ public int getUnorderedAckIdsCount() { public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } + /** * * @@ -534,6 +561,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -550,6 +578,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } + /** * * @@ -566,6 +595,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -583,6 +613,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -820,6 +851,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1096,6 +1128,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -1111,6 +1144,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -1125,6 +1159,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -1140,6 +1175,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -1155,6 +1191,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -1178,6 +1215,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1200,6 +1238,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1219,6 +1258,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -1237,6 +1277,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -1270,6 +1311,7 @@ private void ensureInvalidAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -1286,6 +1328,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } + /** * * @@ -1301,6 +1344,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -1317,6 +1361,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -1333,6 +1378,7 @@ public java.lang.String getInvalidAckIds(int index) { public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } + /** * * @@ -1357,6 +1403,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1380,6 +1427,7 @@ public Builder addInvalidAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1400,6 +1448,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -1419,6 +1468,7 @@ public Builder clearInvalidAckIds() { onChanged(); return this; } + /** * * @@ -1453,6 +1503,7 @@ private void ensureUnorderedAckIdsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -1469,6 +1520,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { unorderedAckIds_.makeImmutable(); return unorderedAckIds_; } + /** * * @@ -1484,6 +1536,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } + /** * * @@ -1500,6 +1553,7 @@ public int getUnorderedAckIdsCount() { public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } + /** * * @@ -1516,6 +1570,7 @@ public java.lang.String getUnorderedAckIds(int index) { public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { return unorderedAckIds_.getByteString(index); } + /** * * @@ -1540,6 +1595,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1563,6 +1619,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1583,6 +1640,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values onChanged(); return this; } + /** * * @@ -1602,6 +1660,7 @@ public Builder clearUnorderedAckIds() { onChanged(); return this; } + /** * * @@ -1637,6 +1696,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { } bitField0_ |= 0x00000008; } + /** * * @@ -1655,6 +1715,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } + /** * * @@ -1672,6 +1733,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -1690,6 +1752,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -1708,6 +1771,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } + /** * * @@ -1734,6 +1798,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1759,6 +1824,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1781,6 +1847,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable onChanged(); return this; } + /** * * @@ -1802,6 +1869,7 @@ public Builder clearTemporaryFailedAckIds() { onChanged(); return this; } + /** * * @@ -1913,6 +1981,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -1925,6 +1994,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -1938,6 +2008,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -1965,6 +2036,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the invalidAckIds. */ java.util.List getInvalidAckIdsList(); + /** * * @@ -1978,6 +2050,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); + /** * * @@ -1992,6 +2065,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); + /** * * @@ -2021,6 +2095,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the temporaryFailedAckIds. */ java.util.List getTemporaryFailedAckIdsList(); + /** * * @@ -2035,6 +2110,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); + /** * * @@ -2050,6 +2126,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); + /** * * @@ -2066,6 +2143,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder */ com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } + /** * * @@ -2082,6 +2160,7 @@ public static final class ModifyAckDeadlineConfirmation // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) ModifyAckDeadlineConfirmationOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineConfirmation.newBuilder() to construct. private ModifyAckDeadlineConfirmation( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -2121,6 +2200,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2135,6 +2215,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -2149,6 +2230,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -2164,6 +2246,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -2185,6 +2268,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2200,6 +2284,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } + /** * * @@ -2215,6 +2300,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -2231,6 +2317,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -2253,6 +2340,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2269,6 +2357,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } + /** * * @@ -2285,6 +2374,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -2302,6 +2392,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -2529,6 +2620,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -2787,6 +2879,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -2802,6 +2895,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -2816,6 +2910,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -2831,6 +2926,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -2846,6 +2942,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -2869,6 +2966,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -2891,6 +2989,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2910,6 +3009,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -2928,6 +3028,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -2961,6 +3062,7 @@ private void ensureInvalidAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -2977,6 +3079,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } + /** * * @@ -2992,6 +3095,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -3008,6 +3112,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -3024,6 +3129,7 @@ public java.lang.String getInvalidAckIds(int index) { public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } + /** * * @@ -3048,6 +3154,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -3071,6 +3178,7 @@ public Builder addInvalidAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3091,6 +3199,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -3110,6 +3219,7 @@ public Builder clearInvalidAckIds() { onChanged(); return this; } + /** * * @@ -3145,6 +3255,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -3163,6 +3274,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } + /** * * @@ -3180,6 +3292,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -3198,6 +3311,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -3216,6 +3330,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } + /** * * @@ -3242,6 +3357,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -3267,6 +3383,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3289,6 +3406,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable onChanged(); return this; } + /** * * @@ -3310,6 +3428,7 @@ public Builder clearTemporaryFailedAckIds() { onChanged(); return this; } + /** * * @@ -3438,6 +3557,7 @@ public interface SubscriptionPropertiesOrBuilder */ boolean getMessageOrderingEnabled(); } + /** * * @@ -3452,6 +3572,7 @@ public static final class SubscriptionProperties extends com.google.protobuf.Gen // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) SubscriptionPropertiesOrBuilder { private static final long serialVersionUID = 0L; + // Use SubscriptionProperties.newBuilder() to construct. private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3482,6 +3603,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER = 1; private boolean exactlyOnceDeliveryEnabled_ = false; + /** * * @@ -3502,6 +3624,7 @@ public boolean getExactlyOnceDeliveryEnabled() { public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_ = false; + /** * * @@ -3691,6 +3814,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3896,6 +4020,7 @@ public Builder mergeFrom( private int bitField0_; private boolean exactlyOnceDeliveryEnabled_; + /** * * @@ -3913,6 +4038,7 @@ public Builder mergeFrom( public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled_; } + /** * * @@ -3934,6 +4060,7 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -3955,6 +4082,7 @@ public Builder clearExactlyOnceDeliveryEnabled() { } private boolean messageOrderingEnabled_; + /** * * @@ -3970,6 +4098,7 @@ public Builder clearExactlyOnceDeliveryEnabled() { public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } + /** * * @@ -3989,6 +4118,7 @@ public Builder setMessageOrderingEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -4079,6 +4209,7 @@ public com.google.protobuf.Parser getParserForType() { @SuppressWarnings("serial") private java.util.List receivedMessages_; + /** * * @@ -4094,6 +4225,7 @@ public com.google.protobuf.Parser getParserForType() { public java.util.List getReceivedMessagesList() { return receivedMessages_; } + /** * * @@ -4110,6 +4242,7 @@ public java.util.List getReceivedMessagesL getReceivedMessagesOrBuilderList() { return receivedMessages_; } + /** * * @@ -4125,6 +4258,7 @@ public java.util.List getReceivedMessagesL public int getReceivedMessagesCount() { return receivedMessages_.size(); } + /** * * @@ -4140,6 +4274,7 @@ public int getReceivedMessagesCount() { public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } + /** * * @@ -4159,6 +4294,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde public static final int ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER = 5; private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledgeConfirmation_; + /** * * @@ -4177,6 +4313,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -4198,6 +4335,7 @@ public boolean hasAcknowledgeConfirmation() { ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; } + /** * * @@ -4221,6 +4359,7 @@ public boolean hasAcknowledgeConfirmation() { public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER = 3; private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modifyAckDeadlineConfirmation_; + /** * * @@ -4239,6 +4378,7 @@ public boolean hasAcknowledgeConfirmation() { public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -4261,6 +4401,7 @@ public boolean hasModifyAckDeadlineConfirmation() { .getDefaultInstance() : modifyAckDeadlineConfirmation_; } + /** * * @@ -4284,6 +4425,7 @@ public boolean hasModifyAckDeadlineConfirmation() { public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; + /** * * @@ -4301,6 +4443,7 @@ public boolean hasModifyAckDeadlineConfirmation() { public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -4321,6 +4464,7 @@ public boolean hasSubscriptionProperties() { ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; } + /** * * @@ -4549,6 +4693,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -4892,6 +5037,7 @@ public java.util.List getReceivedMessagesL return receivedMessagesBuilder_.getMessageList(); } } + /** * * @@ -4910,6 +5056,7 @@ public int getReceivedMessagesCount() { return receivedMessagesBuilder_.getCount(); } } + /** * * @@ -4928,6 +5075,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessagesBuilder_.getMessage(index); } } + /** * * @@ -4952,6 +5100,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -4974,6 +5123,7 @@ public Builder setReceivedMessages( } return this; } + /** * * @@ -4998,6 +5148,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { } return this; } + /** * * @@ -5022,6 +5173,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -5044,6 +5196,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -5066,6 +5219,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -5088,6 +5242,7 @@ public Builder addAllReceivedMessages( } return this; } + /** * * @@ -5109,6 +5264,7 @@ public Builder clearReceivedMessages() { } return this; } + /** * * @@ -5130,6 +5286,7 @@ public Builder removeReceivedMessages(int index) { } return this; } + /** * * @@ -5144,6 +5301,7 @@ public Builder removeReceivedMessages(int index) { public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -5162,6 +5320,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return receivedMessagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -5181,6 +5340,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return java.util.Collections.unmodifiableList(receivedMessages_); } } + /** * * @@ -5196,6 +5356,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() return getReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -5211,6 +5372,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return getReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -5254,6 +5416,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> acknowledgeConfirmationBuilder_; + /** * * @@ -5271,6 +5434,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -5296,6 +5460,7 @@ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmationBuilder_.getMessage(); } } + /** * * @@ -5322,6 +5487,7 @@ public Builder setAcknowledgeConfirmation( onChanged(); return this; } + /** * * @@ -5346,6 +5512,7 @@ public Builder setAcknowledgeConfirmation( onChanged(); return this; } + /** * * @@ -5379,6 +5546,7 @@ public Builder mergeAcknowledgeConfirmation( } return this; } + /** * * @@ -5401,6 +5569,7 @@ public Builder clearAcknowledgeConfirmation() { onChanged(); return this; } + /** * * @@ -5419,6 +5588,7 @@ public Builder clearAcknowledgeConfirmation() { onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } + /** * * @@ -5442,6 +5612,7 @@ public Builder clearAcknowledgeConfirmation() { : acknowledgeConfirmation_; } } + /** * * @@ -5478,6 +5649,7 @@ public Builder clearAcknowledgeConfirmation() { com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> modifyAckDeadlineConfirmationBuilder_; + /** * * @@ -5495,6 +5667,7 @@ public Builder clearAcknowledgeConfirmation() { public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -5520,6 +5693,7 @@ public boolean hasModifyAckDeadlineConfirmation() { return modifyAckDeadlineConfirmationBuilder_.getMessage(); } } + /** * * @@ -5546,6 +5720,7 @@ public Builder setModifyAckDeadlineConfirmation( onChanged(); return this; } + /** * * @@ -5570,6 +5745,7 @@ public Builder setModifyAckDeadlineConfirmation( onChanged(); return this; } + /** * * @@ -5603,6 +5779,7 @@ public Builder mergeModifyAckDeadlineConfirmation( } return this; } + /** * * @@ -5625,6 +5802,7 @@ public Builder clearModifyAckDeadlineConfirmation() { onChanged(); return this; } + /** * * @@ -5643,6 +5821,7 @@ public Builder clearModifyAckDeadlineConfirmation() { onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } + /** * * @@ -5666,6 +5845,7 @@ public Builder clearModifyAckDeadlineConfirmation() { : modifyAckDeadlineConfirmation_; } } + /** * * @@ -5702,6 +5882,7 @@ public Builder clearModifyAckDeadlineConfirmation() { com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> subscriptionPropertiesBuilder_; + /** * * @@ -5718,6 +5899,7 @@ public Builder clearModifyAckDeadlineConfirmation() { public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -5741,6 +5923,7 @@ public boolean hasSubscriptionProperties() { return subscriptionPropertiesBuilder_.getMessage(); } } + /** * * @@ -5766,6 +5949,7 @@ public Builder setSubscriptionProperties( onChanged(); return this; } + /** * * @@ -5788,6 +5972,7 @@ public Builder setSubscriptionProperties( onChanged(); return this; } + /** * * @@ -5820,6 +6005,7 @@ public Builder mergeSubscriptionProperties( } return this; } + /** * * @@ -5841,6 +6027,7 @@ public Builder clearSubscriptionProperties() { onChanged(); return this; } + /** * * @@ -5858,6 +6045,7 @@ public Builder clearSubscriptionProperties() { onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } + /** * * @@ -5879,6 +6067,7 @@ public Builder clearSubscriptionProperties() { : subscriptionProperties_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 40089d18c..a547f4e59 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface StreamingPullResponseOrBuilder * */ java.util.List getReceivedMessagesList(); + /** * * @@ -48,6 +49,7 @@ public interface StreamingPullResponseOrBuilder * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** * * @@ -60,6 +62,7 @@ public interface StreamingPullResponseOrBuilder * */ int getReceivedMessagesCount(); + /** * * @@ -73,6 +76,7 @@ public interface StreamingPullResponseOrBuilder */ java.util.List getReceivedMessagesOrBuilderList(); + /** * * @@ -101,6 +105,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the acknowledgeConfirmation field is set. */ boolean hasAcknowledgeConfirmation(); + /** * * @@ -116,6 +121,7 @@ public interface StreamingPullResponseOrBuilder * @return The acknowledgeConfirmation. */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); + /** * * @@ -146,6 +152,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the modifyAckDeadlineConfirmation field is set. */ boolean hasModifyAckDeadlineConfirmation(); + /** * * @@ -162,6 +169,7 @@ public interface StreamingPullResponseOrBuilder */ com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation(); + /** * * @@ -191,6 +199,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the subscriptionProperties field is set. */ boolean hasSubscriptionProperties(); + /** * * @@ -205,6 +214,7 @@ public interface StreamingPullResponseOrBuilder * @return The subscriptionProperties. */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 31581f253..fb8d9a716 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -35,6 +35,7 @@ public final class Subscription extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription) SubscriptionOrBuilder { private static final long serialVersionUID = 0L; + // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -136,6 +137,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -146,6 +148,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -261,6 +264,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * @return The listing. */ java.lang.String getListing(); + /** * * @@ -290,6 +294,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -305,6 +310,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder */ com.google.protobuf.ByteString getSubscriptionBytes(); } + /** * * @@ -321,6 +327,7 @@ public static final class AnalyticsHubSubscriptionInfo // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) AnalyticsHubSubscriptionInfoOrBuilder { private static final long serialVersionUID = 0L; + // Use AnalyticsHubSubscriptionInfo.newBuilder() to construct. private AnalyticsHubSubscriptionInfo( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -357,6 +364,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object listing_ = ""; + /** * * @@ -382,6 +390,7 @@ public java.lang.String getListing() { return s; } } + /** * * @@ -412,6 +421,7 @@ public com.google.protobuf.ByteString getListingBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -437,6 +447,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -633,6 +644,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -840,6 +852,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object listing_ = ""; + /** * * @@ -864,6 +877,7 @@ public java.lang.String getListing() { return (java.lang.String) ref; } } + /** * * @@ -888,6 +902,7 @@ public com.google.protobuf.ByteString getListingBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -911,6 +926,7 @@ public Builder setListing(java.lang.String value) { onChanged(); return this; } + /** * * @@ -930,6 +946,7 @@ public Builder clearListing() { onChanged(); return this; } + /** * * @@ -956,6 +973,7 @@ public Builder setListingBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscription_ = ""; + /** * * @@ -980,6 +998,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -1004,6 +1023,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1027,6 +1047,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1046,6 +1067,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1143,6 +1165,7 @@ public com.google.protobuf.Parser getParserForType @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -1171,6 +1194,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -1204,6 +1228,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -1231,6 +1256,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -1261,6 +1287,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; + /** * * @@ -1278,6 +1305,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -1295,6 +1323,7 @@ public boolean hasPushConfig() { public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } + /** * * @@ -1313,6 +1342,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public static final int BIGQUERY_CONFIG_FIELD_NUMBER = 18; private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; + /** * * @@ -1331,6 +1361,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -1351,6 +1382,7 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; } + /** * * @@ -1372,6 +1404,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public static final int CLOUD_STORAGE_CONFIG_FIELD_NUMBER = 22; private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; + /** * * @@ -1390,6 +1423,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1410,6 +1444,7 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; } + /** * * @@ -1431,6 +1466,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int ackDeadlineSeconds_ = 0; + /** * * @@ -1468,6 +1504,7 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_ = false; + /** * * @@ -1491,6 +1528,7 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; + /** * * @@ -1512,6 +1550,7 @@ public boolean getRetainAckedMessages() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -1535,6 +1574,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } + /** * * @@ -1583,6 +1623,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1600,12 +1641,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1620,6 +1663,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1641,6 +1685,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1665,6 +1710,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10; private boolean enableMessageOrdering_ = false; + /** * * @@ -1686,6 +1732,7 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; + /** * * @@ -1709,6 +1756,7 @@ public boolean getEnableMessageOrdering() { public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -1734,6 +1782,7 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; } + /** * * @@ -1762,6 +1811,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; + /** * * @@ -1789,6 +1839,7 @@ public java.lang.String getFilter() { return s; } } + /** * * @@ -1819,6 +1870,7 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; + /** * * @@ -1843,6 +1895,7 @@ public com.google.protobuf.ByteString getFilterBytes() { public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -1869,6 +1922,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; } + /** * * @@ -1896,6 +1950,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public static final int RETRY_POLICY_FIELD_NUMBER = 14; private com.google.pubsub.v1.RetryPolicy retryPolicy_; + /** * * @@ -1919,6 +1974,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public boolean hasRetryPolicy() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -1944,6 +2000,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } + /** * * @@ -1970,6 +2027,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { public static final int DETACHED_FIELD_NUMBER = 15; private boolean detached_ = false; + /** * * @@ -1992,6 +2050,7 @@ public boolean getDetached() { public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; private boolean enableExactlyOnceDelivery_ = false; + /** * * @@ -2021,6 +2080,7 @@ public boolean getEnableExactlyOnceDelivery() { public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; private com.google.protobuf.Duration topicMessageRetentionDuration_; + /** * * @@ -2043,6 +2103,7 @@ public boolean getEnableExactlyOnceDelivery() { public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } + /** * * @@ -2067,6 +2128,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; } + /** * * @@ -2092,6 +2154,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public static final int STATE_FIELD_NUMBER = 19; private int state_ = 0; + /** * * @@ -2110,6 +2173,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public int getStateValue() { return state_; } + /** * * @@ -2134,6 +2198,7 @@ public com.google.pubsub.v1.Subscription.State getState() { public static final int ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER = 23; private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analyticsHubSubscriptionInfo_; + /** * * @@ -2152,6 +2217,7 @@ public com.google.pubsub.v1.Subscription.State getState() { public boolean hasAnalyticsHubSubscriptionInfo() { return ((bitField0_ & 0x00000100) != 0); } + /** * * @@ -2173,6 +2239,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() : analyticsHubSubscriptionInfo_; } + /** * * @@ -2197,6 +2264,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { @SuppressWarnings("serial") private java.util.List messageTransforms_; + /** * * @@ -2213,6 +2281,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { public java.util.List getMessageTransformsList() { return messageTransforms_; } + /** * * @@ -2230,6 +2299,7 @@ public java.util.List getMessageTransform getMessageTransformsOrBuilderList() { return messageTransforms_; } + /** * * @@ -2246,6 +2316,7 @@ public java.util.List getMessageTransform public int getMessageTransformsCount() { return messageTransforms_.size(); } + /** * * @@ -2262,6 +2333,7 @@ public int getMessageTransformsCount() { public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransforms_.get(index); } + /** * * @@ -2672,6 +2744,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -3269,6 +3342,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -3296,6 +3370,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -3323,6 +3398,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3349,6 +3425,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3371,6 +3448,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -3400,6 +3478,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -3426,6 +3505,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -3452,6 +3532,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3477,6 +3558,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3498,6 +3580,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -3531,6 +3614,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** * * @@ -3547,6 +3631,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public boolean hasPushConfig() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -3569,6 +3654,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfigBuilder_.getMessage(); } } + /** * * @@ -3593,6 +3679,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { onChanged(); return this; } + /** * * @@ -3614,6 +3701,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV onChanged(); return this; } + /** * * @@ -3643,6 +3731,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } return this; } + /** * * @@ -3664,6 +3753,7 @@ public Builder clearPushConfig() { onChanged(); return this; } + /** * * @@ -3680,6 +3770,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } + /** * * @@ -3700,6 +3791,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { : pushConfig_; } } + /** * * @@ -3734,6 +3826,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> bigqueryConfigBuilder_; + /** * * @@ -3751,6 +3844,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -3774,6 +3868,7 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { return bigqueryConfigBuilder_.getMessage(); } } + /** * * @@ -3799,6 +3894,7 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { onChanged(); return this; } + /** * * @@ -3821,6 +3917,7 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder bui onChanged(); return this; } + /** * * @@ -3851,6 +3948,7 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { } return this; } + /** * * @@ -3873,6 +3971,7 @@ public Builder clearBigqueryConfig() { onChanged(); return this; } + /** * * @@ -3890,6 +3989,7 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { onChanged(); return getBigqueryConfigFieldBuilder().getBuilder(); } + /** * * @@ -3911,6 +4011,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() : bigqueryConfig_; } } + /** * * @@ -3946,6 +4047,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> cloudStorageConfigBuilder_; + /** * * @@ -3963,6 +4065,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -3986,6 +4089,7 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { return cloudStorageConfigBuilder_.getMessage(); } } + /** * * @@ -4011,6 +4115,7 @@ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig val onChanged(); return this; } + /** * * @@ -4034,6 +4139,7 @@ public Builder setCloudStorageConfig( onChanged(); return this; } + /** * * @@ -4065,6 +4171,7 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v } return this; } + /** * * @@ -4087,6 +4194,7 @@ public Builder clearCloudStorageConfig() { onChanged(); return this; } + /** * * @@ -4104,6 +4212,7 @@ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuil onChanged(); return getCloudStorageConfigFieldBuilder().getBuilder(); } + /** * * @@ -4125,6 +4234,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB : cloudStorageConfig_; } } + /** * * @@ -4155,6 +4265,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB } private int ackDeadlineSeconds_; + /** * * @@ -4189,6 +4300,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } + /** * * @@ -4227,6 +4339,7 @@ public Builder setAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -4265,6 +4378,7 @@ public Builder clearAckDeadlineSeconds() { } private boolean retainAckedMessages_; + /** * * @@ -4285,6 +4399,7 @@ public Builder clearAckDeadlineSeconds() { public boolean getRetainAckedMessages() { return retainAckedMessages_; } + /** * * @@ -4309,6 +4424,7 @@ public Builder setRetainAckedMessages(boolean value) { onChanged(); return this; } + /** * * @@ -4338,6 +4454,7 @@ public Builder clearRetainAckedMessages() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + /** * * @@ -4358,6 +4475,7 @@ public Builder clearRetainAckedMessages() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } + /** * * @@ -4384,6 +4502,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -4412,6 +4531,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -4438,6 +4558,7 @@ public Builder setMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -4471,6 +4592,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } return this; } + /** * * @@ -4496,6 +4618,7 @@ public Builder clearMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -4516,6 +4639,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -4540,6 +4664,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } } + /** * * @@ -4597,6 +4722,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -4614,12 +4740,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -4634,6 +4762,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -4655,6 +4784,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -4682,6 +4812,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -4699,12 +4830,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -4726,6 +4859,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000100; return this; } + /** * * @@ -4743,6 +4877,7 @@ public Builder putAllLabels(java.util.Map va } private boolean enableMessageOrdering_; + /** * * @@ -4761,6 +4896,7 @@ public Builder putAllLabels(java.util.Map va public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } + /** * * @@ -4783,6 +4919,7 @@ public Builder setEnableMessageOrdering(boolean value) { onChanged(); return this; } + /** * * @@ -4810,6 +4947,7 @@ public Builder clearEnableMessageOrdering() { com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; + /** * * @@ -4832,6 +4970,7 @@ public Builder clearEnableMessageOrdering() { public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000400) != 0); } + /** * * @@ -4860,6 +4999,7 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { return expirationPolicyBuilder_.getMessage(); } } + /** * * @@ -4890,6 +5030,7 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) onChanged(); return this; } + /** * * @@ -4918,6 +5059,7 @@ public Builder setExpirationPolicy( onChanged(); return this; } + /** * * @@ -4953,6 +5095,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value } return this; } + /** * * @@ -4980,6 +5123,7 @@ public Builder clearExpirationPolicy() { onChanged(); return this; } + /** * * @@ -5002,6 +5146,7 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( onChanged(); return getExpirationPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5028,6 +5173,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild : expirationPolicy_; } } + /** * * @@ -5063,6 +5209,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild } private java.lang.Object filter_ = ""; + /** * * @@ -5089,6 +5236,7 @@ public java.lang.String getFilter() { return (java.lang.String) ref; } } + /** * * @@ -5115,6 +5263,7 @@ public com.google.protobuf.ByteString getFilterBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5140,6 +5289,7 @@ public Builder setFilter(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5161,6 +5311,7 @@ public Builder clearFilter() { onChanged(); return this; } + /** * * @@ -5194,6 +5345,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> deadLetterPolicyBuilder_; + /** * * @@ -5217,6 +5369,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00001000) != 0); } + /** * * @@ -5246,6 +5399,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { return deadLetterPolicyBuilder_.getMessage(); } } + /** * * @@ -5277,6 +5431,7 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) onChanged(); return this; } + /** * * @@ -5306,6 +5461,7 @@ public Builder setDeadLetterPolicy( onChanged(); return this; } + /** * * @@ -5342,6 +5498,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value } return this; } + /** * * @@ -5370,6 +5527,7 @@ public Builder clearDeadLetterPolicy() { onChanged(); return this; } + /** * * @@ -5393,6 +5551,7 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( onChanged(); return getDeadLetterPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5420,6 +5579,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild : deadLetterPolicy_; } } + /** * * @@ -5461,6 +5621,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> retryPolicyBuilder_; + /** * * @@ -5483,6 +5644,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public boolean hasRetryPolicy() { return ((bitField0_ & 0x00002000) != 0); } + /** * * @@ -5511,6 +5673,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { return retryPolicyBuilder_.getMessage(); } } + /** * * @@ -5541,6 +5704,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { onChanged(); return this; } + /** * * @@ -5568,6 +5732,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo onChanged(); return this; } + /** * * @@ -5603,6 +5768,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { } return this; } + /** * * @@ -5630,6 +5796,7 @@ public Builder clearRetryPolicy() { onChanged(); return this; } + /** * * @@ -5652,6 +5819,7 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { onChanged(); return getRetryPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5678,6 +5846,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { : retryPolicy_; } } + /** * * @@ -5713,6 +5882,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { } private boolean detached_; + /** * * @@ -5732,6 +5902,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { public boolean getDetached() { return detached_; } + /** * * @@ -5755,6 +5926,7 @@ public Builder setDetached(boolean value) { onChanged(); return this; } + /** * * @@ -5778,6 +5950,7 @@ public Builder clearDetached() { } private boolean enableExactlyOnceDelivery_; + /** * * @@ -5805,6 +5978,7 @@ public Builder clearDetached() { public boolean getEnableExactlyOnceDelivery() { return enableExactlyOnceDelivery_; } + /** * * @@ -5836,6 +6010,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { onChanged(); return this; } + /** * * @@ -5872,6 +6047,7 @@ public Builder clearEnableExactlyOnceDelivery() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> topicMessageRetentionDurationBuilder_; + /** * * @@ -5893,6 +6069,7 @@ public Builder clearEnableExactlyOnceDelivery() { public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00010000) != 0); } + /** * * @@ -5920,6 +6097,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { return topicMessageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -5949,6 +6127,7 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val onChanged(); return this; } + /** * * @@ -5976,6 +6155,7 @@ public Builder setTopicMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -6011,6 +6191,7 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v } return this; } + /** * * @@ -6037,6 +6218,7 @@ public Builder clearTopicMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -6058,6 +6240,7 @@ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuil onChanged(); return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -6083,6 +6266,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB : topicMessageRetentionDuration_; } } + /** * * @@ -6117,6 +6301,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB } private int state_ = 0; + /** * * @@ -6135,6 +6320,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public int getStateValue() { return state_; } + /** * * @@ -6156,6 +6342,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -6176,6 +6363,7 @@ public com.google.pubsub.v1.Subscription.State getState() { com.google.pubsub.v1.Subscription.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } + /** * * @@ -6200,6 +6388,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { onChanged(); return this; } + /** * * @@ -6228,6 +6417,7 @@ public Builder clearState() { com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> analyticsHubSubscriptionInfoBuilder_; + /** * * @@ -6245,6 +6435,7 @@ public Builder clearState() { public boolean hasAnalyticsHubSubscriptionInfo() { return ((bitField0_ & 0x00040000) != 0); } + /** * * @@ -6269,6 +6460,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { return analyticsHubSubscriptionInfoBuilder_.getMessage(); } } + /** * * @@ -6295,6 +6487,7 @@ public Builder setAnalyticsHubSubscriptionInfo( onChanged(); return this; } + /** * * @@ -6318,6 +6511,7 @@ public Builder setAnalyticsHubSubscriptionInfo( onChanged(); return this; } + /** * * @@ -6351,6 +6545,7 @@ public Builder mergeAnalyticsHubSubscriptionInfo( } return this; } + /** * * @@ -6373,6 +6568,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { onChanged(); return this; } + /** * * @@ -6391,6 +6587,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { onChanged(); return getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); } + /** * * @@ -6413,6 +6610,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { : analyticsHubSubscriptionInfo_; } } + /** * * @@ -6478,6 +6676,7 @@ public java.util.List getMessageTransform return messageTransformsBuilder_.getMessageList(); } } + /** * * @@ -6497,6 +6696,7 @@ public int getMessageTransformsCount() { return messageTransformsBuilder_.getCount(); } } + /** * * @@ -6516,6 +6716,7 @@ public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransformsBuilder_.getMessage(index); } } + /** * * @@ -6541,6 +6742,7 @@ public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -6564,6 +6766,7 @@ public Builder setMessageTransforms( } return this; } + /** * * @@ -6589,6 +6792,7 @@ public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) } return this; } + /** * * @@ -6614,6 +6818,7 @@ public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -6637,6 +6842,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -6660,6 +6866,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -6683,6 +6890,7 @@ public Builder addAllMessageTransforms( } return this; } + /** * * @@ -6705,6 +6913,7 @@ public Builder clearMessageTransforms() { } return this; } + /** * * @@ -6727,6 +6936,7 @@ public Builder removeMessageTransforms(int index) { } return this; } + /** * * @@ -6742,6 +6952,7 @@ public Builder removeMessageTransforms(int index) { public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { return getMessageTransformsFieldBuilder().getBuilder(index); } + /** * * @@ -6761,6 +6972,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransformsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -6781,6 +6993,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return java.util.Collections.unmodifiableList(messageTransforms_); } } + /** * * @@ -6797,6 +7010,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * @@ -6813,6 +7027,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 8e9b3000c..6723327ce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -41,6 +41,7 @@ public interface SubscriptionOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -75,6 +76,7 @@ public interface SubscriptionOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -106,6 +108,7 @@ public interface SubscriptionOrBuilder * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); + /** * * @@ -120,6 +123,7 @@ public interface SubscriptionOrBuilder * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); + /** * * @@ -148,6 +152,7 @@ public interface SubscriptionOrBuilder * @return Whether the bigqueryConfig field is set. */ boolean hasBigqueryConfig(); + /** * * @@ -163,6 +168,7 @@ public interface SubscriptionOrBuilder * @return The bigqueryConfig. */ com.google.pubsub.v1.BigQueryConfig getBigqueryConfig(); + /** * * @@ -192,6 +198,7 @@ public interface SubscriptionOrBuilder * @return Whether the cloudStorageConfig field is set. */ boolean hasCloudStorageConfig(); + /** * * @@ -207,6 +214,7 @@ public interface SubscriptionOrBuilder * @return The cloudStorageConfig. */ com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig(); + /** * * @@ -289,6 +297,7 @@ public interface SubscriptionOrBuilder * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); + /** * * @@ -307,6 +316,7 @@ public interface SubscriptionOrBuilder * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); + /** * * @@ -335,6 +345,7 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -346,9 +357,11 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -360,6 +373,7 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -375,6 +389,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -423,6 +438,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); + /** * * @@ -443,6 +459,7 @@ java.lang.String getLabelsOrDefault( * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); + /** * * @@ -478,6 +495,7 @@ java.lang.String getLabelsOrDefault( * @return The filter. */ java.lang.String getFilter(); + /** * * @@ -516,6 +534,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); + /** * * @@ -537,6 +556,7 @@ java.lang.String getLabelsOrDefault( * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); + /** * * @@ -577,6 +597,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); + /** * * @@ -597,6 +618,7 @@ java.lang.String getLabelsOrDefault( * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); + /** * * @@ -676,6 +698,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the topicMessageRetentionDuration field is set. */ boolean hasTopicMessageRetentionDuration(); + /** * * @@ -695,6 +718,7 @@ java.lang.String getLabelsOrDefault( * @return The topicMessageRetentionDuration. */ com.google.protobuf.Duration getTopicMessageRetentionDuration(); + /** * * @@ -728,6 +752,7 @@ java.lang.String getLabelsOrDefault( * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -759,6 +784,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the analyticsHubSubscriptionInfo field is set. */ boolean hasAnalyticsHubSubscriptionInfo(); + /** * * @@ -774,6 +800,7 @@ java.lang.String getLabelsOrDefault( * @return The analyticsHubSubscriptionInfo. */ com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo(); + /** * * @@ -802,6 +829,7 @@ java.lang.String getLabelsOrDefault( * */ java.util.List getMessageTransformsList(); + /** * * @@ -815,6 +843,7 @@ java.lang.String getLabelsOrDefault( * */ com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** * * @@ -828,6 +857,7 @@ java.lang.String getLabelsOrDefault( * */ int getMessageTransformsCount(); + /** * * @@ -842,6 +872,7 @@ java.lang.String getLabelsOrDefault( */ java.util.List getMessageTransformsOrBuilderList(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 5ee6a0772..5ab4f70cf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,6 +33,7 @@ public final class Topic extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) TopicOrBuilder { private static final long serialVersionUID = 0L; + // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -131,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -141,6 +143,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -242,6 +245,7 @@ private State(int value) { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -270,6 +274,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -325,6 +330,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -342,12 +348,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -362,6 +370,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -383,6 +392,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -407,6 +417,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3; private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; + /** * * @@ -426,6 +437,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -447,6 +459,7 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; } + /** * * @@ -471,6 +484,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; + /** * * @@ -497,6 +511,7 @@ public java.lang.String getKmsKeyName() { return s; } } + /** * * @@ -526,6 +541,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; + /** * * @@ -543,6 +559,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -562,6 +579,7 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; } + /** * * @@ -582,6 +600,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_ = false; + /** * * @@ -601,6 +620,7 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; + /** * * @@ -626,6 +646,7 @@ public boolean getSatisfiesPzs() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -653,6 +674,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } + /** * * @@ -681,6 +703,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; + /** * * @@ -697,6 +720,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public int getStateValue() { return state_; } + /** * * @@ -717,6 +741,7 @@ public com.google.pubsub.v1.Topic.State getState() { public static final int INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER = 10; private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + /** * * @@ -734,6 +759,7 @@ public com.google.pubsub.v1.Topic.State getState() { public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -753,6 +779,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; } + /** * * @@ -776,6 +803,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe @SuppressWarnings("serial") private java.util.List messageTransforms_; + /** * * @@ -792,6 +820,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe public java.util.List getMessageTransformsList() { return messageTransforms_; } + /** * * @@ -809,6 +838,7 @@ public java.util.List getMessageTransform getMessageTransformsOrBuilderList() { return messageTransforms_; } + /** * * @@ -825,6 +855,7 @@ public java.util.List getMessageTransform public int getMessageTransformsCount() { return messageTransforms_.size(); } + /** * * @@ -841,6 +872,7 @@ public int getMessageTransformsCount() { public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransforms_.get(index); } + /** * * @@ -1133,6 +1165,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1554,6 +1587,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -1581,6 +1615,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -1608,6 +1643,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1634,6 +1670,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1656,6 +1693,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -1709,6 +1747,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1726,12 +1765,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1746,6 +1787,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1767,6 +1809,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1794,6 +1837,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1811,12 +1855,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000002; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1838,6 +1884,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -1860,6 +1907,7 @@ public Builder putAllLabels(java.util.Map va com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_; + /** * * @@ -1878,6 +1926,7 @@ public Builder putAllLabels(java.util.Map va public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1902,6 +1951,7 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { return messageStoragePolicyBuilder_.getMessage(); } } + /** * * @@ -1928,6 +1978,7 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy onChanged(); return this; } + /** * * @@ -1952,6 +2003,7 @@ public Builder setMessageStoragePolicy( onChanged(); return this; } + /** * * @@ -1984,6 +2036,7 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli } return this; } + /** * * @@ -2007,6 +2060,7 @@ public Builder clearMessageStoragePolicy() { onChanged(); return this; } + /** * * @@ -2025,6 +2079,7 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy onChanged(); return getMessageStoragePolicyFieldBuilder().getBuilder(); } + /** * * @@ -2047,6 +2102,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic : messageStoragePolicy_; } } + /** * * @@ -2078,6 +2134,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } private java.lang.Object kmsKeyName_ = ""; + /** * * @@ -2103,6 +2160,7 @@ public java.lang.String getKmsKeyName() { return (java.lang.String) ref; } } + /** * * @@ -2128,6 +2186,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2152,6 +2211,7 @@ public Builder setKmsKeyName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2172,6 +2232,7 @@ public Builder clearKmsKeyName() { onChanged(); return this; } + /** * * @@ -2204,6 +2265,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> schemaSettingsBuilder_; + /** * * @@ -2220,6 +2282,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -2242,6 +2305,7 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { return schemaSettingsBuilder_.getMessage(); } } + /** * * @@ -2266,6 +2330,7 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { onChanged(); return this; } + /** * * @@ -2287,6 +2352,7 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui onChanged(); return this; } + /** * * @@ -2316,6 +2382,7 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { } return this; } + /** * * @@ -2337,6 +2404,7 @@ public Builder clearSchemaSettings() { onChanged(); return this; } + /** * * @@ -2353,6 +2421,7 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } + /** * * @@ -2373,6 +2442,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() : schemaSettings_; } } + /** * * @@ -2402,6 +2472,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() } private boolean satisfiesPzs_; + /** * * @@ -2418,6 +2489,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public boolean getSatisfiesPzs() { return satisfiesPzs_; } + /** * * @@ -2438,6 +2510,7 @@ public Builder setSatisfiesPzs(boolean value) { onChanged(); return this; } + /** * * @@ -2463,6 +2536,7 @@ public Builder clearSatisfiesPzs() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + /** * * @@ -2487,6 +2561,7 @@ public Builder clearSatisfiesPzs() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -2517,6 +2592,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -2549,6 +2625,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -2579,6 +2656,7 @@ public Builder setMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -2616,6 +2694,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } return this; } + /** * * @@ -2645,6 +2724,7 @@ public Builder clearMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -2669,6 +2749,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -2697,6 +2778,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } } + /** * * @@ -2734,6 +2816,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde } private int state_ = 0; + /** * * @@ -2750,6 +2833,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public int getStateValue() { return state_; } + /** * * @@ -2769,6 +2853,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -2786,6 +2871,7 @@ public com.google.pubsub.v1.Topic.State getState() { com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; } + /** * * @@ -2808,6 +2894,7 @@ public Builder setState(com.google.pubsub.v1.Topic.State value) { onChanged(); return this; } + /** * * @@ -2833,6 +2920,7 @@ public Builder clearState() { com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> ingestionDataSourceSettingsBuilder_; + /** * * @@ -2849,6 +2937,7 @@ public Builder clearState() { public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000100) != 0); } + /** * * @@ -2871,6 +2960,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe return ingestionDataSourceSettingsBuilder_.getMessage(); } } + /** * * @@ -2896,6 +2986,7 @@ public Builder setIngestionDataSourceSettings( onChanged(); return this; } + /** * * @@ -2918,6 +3009,7 @@ public Builder setIngestionDataSourceSettings( onChanged(); return this; } + /** * * @@ -2949,6 +3041,7 @@ public Builder mergeIngestionDataSourceSettings( } return this; } + /** * * @@ -2970,6 +3063,7 @@ public Builder clearIngestionDataSourceSettings() { onChanged(); return this; } + /** * * @@ -2987,6 +3081,7 @@ public Builder clearIngestionDataSourceSettings() { onChanged(); return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); } + /** * * @@ -3008,6 +3103,7 @@ public Builder clearIngestionDataSourceSettings() { : ingestionDataSourceSettings_; } } + /** * * @@ -3072,6 +3168,7 @@ public java.util.List getMessageTransform return messageTransformsBuilder_.getMessageList(); } } + /** * * @@ -3091,6 +3188,7 @@ public int getMessageTransformsCount() { return messageTransformsBuilder_.getCount(); } } + /** * * @@ -3110,6 +3208,7 @@ public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransformsBuilder_.getMessage(index); } } + /** * * @@ -3135,6 +3234,7 @@ public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -3158,6 +3258,7 @@ public Builder setMessageTransforms( } return this; } + /** * * @@ -3183,6 +3284,7 @@ public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) } return this; } + /** * * @@ -3208,6 +3310,7 @@ public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -3231,6 +3334,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -3254,6 +3358,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -3277,6 +3382,7 @@ public Builder addAllMessageTransforms( } return this; } + /** * * @@ -3299,6 +3405,7 @@ public Builder clearMessageTransforms() { } return this; } + /** * * @@ -3321,6 +3428,7 @@ public Builder removeMessageTransforms(int index) { } return this; } + /** * * @@ -3336,6 +3444,7 @@ public Builder removeMessageTransforms(int index) { public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { return getMessageTransformsFieldBuilder().getBuilder(index); } + /** * * @@ -3355,6 +3464,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransformsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -3375,6 +3485,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return java.util.Collections.unmodifiableList(messageTransforms_); } } + /** * * @@ -3391,6 +3502,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * @@ -3407,6 +3519,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 6c805af88..aec543431 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -217,7 +217,8 @@ public Builder setTopic(String topic) { private Builder(TopicName topicName) { Preconditions.checkArgument( Objects.equals(topicName.pathTemplate, PROJECT_TOPIC), - "toBuilder is only supported when TopicName has the pattern of projects/{project}/topics/{topic}"); + "toBuilder is only supported when TopicName has the pattern of" + + " projects/{project}/topics/{topic}"); this.project = topicName.project; this.topic = topicName.topic; } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 3af29ee9f..3614d1be5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -41,6 +41,7 @@ public interface TopicOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -70,6 +71,7 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -81,9 +83,11 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -95,6 +99,7 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -110,6 +115,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -138,6 +144,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); + /** * * @@ -154,6 +161,7 @@ java.lang.String getLabelsOrDefault( * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); + /** * * @@ -184,6 +192,7 @@ java.lang.String getLabelsOrDefault( * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); + /** * * @@ -214,6 +223,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); + /** * * @@ -228,6 +238,7 @@ java.lang.String getLabelsOrDefault( * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); + /** * * @@ -277,6 +288,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); + /** * * @@ -299,6 +311,7 @@ java.lang.String getLabelsOrDefault( * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); + /** * * @@ -333,6 +346,7 @@ java.lang.String getLabelsOrDefault( * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -361,6 +375,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the ingestionDataSourceSettings field is set. */ boolean hasIngestionDataSourceSettings(); + /** * * @@ -375,6 +390,7 @@ java.lang.String getLabelsOrDefault( * @return The ingestionDataSourceSettings. */ com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings(); + /** * * @@ -402,6 +418,7 @@ java.lang.String getLabelsOrDefault( * */ java.util.List getMessageTransformsList(); + /** * * @@ -415,6 +432,7 @@ java.lang.String getLabelsOrDefault( * */ com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** * * @@ -428,6 +446,7 @@ java.lang.String getLabelsOrDefault( * */ int getMessageTransformsCount(); + /** * * @@ -442,6 +461,7 @@ java.lang.String getLabelsOrDefault( */ java.util.List getMessageTransformsOrBuilderList(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index ee0819771..6873bc0ff 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -33,6 +33,7 @@ public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; + /** * * @@ -79,6 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -94,6 +97,7 @@ public boolean hasSnapshot() { public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } + /** * * @@ -110,6 +114,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -127,6 +132,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -144,6 +150,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -338,6 +345,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -559,6 +567,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; + /** * * @@ -574,6 +583,7 @@ public Builder mergeFrom( public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -593,6 +603,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshotBuilder_.getMessage(); } } + /** * * @@ -616,6 +627,7 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { onChanged(); return this; } + /** * * @@ -636,6 +648,7 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue onChanged(); return this; } + /** * * @@ -664,6 +677,7 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -684,6 +698,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * @@ -699,6 +714,7 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { onChanged(); return getSnapshotFieldBuilder().getBuilder(); } + /** * * @@ -716,6 +732,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } } + /** * * @@ -749,6 +766,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -765,6 +783,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -787,6 +806,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -811,6 +831,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -832,6 +853,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -861,6 +883,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -882,6 +905,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -898,6 +922,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -918,6 +943,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 29eace61f..8f693411c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -36,6 +36,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return Whether the snapshot field is set. */ boolean hasSnapshot(); + /** * * @@ -48,6 +49,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return The snapshot. */ com.google.pubsub.v1.Snapshot getSnapshot(); + /** * * @@ -73,6 +75,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -87,6 +90,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 26db4ac40..e1d91cdb6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class UpdateSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -100,6 +103,7 @@ public com.google.pubsub.v1.Subscription getSubscription() { ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } + /** * * @@ -120,6 +124,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -137,6 +142,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -154,6 +160,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -348,6 +355,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -570,6 +578,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; + /** * * @@ -586,6 +595,7 @@ public Builder mergeFrom( public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -608,6 +618,7 @@ public com.google.pubsub.v1.Subscription getSubscription() { return subscriptionBuilder_.getMessage(); } } + /** * * @@ -632,6 +643,7 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { onChanged(); return this; } + /** * * @@ -653,6 +665,7 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder onChanged(); return this; } + /** * * @@ -682,6 +695,7 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { } return this; } + /** * * @@ -703,6 +717,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -719,6 +734,7 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } + /** * * @@ -739,6 +755,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { : subscription_; } } + /** * * @@ -773,6 +790,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -789,6 +807,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -811,6 +830,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -835,6 +855,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -856,6 +877,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -885,6 +907,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -906,6 +929,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -922,6 +946,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -942,6 +967,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 4e269b66b..b11c76dbc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return Whether the subscription field is set. */ boolean hasSubscription(); + /** * * @@ -52,6 +53,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return The subscription. */ com.google.pubsub.v1.Subscription getSubscription(); + /** * * @@ -79,6 +81,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -93,6 +96,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 881978774..9ac03519f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -33,6 +33,7 @@ public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; + /** * * @@ -79,6 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -94,6 +97,7 @@ public boolean hasTopic() { public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } + /** * * @@ -110,6 +114,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -130,6 +135,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -150,6 +156,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -346,6 +353,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -567,6 +575,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; + /** * * @@ -581,6 +590,7 @@ public Builder mergeFrom( public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -599,6 +609,7 @@ public com.google.pubsub.v1.Topic getTopic() { return topicBuilder_.getMessage(); } } + /** * * @@ -621,6 +632,7 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { onChanged(); return this; } + /** * * @@ -640,6 +652,7 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -667,6 +680,7 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -686,6 +700,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -700,6 +715,7 @@ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { onChanged(); return getTopicFieldBuilder().getBuilder(); } + /** * * @@ -716,6 +732,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } + /** * * @@ -747,6 +764,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -766,6 +784,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -791,6 +810,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -818,6 +838,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -842,6 +863,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -874,6 +896,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -898,6 +921,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -917,6 +941,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -940,6 +965,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index d8f1585fe..c58242301 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -36,6 +36,7 @@ public interface UpdateTopicRequestOrBuilder * @return Whether the topic field is set. */ boolean hasTopic(); + /** * * @@ -48,6 +49,7 @@ public interface UpdateTopicRequestOrBuilder * @return The topic. */ com.google.pubsub.v1.Topic getTopic(); + /** * * @@ -76,6 +78,7 @@ public interface UpdateTopicRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -93,6 +96,7 @@ public interface UpdateTopicRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index da740bab7..5211f514f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -33,6 +33,7 @@ public final class ValidateMessageRequest extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) ValidateMessageRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateMessageRequest.newBuilder() to construct. private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -82,6 +83,7 @@ public enum SchemaSpecCase private SchemaSpecCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -118,6 +120,7 @@ public SchemaSpecCase getSchemaSpecCase() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -144,6 +147,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -172,6 +176,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int NAME_FIELD_NUMBER = 2; + /** * * @@ -188,6 +193,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasName() { return schemaSpecCase_ == 2; } + /** * * @@ -217,6 +223,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -248,6 +255,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SCHEMA_FIELD_NUMBER = 3; + /** * * @@ -263,6 +271,7 @@ public com.google.protobuf.ByteString getNameBytes() { public boolean hasSchema() { return schemaSpecCase_ == 3; } + /** * * @@ -281,6 +290,7 @@ public com.google.pubsub.v1.Schema getSchema() { } return com.google.pubsub.v1.Schema.getDefaultInstance(); } + /** * * @@ -300,6 +310,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -318,6 +329,7 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_ = 0; + /** * * @@ -333,6 +345,7 @@ public com.google.protobuf.ByteString getMessage() { public int getEncodingValue() { return encoding_; } + /** * * @@ -564,6 +577,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -832,6 +846,7 @@ public Builder clearSchemaSpec() { private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -857,6 +872,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -882,6 +898,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -906,6 +923,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -926,6 +944,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -969,6 +988,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasName() { return schemaSpecCase_ == 2; } + /** * * @@ -999,6 +1019,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -1029,6 +1050,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1052,6 +1074,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1073,6 +1096,7 @@ public Builder clearName() { } return this; } + /** * * @@ -1103,6 +1127,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -1118,6 +1143,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return schemaSpecCase_ == 3; } + /** * * @@ -1143,6 +1169,7 @@ public com.google.pubsub.v1.Schema getSchema() { return com.google.pubsub.v1.Schema.getDefaultInstance(); } } + /** * * @@ -1165,6 +1192,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1184,6 +1212,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1215,6 +1244,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1240,6 +1270,7 @@ public Builder clearSchema() { } return this; } + /** * * @@ -1252,6 +1283,7 @@ public Builder clearSchema() { public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -1272,6 +1304,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return com.google.pubsub.v1.Schema.getDefaultInstance(); } } + /** * * @@ -1304,6 +1337,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -1319,6 +1353,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public com.google.protobuf.ByteString getMessage() { return message_; } + /** * * @@ -1340,6 +1375,7 @@ public Builder setMessage(com.google.protobuf.ByteString value) { onChanged(); return this; } + /** * * @@ -1359,6 +1395,7 @@ public Builder clearMessage() { } private int encoding_ = 0; + /** * * @@ -1374,6 +1411,7 @@ public Builder clearMessage() { public int getEncodingValue() { return encoding_; } + /** * * @@ -1392,6 +1430,7 @@ public Builder setEncodingValue(int value) { onChanged(); return this; } + /** * * @@ -1408,6 +1447,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } + /** * * @@ -1429,6 +1469,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { onChanged(); return this; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 73bde3da9..2d4102c26 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ValidateMessageRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -69,6 +70,7 @@ public interface ValidateMessageRequestOrBuilder * @return Whether the name field is set. */ boolean hasName(); + /** * * @@ -83,6 +85,7 @@ public interface ValidateMessageRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -110,6 +113,7 @@ public interface ValidateMessageRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -122,6 +126,7 @@ public interface ValidateMessageRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * @@ -158,6 +163,7 @@ public interface ValidateMessageRequestOrBuilder * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 418a1494e..afc1a70f6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -34,6 +34,7 @@ public final class ValidateMessageResponse extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse) ValidateMessageResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateMessageResponse.newBuilder() to construct. private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 45232ef53..de152babb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -33,6 +33,7 @@ public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) ValidateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateSchemaRequest.newBuilder() to construct. private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -138,6 +142,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -153,6 +158,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -340,6 +346,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -552,6 +559,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -577,6 +585,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -602,6 +611,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -626,6 +636,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -646,6 +657,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -678,6 +690,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -692,6 +705,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -710,6 +724,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -732,6 +747,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -751,6 +767,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -778,6 +795,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -797,6 +815,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -811,6 +830,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -827,6 +847,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 89e05a495..69266da41 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ValidateSchemaRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -67,6 +68,7 @@ public interface ValidateSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -79,6 +81,7 @@ public interface ValidateSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 886a37801..56773fd34 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -34,6 +34,7 @@ public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse) ValidateSchemaResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateSchemaResponse.newBuilder() to construct. private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index ed879ba88..516b7faef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/pubsub/v1/schema.proto"; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; +option go_package = "cloud.google.com/go/pubsub/v2/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 08781bbfc..37fd2f461 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; +option go_package = "cloud.google.com/go/pubsub/v2/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "SchemaProto"; option java_package = "com.google.pubsub.v1"; diff --git a/renovate.json b/renovate.json index f67202e06..a604dc837 100644 --- a/renovate.json +++ b/renovate.json @@ -63,7 +63,6 @@ "^org.jacoco:", "^org.codehaus.mojo:", "^org.sonatype.plugins:", - "^com.coveo:", "^com.google.cloud:google-cloud-shared-config" ], "semanticCommitType": "build", diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java index c812eed16..606c6fe36 100644 --- a/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -49,8 +49,7 @@ public static void main(String... args) throws Exception { public static void openTelemetryPublisherExample(String projectId, String topicId) throws IOException, ExecutionException, InterruptedException { Resource resource = - Resource.getDefault() - .toBuilder() + Resource.getDefault().toBuilder() .put(ResourceAttributes.SERVICE_NAME, "publisher-example") .build(); diff --git a/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java index d46900b9b..f78c38d19 100644 --- a/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java +++ b/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -47,8 +47,7 @@ public static void main(String... args) throws Exception { public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { Resource resource = - Resource.getDefault() - .toBuilder() + Resource.getDefault().toBuilder() .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") .build(); diff --git a/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java b/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java index aa7d571c9..763882d65 100644 --- a/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java +++ b/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java @@ -74,7 +74,7 @@ public static void publishAvroRecordsExample(String projectId, String topicId) switch (encoding) { case BINARY: System.out.println("Preparing a BINARY encoder..."); - encoder = EncoderFactory.get().directBinaryEncoder(byteStream, /*reuse=*/ null); + encoder = EncoderFactory.get().directBinaryEncoder(byteStream, /* reuse= */ null); break; case JSON: diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java index 65b1937b8..68880d1d3 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java @@ -72,7 +72,7 @@ public static void subscribeWithAvroSchemaExample(String projectId, String subsc try { switch (encoding) { case "BINARY": - decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /* reuse= */ null); System.out.println("Receiving a binary-encoded message:"); break; case "JSON": diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java index 204867006..9498bd020 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java @@ -118,7 +118,7 @@ public static void subscribeWithAvroSchemaRevisionsExample( try { switch (encoding) { case "BINARY": - decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /* reuse= */ null); System.out.println("Receiving a binary-encoded message:"); break; case "JSON": diff --git a/samples/snippets/src/main/java/utilities/State.java b/samples/snippets/src/main/java/utilities/State.java index 503acf61f..60d869e23 100644 --- a/samples/snippets/src/main/java/utilities/State.java +++ b/samples/snippets/src/main/java/utilities/State.java @@ -46,7 +46,12 @@ public class State extends org.apache.avro.specific.SpecificRecordBase public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser() .parse( - "{\"type\":\"record\",\"name\":\"State\",\"namespace\":\"utilities\",\"doc\":\"A list of states in the United States of America.\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"The common name of the state.\"},{\"name\":\"post_abbr\",\"type\":\"string\",\"doc\":\"The postal code abbreviation of the state.\"}]}"); + "{\"type\":\"record\",\"name\":\"State\",\"namespace\":\"utilities\",\"doc\":\"A list" + + " of states in the United States of" + + " America.\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"The" + + " common name of the" + + " state.\"},{\"name\":\"post_abbr\",\"type\":\"string\",\"doc\":\"The postal" + + " code abbreviation of the state.\"}]}"); public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; @@ -113,6 +118,7 @@ public static State fromByteBuffer(java.nio.ByteBuffer b) throws java.io.IOExcep /** The common name of the state. */ private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ private java.lang.CharSequence post_abbr; @@ -140,6 +146,7 @@ public org.apache.avro.specific.SpecificData getSpecificData() { public org.apache.avro.Schema getSchema() { return SCHEMA$; } + // Used by DatumWriter. Applications should not call. public java.lang.Object get(int field$) { switch (field$) { @@ -247,6 +254,7 @@ public static class Builder extends org.apache.avro.specific.SpecificRecordBuild /** The common name of the state. */ private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ private java.lang.CharSequence post_abbr; diff --git a/samples/snippets/src/main/java/utilities/StateProto.java b/samples/snippets/src/main/java/utilities/StateProto.java index f43d6e092..388ba9b97 100644 --- a/samples/snippets/src/main/java/utilities/StateProto.java +++ b/samples/snippets/src/main/java/utilities/StateProto.java @@ -50,6 +50,7 @@ public interface StateOrBuilder * @return The name. */ java.lang.String getName(); + /** * string name = 1; * @@ -63,6 +64,7 @@ public interface StateOrBuilder * @return The postAbbr. */ java.lang.String getPostAbbr(); + /** * string post_abbr = 2; * @@ -70,12 +72,14 @@ public interface StateOrBuilder */ com.google.protobuf.ByteString getPostAbbrBytes(); } + /** Protobuf type {@code utilities.State} */ public static final class State extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { private static final long serialVersionUID = 0L; + // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -108,6 +112,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * string name = 1; * @@ -125,6 +130,7 @@ public java.lang.String getName() { return s; } } + /** * string name = 1; * @@ -147,6 +153,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object postAbbr_ = ""; + /** * string post_abbr = 2; * @@ -164,6 +171,7 @@ public java.lang.String getPostAbbr() { return s; } } + /** * string post_abbr = 2; * @@ -349,6 +357,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** Protobuf type {@code utilities.State} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder @@ -537,6 +546,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * string name = 1; * @@ -553,6 +563,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * string name = 1; * @@ -569,6 +580,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * string name = 1; * @@ -584,6 +596,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * string name = 1; * @@ -595,6 +608,7 @@ public Builder clearName() { onChanged(); return this; } + /** * string name = 1; * @@ -613,6 +627,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object postAbbr_ = ""; + /** * string post_abbr = 2; * @@ -629,6 +644,7 @@ public java.lang.String getPostAbbr() { return (java.lang.String) ref; } } + /** * string post_abbr = 2; * @@ -645,6 +661,7 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * string post_abbr = 2; * @@ -660,6 +677,7 @@ public Builder setPostAbbr(java.lang.String value) { onChanged(); return this; } + /** * string post_abbr = 2; * @@ -671,6 +689,7 @@ public Builder clearPostAbbr() { onChanged(); return this; } + /** * string post_abbr = 2; * diff --git a/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java index 8a97d25f5..d85c27ad8 100644 --- a/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java +++ b/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -68,7 +68,7 @@ private static void publishSomeMessages() throws Exception { } @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout - @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/* maxAttemptCount= */ 3); @BeforeClass public static void checkRequirements() { diff --git a/samples/snippets/src/test/java/pubsub/SchemaIT.java b/samples/snippets/src/test/java/pubsub/SchemaIT.java index 2874ae519..342a42c61 100644 --- a/samples/snippets/src/test/java/pubsub/SchemaIT.java +++ b/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -79,7 +79,7 @@ private static void requireEnvVar(String varName) { } @Rule public Timeout globalTimeout = Timeout.seconds(600); // 10 minute timeout - @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/* maxAttemptCount= */ 3); @Before public void setUp() { From af5140e65f9363adc1ab0e9aed2b4b4d69a90564 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 01:34:35 -0400 Subject: [PATCH 447/656] chore(main): release 1.138.1-SNAPSHOT (#2373) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 23974ed45..ce833b4b4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.138.0 + 1.138.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT
diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 228dae29c..895870e10 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 380f1f500..590dd1521 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index d4edd2342..d3430613c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.138.0 + 1.138.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 33873694a..47b2bbdbe 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index daa2a4cc6..1d093d8a3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5d89f2bf7..1044d035b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.138.0:1.138.0 -grpc-google-cloud-pubsub-v1:1.120.0:1.120.0 -proto-google-cloud-pubsub-v1:1.120.0:1.120.0 +google-cloud-pubsub:1.138.0:1.138.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT From e1bac16bfe9dc0ad9b606406a92559e3c978baf7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 10:45:33 -0400 Subject: [PATCH 448/656] chore(main): release 1.139.0 (#2398) * chore(main): release 1.139.0 * chore: generate libraries at Fri Apr 25 05:36:49 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 48 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f77a4f9eb..1f7b6979f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [1.139.0](https://github.com/googleapis/java-pubsub/compare/v1.138.0...v1.139.0) (2025-04-25) + + +### Features + +* Generate renamed go pubsub admin clients ([4472d7b](https://github.com/googleapis/java-pubsub/commit/4472d7baff4894a7c5cf0efc7eadd83ec8801d7a)) + + +### Bug Fixes + +* Add retries for ack and modack operations that don't return with a metadata map ([#2385](https://github.com/googleapis/java-pubsub/issues/2385)) ([00070b7](https://github.com/googleapis/java-pubsub/commit/00070b74e54fcb62b91a4d72a88d3b20b2425a94)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.2 ([4472d7b](https://github.com/googleapis/java-pubsub/commit/4472d7baff4894a7c5cf0efc7eadd83ec8801d7a)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.49.0 ([#2380](https://github.com/googleapis/java-pubsub/issues/2380)) ([405e485](https://github.com/googleapis/java-pubsub/commit/405e485bbe503357a0616ec72de8fea00cb91c9c)) +* Update dependency com.google.cloud:google-cloud-core to v2.53.1 ([#2365](https://github.com/googleapis/java-pubsub/issues/2365)) ([748058f](https://github.com/googleapis/java-pubsub/commit/748058fc018e3a36dedd576404037bf8c016c794)) +* Update dependency com.google.cloud:google-cloud-storage to v2.50.0 ([#2372](https://github.com/googleapis/java-pubsub/issues/2372)) ([b81164a](https://github.com/googleapis/java-pubsub/commit/b81164aa5682c8046ebfa44e1e47579e4c3fcd28)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.30.1 ([#2364](https://github.com/googleapis/java-pubsub/issues/2364)) ([05eb9c0](https://github.com/googleapis/java-pubsub/commit/05eb9c0ce5179ff9e8656544258adc02a59336e5)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.30.2 ([#2383](https://github.com/googleapis/java-pubsub/issues/2383)) ([4119cc0](https://github.com/googleapis/java-pubsub/commit/4119cc03895873f94ddef10850753fb59384a8fc)) + + +### Documentation + +* Update documentation for JavaScriptUDF to indicate that the `message_id` metadata field is optional instead of required ([f904786](https://github.com/googleapis/java-pubsub/commit/f904786f87e80cdc09bba947cd53e42dffb7132e)) + ## [1.138.0](https://github.com/googleapis/java-pubsub/compare/v1.137.1...v1.138.0) (2025-03-14) diff --git a/README.md b/README.md index 748acba71..ba60d62ce 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.138.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.138.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.138.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ce833b4b4..700bd0798 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.138.1-SNAPSHOT + 1.139.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 895870e10..c1a84679f 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 590dd1521..20aa99fd2 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/pom.xml b/pom.xml index d3430613c..e9c2daf78 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.138.1-SNAPSHOT + 1.139.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 47b2bbdbe..3e5b3874a 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1d093d8a3..e1d2279be 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/versions.txt b/versions.txt index 1044d035b..280395fca 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.138.0:1.138.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT +google-cloud-pubsub:1.139.0:1.139.0 +grpc-google-cloud-pubsub-v1:1.121.0:1.121.0 +proto-google-cloud-pubsub-v1:1.121.0:1.121.0 From 17f7fd77553a7ccd55029edb74829f1fe86a680c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 25 Apr 2025 16:57:30 +0100 Subject: [PATCH 449/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.2 (#2394) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index c11991c37..3b60a3ee4 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 700bd0798..c9735d041 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.45.1 + 3.46.2 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index e9c2daf78..e4407a947 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.45.1 + 3.46.2 From aa2fe17b57f32ac158685bd0aa0f17e2be9fd2b9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 12:51:32 -0400 Subject: [PATCH 450/656] chore(main): release 1.139.1-SNAPSHOT (#2400) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c9735d041..4607f9115 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.0 + 1.139.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c1a84679f..569664683 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 20aa99fd2..4ee2db2ab 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index e4407a947..ffbcdecbe 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.0 + 1.139.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 3e5b3874a..037a9db73 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e1d2279be..c2bc2754d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 280395fca..fc9b8fb5a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.0:1.139.0 -grpc-google-cloud-pubsub-v1:1.121.0:1.121.0 -proto-google-cloud-pubsub-v1:1.121.0:1.121.0 +google-cloud-pubsub:1.139.0:1.139.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT From 6156dccaf95de7b260ea212f2f69f37b4d50ac50 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:37:56 -0400 Subject: [PATCH 451/656] chore(main): release 1.139.1 (#2402) * chore(main): release 1.139.1 * chore: generate libraries at Fri Apr 25 16:52:23 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f7b6979f..38533e987 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.139.1](https://github.com/googleapis/java-pubsub/compare/v1.139.0...v1.139.1) (2025-04-25) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.2 ([#2394](https://github.com/googleapis/java-pubsub/issues/2394)) ([17f7fd7](https://github.com/googleapis/java-pubsub/commit/17f7fd77553a7ccd55029edb74829f1fe86a680c)) + ## [1.139.0](https://github.com/googleapis/java-pubsub/compare/v1.138.0...v1.139.0) (2025-04-25) diff --git a/README.md b/README.md index ba60d62ce..72d31c217 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 4607f9115..f23a7e683 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.1-SNAPSHOT + 1.139.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 569664683..2fe492ba4 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 4ee2db2ab..cb87cb642 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/pom.xml b/pom.xml index ffbcdecbe..2fe71b3a1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.1-SNAPSHOT + 1.139.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 037a9db73..74592a4f1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c2bc2754d..924dd7370 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/versions.txt b/versions.txt index fc9b8fb5a..da51bc444 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.0:1.139.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT +google-cloud-pubsub:1.139.1:1.139.1 +grpc-google-cloud-pubsub-v1:1.121.1:1.121.1 +proto-google-cloud-pubsub-v1:1.121.1:1.121.1 From 1cf223aba5296ffa1328fce781418c09d46d4337 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 16:48:33 +0200 Subject: [PATCH 452/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.59.0 (#2387) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4b60d917e..d04c35924 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.57.0 + 26.59.0 pom import From 2b928a8a946ebf84470bd2e2bb064b52c4f11ea2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 5 May 2025 10:49:22 -0400 Subject: [PATCH 453/656] chore: Update generation configuration at Sun May 4 02:35:46 UTC 2025 (#2397) * chore: Update generation configuration at Fri Apr 25 02:32:33 UTC 2025 * chore: Update generation configuration at Sat Apr 26 02:30:25 UTC 2025 * chore: Update generation configuration at Sun Apr 27 02:33:21 UTC 2025 * chore: Update generation configuration at Tue Apr 29 02:32:31 UTC 2025 * chore: Update generation configuration at Wed Apr 30 02:32:26 UTC 2025 * chore: Update generation configuration at Thu May 1 02:35:32 UTC 2025 * chore: Update generation configuration at Fri May 2 02:32:47 UTC 2025 * chore: Update generation configuration at Sat May 3 02:31:23 UTC 2025 * chore: Update generation configuration at Sun May 4 02:35:46 UTC 2025 * chore: generate libraries at Sun May 4 02:36:20 UTC 2025 --- .github/workflows/hermetic_library_generation.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- generation_config.yaml | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 6b856abde..2ab56cd24 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.3 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d0c295213..eab7259dc 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 962c305ff..90b98e715 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 87b5dff65..b2291db97 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/generation_config.yaml b/generation_config.yaml index 26559e519..4ebe3e637 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.56.2 -googleapis_commitish: 261895f1d8ced9564f4cf872f7f4f9a1f4c615d3 +gapic_generator_version: 2.56.3 +googleapis_commitish: 7ab5d0f5e87ed25778eeb8318e89cdad4d67ed6c libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub From 8963ed0acbe8bf3a110a05ced27979f102cd3035 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 17:20:37 +0200 Subject: [PATCH 454/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 (#2406) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 3b60a3ee4..3dbe105d3 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.3 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index f23a7e683..06b0b1303 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.46.2 + 3.46.3 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 2fe71b3a1..61c6ffb1e 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.46.2 + 3.46.3 From 07dd735ac0d798963ed2faff75588a3480aab5f6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 12:11:41 -0400 Subject: [PATCH 455/656] chore(main): release 1.139.2-SNAPSHOT (#2403) * chore(main): release 1.139.2-SNAPSHOT * chore: generate libraries at Mon May 5 15:21:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 72d31c217..50f35bc36 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.57.0 + 26.59.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 06b0b1303..9961090ad 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.1 + 1.139.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2fe492ba4..b5edc2ee7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index cb87cb642..0b8c747b7 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 61c6ffb1e..86fe3f518 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.1 + 1.139.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 74592a4f1..9ed43c46c 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 924dd7370..d2a4c1afb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index da51bc444..075292f22 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.1:1.139.1 -grpc-google-cloud-pubsub-v1:1.121.1:1.121.1 -proto-google-cloud-pubsub-v1:1.121.1:1.121.1 +google-cloud-pubsub:1.139.1:1.139.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT From 275383daebb790b1a160c22594f5874fda7f4ad0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 18:59:02 +0200 Subject: [PATCH 456/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.1 (#2401) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bd608c657..27c7b8623 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.139.1 From ff4870815864a6216a1ce4b606fcec3df7f58fd4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:37 +0200 Subject: [PATCH 457/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.49.2 (#2399) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 27c7b8623..f45c8c063 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.49.0 + 2.49.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d2a4c1afb..129433a18 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.49.0 + 2.49.2 com.google.cloud From 283a6e14f61764c210ed23f4ada23ad21bbdb306 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:46 +0200 Subject: [PATCH 458/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.1 (#2396) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f45c8c063..660d0b6ff 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.50.0 + 2.52.1 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 129433a18..8600ee235 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.50.0 + 2.52.1 com.google.cloud.opentelemetry From 0ffa26ac3abceabcfba5d57cdb36f27f5a164ce3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:57 +0200 Subject: [PATCH 459/656] deps: update dependency com.google.cloud:google-cloud-core to v2.54.3 (#2393) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 660d0b6ff..2c150fbdb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8600ee235..8539d01b1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d04c35924..4b5c90716 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests From 46619600de0ed462b92f7fdb826ee5087bbab1ca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 14:53:37 -0400 Subject: [PATCH 460/656] chore(main): release 1.139.2 (#2408) * chore(main): release 1.139.2 * chore: generate libraries at Mon May 5 18:12:47 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 15 +++++++++++++++ README.md | 8 ++++---- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 37 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38533e987..8758f1ccd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.139.2](https://github.com/googleapis/java-pubsub/compare/v1.139.1...v1.139.2) (2025-05-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.3 ([2b928a8](https://github.com/googleapis/java-pubsub/commit/2b928a8a946ebf84470bd2e2bb064b52c4f11ea2)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.49.2 ([#2399](https://github.com/googleapis/java-pubsub/issues/2399)) ([ff48708](https://github.com/googleapis/java-pubsub/commit/ff4870815864a6216a1ce4b606fcec3df7f58fd4)) +* Update dependency com.google.cloud:google-cloud-core to v2.54.3 ([#2393](https://github.com/googleapis/java-pubsub/issues/2393)) ([0ffa26a](https://github.com/googleapis/java-pubsub/commit/0ffa26ac3abceabcfba5d57cdb36f27f5a164ce3)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.1 ([#2396](https://github.com/googleapis/java-pubsub/issues/2396)) ([283a6e1](https://github.com/googleapis/java-pubsub/commit/283a6e14f61764c210ed23f4ada23ad21bbdb306)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 ([#2406](https://github.com/googleapis/java-pubsub/issues/2406)) ([8963ed0](https://github.com/googleapis/java-pubsub/commit/8963ed0acbe8bf3a110a05ced27979f102cd3035)) + ## [1.139.1](https://github.com/googleapis/java-pubsub/compare/v1.139.0...v1.139.1) (2025-04-25) diff --git a/README.md b/README.md index 50f35bc36..fe7f327e4 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.138.0 + 1.139.1 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.2" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 9961090ad..950e13c0e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.2-SNAPSHOT + 1.139.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index b5edc2ee7..023cc4833 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 0b8c747b7..20731fff6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/pom.xml b/pom.xml index 86fe3f518..93f64afd5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.2-SNAPSHOT + 1.139.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 9ed43c46c..e39ab19c0 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8539d01b1..587361798 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/versions.txt b/versions.txt index 075292f22..c4431dbaf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.1:1.139.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT +google-cloud-pubsub:1.139.2:1.139.2 +grpc-google-cloud-pubsub-v1:1.121.2:1.121.2 +proto-google-cloud-pubsub-v1:1.121.2:1.121.2 From 9b738c5584ef9881fef57caa808038776e37b030 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 15:17:49 -0400 Subject: [PATCH 461/656] chore(main): release 1.139.3-SNAPSHOT (#2410) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 950e13c0e..662fa7136 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.2 + 1.139.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 023cc4833..fd083e926 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 20731fff6..465552b2a 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 93f64afd5..60e133ab2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.2 + 1.139.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index e39ab19c0..c67396a09 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 587361798..4ae4674fb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index c4431dbaf..ae949c9c2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.2:1.139.2 -grpc-google-cloud-pubsub-v1:1.121.2:1.121.2 -proto-google-cloud-pubsub-v1:1.121.2:1.121.2 +google-cloud-pubsub:1.139.2:1.139.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT From d78823ffc93307c14f44e992cf13e926880fbe94 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:27 +0200 Subject: [PATCH 462/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 (#2414) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 3dbe105d3..006d4eecb 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.3 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.47.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc..24e5053a5 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715..ae35f6cb2 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97..660f1ee7e 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 662fa7136..9befbf1be 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.46.3 + 3.47.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 60e133ab2..6dffaa539 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.46.3 + 3.47.0 From 1ddf9b81e432aeb9af9e6b8bb2d2e9786159faba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:36 +0200 Subject: [PATCH 463/656] deps: update googleapis/sdk-platform-java action to v2.57.0 (#2415) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 2ab56cd24..f0b1369c8 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.3 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.57.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 4a430a78809fcc20a5f9ed6dbe8cbac4e61ab9d9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:58 +0200 Subject: [PATCH 464/656] chore(config): migrate config renovate.json (#2409) --- renovate.json | 87 +++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/renovate.json b/renovate.json index a604dc837..9f06ab96a 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,4 @@ - { - "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -9,8 +7,7 @@ ":updateNotScheduled", ":automergeDisabled", ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" + ":maintainLockFilesDisabled" ], "ignorePaths": [ ".kokoro/requirements.txt", @@ -45,63 +42,63 @@ ], "packageRules": [ { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" + "versioning": "docker", + "matchPackageNames": [ + "/^com.google.guava:/" + ] }, { - "packagePatterns": [ - "*" - ], "semanticCommitType": "deps", - "semanticCommitScope": null + "semanticCommitScope": null, + "matchPackageNames": [ + "*" + ] }, { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.google.cloud:google-cloud-shared-config" - ], "semanticCommitType": "build", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^org.apache.maven/", + "/^org.jacoco:/", + "/^org.codehaus.mojo:/", + "/^org.sonatype.plugins:/", + "/^com.google.cloud:google-cloud-shared-config/" + ] }, { - "packagePatterns": [ - "^com.google.cloud:google-cloud-pubsub", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], "semanticCommitType": "chore", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^com.google.cloud:google-cloud-pubsub/", + "/^com.google.cloud:libraries-bom/", + "/^com.google.cloud.samples:shared-configuration/" + ] }, { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests", - "^org.graalvm.buildtools:junit-platform-native" - ], "semanticCommitType": "test", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^junit:junit/", + "/^com.google.truth:truth/", + "/^org.mockito:mockito-core/", + "/^org.objenesis:objenesis/", + "/^com.google.cloud:google-cloud-conformance-tests/", + "/^org.graalvm.buildtools:junit-platform-native/" + ] }, { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false + "ignoreUnstable": false, + "matchPackageNames": [ + "/^com.google.cloud:google-cloud-/" + ] }, { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" + "groupName": "jackson dependencies", + "matchPackageNames": [ + "/^com.fasterxml.jackson.core/" + ] } ], - "semanticCommits": true, + "semanticCommits": "enabled", "dependencyDashboard": true -} \ No newline at end of file +} From 58d9cb21a36e32b0f0705960c3f6fa48ddc1cedf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 12:36:58 -0400 Subject: [PATCH 465/656] chore(main): release 1.139.3 (#2416) * chore(main): release 1.139.3 * chore: generate libraries at Tue May 6 15:01:24 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- CHANGELOG.md | 8 +++ README.md | 6 +- google-cloud-pubsub-bom/pom.xml | 8 +-- google-cloud-pubsub/pom.xml | 4 +- grpc-google-cloud-pubsub-v1/pom.xml | 4 +- pom.xml | 8 +-- proto-google-cloud-pubsub-v1/pom.xml | 4 +- renovate.json | 87 +++++++++++++------------- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +- 13 files changed, 77 insertions(+), 66 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5..eab7259dc 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb2..90b98e715 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7e..b2291db97 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/CHANGELOG.md b/CHANGELOG.md index 8758f1ccd..39b977b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.139.3](https://github.com/googleapis/java-pubsub/compare/v1.139.2...v1.139.3) (2025-05-06) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#2414](https://github.com/googleapis/java-pubsub/issues/2414)) ([d78823f](https://github.com/googleapis/java-pubsub/commit/d78823ffc93307c14f44e992cf13e926880fbe94)) +* Update googleapis/sdk-platform-java action to v2.57.0 ([#2415](https://github.com/googleapis/java-pubsub/issues/2415)) ([1ddf9b8](https://github.com/googleapis/java-pubsub/commit/1ddf9b81e432aeb9af9e6b8bb2d2e9786159faba)) + ## [1.139.2](https://github.com/googleapis/java-pubsub/compare/v1.139.1...v1.139.2) (2025-05-05) diff --git a/README.md b/README.md index fe7f327e4..236dd11f4 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.3" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 9befbf1be..2751af946 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.3-SNAPSHOT + 1.139.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index fd083e926..247d4d388 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 465552b2a..6f4c9040b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/pom.xml b/pom.xml index 6dffaa539..e64114d54 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.3-SNAPSHOT + 1.139.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index c67396a09..250da2b16 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/renovate.json b/renovate.json index 9f06ab96a..a604dc837 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,6 @@ + { + "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -7,7 +9,8 @@ ":updateNotScheduled", ":automergeDisabled", ":ignoreModulesAndTests", - ":maintainLockFilesDisabled" + ":maintainLockFilesDisabled", + ":autodetectPinVersions" ], "ignorePaths": [ ".kokoro/requirements.txt", @@ -42,63 +45,63 @@ ], "packageRules": [ { - "versioning": "docker", - "matchPackageNames": [ - "/^com.google.guava:/" - ] + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" }, { - "semanticCommitType": "deps", - "semanticCommitScope": null, - "matchPackageNames": [ + "packagePatterns": [ "*" - ] + ], + "semanticCommitType": "deps", + "semanticCommitScope": null }, { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.google.cloud:google-cloud-shared-config" + ], "semanticCommitType": "build", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^org.apache.maven/", - "/^org.jacoco:/", - "/^org.codehaus.mojo:/", - "/^org.sonatype.plugins:/", - "/^com.google.cloud:google-cloud-shared-config/" - ] + "semanticCommitScope": "deps" }, { + "packagePatterns": [ + "^com.google.cloud:google-cloud-pubsub", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], "semanticCommitType": "chore", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^com.google.cloud:google-cloud-pubsub/", - "/^com.google.cloud:libraries-bom/", - "/^com.google.cloud.samples:shared-configuration/" - ] + "semanticCommitScope": "deps" }, { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests", + "^org.graalvm.buildtools:junit-platform-native" + ], "semanticCommitType": "test", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^junit:junit/", - "/^com.google.truth:truth/", - "/^org.mockito:mockito-core/", - "/^org.objenesis:objenesis/", - "/^com.google.cloud:google-cloud-conformance-tests/", - "/^org.graalvm.buildtools:junit-platform-native/" - ] + "semanticCommitScope": "deps" }, { - "ignoreUnstable": false, - "matchPackageNames": [ - "/^com.google.cloud:google-cloud-/" - ] + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false }, { - "groupName": "jackson dependencies", - "matchPackageNames": [ - "/^com.fasterxml.jackson.core/" - ] + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" } ], - "semanticCommits": "enabled", + "semanticCommits": true, "dependencyDashboard": true -} +} \ No newline at end of file diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4ae4674fb..83aa5078d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/versions.txt b/versions.txt index ae949c9c2..67620086f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.2:1.139.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT +google-cloud-pubsub:1.139.3:1.139.3 +grpc-google-cloud-pubsub-v1:1.121.3:1.121.3 +proto-google-cloud-pubsub-v1:1.121.3:1.121.3 From 5f876612eb4a54faec3af2c9043aec0adf51e2ec Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 18:56:16 +0200 Subject: [PATCH 466/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 (#2418) --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc..24e5053a5 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715..ae35f6cb2 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97..660f1ee7e 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From 3ce0bd6dbd6b7588b48e99a524bfbb0d50d0c8e9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 13:16:26 -0400 Subject: [PATCH 467/656] chore(main): release 1.139.4-SNAPSHOT (#2417) * chore(main): release 1.139.4-SNAPSHOT * chore: generate libraries at Tue May 6 16:57:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5..eab7259dc 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb2..90b98e715 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7e..b2291db97 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2751af946..5ae411b79 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.3 + 1.139.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 247d4d388..9dc3ec1c9 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 6f4c9040b..9555436c0 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index e64114d54..2a8f7a47e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.3 + 1.139.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 250da2b16..d56dcc5c6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 83aa5078d..488862fd4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 67620086f..429229b08 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.3:1.139.3 -grpc-google-cloud-pubsub-v1:1.121.3:1.121.3 -proto-google-cloud-pubsub-v1:1.121.3:1.121.3 +google-cloud-pubsub:1.139.3:1.139.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT From 017eb0f78423fde3edd42a07677df49512085633 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 7 May 2025 17:21:28 -0400 Subject: [PATCH 468/656] chore: Update generation configuration at Wed May 7 02:33:33 UTC 2025 (#2412) * chore: Update generation configuration at Tue May 6 02:33:08 UTC 2025 * chore: Update generation configuration at Wed May 7 02:33:33 UTC 2025 * chore: generate libraries at Wed May 7 02:34:02 UTC 2025 --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- generation_config.yaml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc..24e5053a5 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715..ae35f6cb2 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97..660f1ee7e 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/generation_config.yaml b/generation_config.yaml index 4ebe3e637..23a6cda88 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.56.3 -googleapis_commitish: 7ab5d0f5e87ed25778eeb8318e89cdad4d67ed6c +gapic_generator_version: 2.57.0 +googleapis_commitish: f84c6ceca37b57906efcb606527a40d4585ba860 libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub From 993b2d06ce6b45bb72faa9d6959cddc14a9cf60e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:02 +0200 Subject: [PATCH 469/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.50.0 (#2422) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2c150fbdb..8483004c2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.49.2 + 2.50.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 488862fd4..4471a09ab 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.49.2 + 2.50.0 com.google.cloud From 1224ee51da27e447560076b0d51ba90515566bd9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:13 +0200 Subject: [PATCH 470/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.2 (#2421) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8483004c2..6aefc2a92 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.1 + 2.52.2 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4471a09ab..44475fbad 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.1 + 2.52.2 com.google.cloud.opentelemetry From 3e181e7c4469eadcf6f148ee0a30aae1cfa825f3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:22 +0200 Subject: [PATCH 471/656] deps: update dependency com.google.cloud:google-cloud-core to v2.55.0 (#2413) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6aefc2a92..01c8b5f8b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 44475fbad..2aa889bbd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4b5c90716..93fc738fd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests From 44fa990584f2b2cc880fe30b716efade6ab56720 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:30 +0200 Subject: [PATCH 472/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.3 (#2411) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 01c8b5f8b..7d952e592 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.3 From 7d198296bc4aea85006c101a7e3c5a2385c0380a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Sun, 11 May 2025 15:10:28 -0400 Subject: [PATCH 473/656] chore: Update generation configuration at Sun May 11 02:34:28 UTC 2025 (#2423) * chore: Update generation configuration at Thu May 8 02:33:47 UTC 2025 * chore: Update generation configuration at Fri May 9 02:33:27 UTC 2025 * chore: generate libraries at Fri May 9 02:33:55 UTC 2025 * chore: Update generation configuration at Sat May 10 02:31:30 UTC 2025 * chore: Update generation configuration at Sun May 11 02:34:28 UTC 2025 * chore: generate libraries at Sun May 11 02:34:56 UTC 2025 --- README.md | 4 ++-- generation_config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 236dd11f4..f57d6ce41 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.3 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.59.0') +implementation platform('com.google.cloud:libraries-bom:26.60.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 23a6cda88..21f7b6d3c 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.57.0 -googleapis_commitish: f84c6ceca37b57906efcb606527a40d4585ba860 -libraries_bom_version: 26.59.0 +googleapis_commitish: 4e9e9d240fbf2471f135caa3a416b231f9070962 +libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 53b224e9b6b01c8bb7cc1f960b94e7914b9cc0fc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 May 2025 21:12:57 +0200 Subject: [PATCH 474/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.60.0 (#2425) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 93fc738fd..1da41eead 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.59.0 + 26.60.0 pom import From 3713edb9420f792b7c7ad4e430ca05b5942656ff Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 15 May 2025 10:47:22 -0400 Subject: [PATCH 475/656] chore: Update generation configuration at Thu May 15 02:33:12 UTC 2025 (#2426) * chore: Update generation configuration at Tue May 13 02:33:49 UTC 2025 * chore: generate libraries at Tue May 13 02:34:16 UTC 2025 * chore: Update generation configuration at Wed May 14 02:33:21 UTC 2025 * chore: Update generation configuration at Thu May 15 02:33:12 UTC 2025 * chore: generate libraries at Thu May 15 02:33:38 UTC 2025 --- .github/workflows/hermetic_library_generation.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- generation_config.yaml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index f0b1369c8..336ac2c8c 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.57.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.58.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5..d72ed3f0e 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb2..f2e296b84 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7e..68512fbff 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index f57d6ce41..5687de39e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.59.0 + 26.60.0 pom import diff --git a/generation_config.yaml b/generation_config.yaml index 21f7b6d3c..93466f8b5 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.57.0 -googleapis_commitish: 4e9e9d240fbf2471f135caa3a416b231f9070962 +gapic_generator_version: 2.58.0 +googleapis_commitish: f319bbc88abd22cd8c39c349e776cf3dc2722214 libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub From b2a3e35ced2d1715c37207f98740889635326dc1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 16:47:28 +0200 Subject: [PATCH 476/656] deps: update dependency com.google.cloud:google-cloud-core to v2.56.0 (#2427) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7d952e592..aeec27fea 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2aa889bbd..e63971b62 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1da41eead..1db0d6cb2 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests From f35de28396fda595e6ea68c1755a4253d6b097d6 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Thu, 15 May 2025 10:48:33 -0400 Subject: [PATCH 477/656] docs(sample): Add samples for topic and subscription SMTs (#2388) * docs(sample): Add samples for topic and subscription SMTs * docs(sample): Add samples for topic and subscription SMTs * Fix missing paren * Formatting fixes --- .../CreateSubscriptionWithSmtExample.java | 74 +++++++++++++++++++ .../pubsub/CreateTopicWithSmtExample.java | 72 ++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 24 ++++++ 3 files changed, 170 insertions(+) create mode 100644 samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java create mode 100644 samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java diff --git a/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java b/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java new file mode 100644 index 000000000..38ded51ba --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java @@ -0,0 +1,74 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_subscription_with_smt] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.JavaScriptUDF; +import com.google.pubsub.v1.MessageTransform; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateSubscriptionWithSmtExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + + createSubscriptionWithSmtExample(projectId, topicId, subscriptionId); + } + + public static void createSubscriptionWithSmtExample( + String projectId, String topicId, String subscriptionId) throws IOException { + + // UDF that removes the 'ssn' field, if present + String code = + "function redactSSN(message, metadata) {" + + " const data = JSON.parse(message.data);" + + " delete data['ssn'];" + + " message.data = JSON.stringify(data);" + + " return message;" + + "}"; + String functionName = "redactSSN"; + + JavaScriptUDF udf = + JavaScriptUDF.newBuilder().setCode(code).setFunctionName(functionName).build(); + MessageTransform transform = MessageTransform.newBuilder().setJavascriptUdf(udf).build(); + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + // Add the UDF message transform + .addMessageTransforms(transform) + .build()); + + System.out.println("Created subscription with SMT: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_subscription_with_smt] \ No newline at end of file diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java new file mode 100644 index 000000000..e784e135a --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_smt] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.JavaScriptUDF; +import com.google.pubsub.v1.MessageTransform; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithSmtExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + createTopicWithSmtExample(projectId, topicId); + } + + public static void createTopicWithSmtExample(String projectId, String topicId) + throws IOException { + TopicName topicName = TopicName.of(projectId, topicId); + + // UDF that removes the 'ssn' field, if present + String code = + "function redactSSN(message, metadata) {" + + " const data = JSON.parse(message.data);" + + " delete data['ssn'];" + + " message.data = JSON.stringify(data);" + + " return message;" + + "}"; + String functionName = "redactSSN"; + + JavaScriptUDF udf = + JavaScriptUDF.newBuilder().setCode(code).setFunctionName(functionName).build(); + MessageTransform transform = MessageTransform.newBuilder().setJavascriptUdf(udf).build(); + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + // Add the UDF message transform + .addMessageTransforms(transform) + .build()); + + System.out.println("Created topic with SMT: " + topic.getName()); + } catch (AlreadyExistsException e) { + System.out.println(topicName + "already exists."); + } + } +} + // [END pubsub_create_topic_with_smt] \ No newline at end of file diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index accec5126..caefdcb08 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -60,10 +60,12 @@ public class AdminIT { "confluent-cloud-ingestion-topic-" + _suffix; private static final String azureEventHubsIngestionTopicId = "azure-event-hubs-ingestion-topic-" + _suffix; + private static final String smtTopicId = "smt-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; private static final String filteredSubscriptionId = "iam-filtered-subscription-" + _suffix; + private static final String smtSubscriptionId = "smt-subscription-" + _suffix; private static final String exactlyOnceSubscriptionId = "iam-exactly-once-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; @@ -118,6 +120,8 @@ public class AdminIT { TopicName.of(projectId, confluentCloudIngestionTopicId); private static final TopicName azureEventHubsIngestionTopicName = TopicName.of(projectId, azureEventHubsIngestionTopicId); + private static final TopicName smtTopicName = + TopicName.of(projectId, smtTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -128,6 +132,8 @@ public class AdminIT { SubscriptionName.of(projectId, filteredSubscriptionId); private static final SubscriptionName exactlyOnceSubscriptionName = SubscriptionName.of(projectId, exactlyOnceSubscriptionId); + private static final SubscriptionName smtSubscriptionName = + SubscriptionName.of(projectId, smtSubscriptionId); private static void requireEnvVar(String varName) { assertNotNull( @@ -456,5 +462,23 @@ public void testAdmin() throws Exception { // Test delete Azure Event Hubs ingestion topic. DeleteTopicExample.deleteTopicExample(projectId, azureEventHubsIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with an SMT. + CreateTopicWithSmtExample.createTopicWithSmtExample( + projectId, smtTopicId); + assertThat(bout.toString()) + .contains("Created topic with SMT: " + smtTopicName.toString()); + + bout.reset(); + // Test create topic with an SMT. + CreateSubscriptionWithSmtExample.createSubscriptionWithSmtExample( + projectId, smtTopicId, smtSubscriptionId); + assertThat(bout.toString()) + .contains("Created subscription with SMT"); + assertThat(bout.toString()).contains(smtSubscriptionName.toString()); + assertThat(bout.toString()).contains("redactSSN"); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, smtSubscriptionId); + DeleteTopicExample.deleteTopicExample(projectId, smtTopicId); } } From 06768cd1ac86ae7ae7b91b020cc174b4423e1b9a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 16:48:55 +0200 Subject: [PATCH 478/656] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.34.0 (#2376) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index aeec27fea..b73774790 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e63971b62..b72918687 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1db0d6cb2..c5877a62e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 org.apache.avro From cfa91fa0e85f3f1e517627da3e5befcd46f0803a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 21:35:25 +0200 Subject: [PATCH 479/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.48.0 (#2428) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 006d4eecb..704e61807 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.47.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.48.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 5ae411b79..1e7d1643f 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.47.0 + 3.48.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 2a8f7a47e..b6ab84c29 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.47.0 + 3.48.0 From 073f94e11099bd70555157366a27b7d743be953b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 May 2025 11:09:11 -0400 Subject: [PATCH 480/656] chore(main): release 1.139.4 (#2419) * chore(main): release 1.139.4 * chore: generate libraries at Thu May 15 19:36:21 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 24 +++++++++++++++++++ README.md | 8 ++++--- google-cloud-pubsub-bom/pom.xml | 8 +++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 +++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- .../CreateSubscriptionWithSmtExample.java | 2 +- .../pubsub/CreateTopicWithSmtExample.java | 2 +- .../src/test/java/pubsub/AdminIT.java | 12 ++++------ versions.txt | 6 ++--- 12 files changed, 53 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b977b05..6657c1065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.139.4](https://github.com/googleapis/java-pubsub/compare/v1.139.3...v1.139.4) (2025-05-15) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.57.0 ([017eb0f](https://github.com/googleapis/java-pubsub/commit/017eb0f78423fde3edd42a07677df49512085633)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.58.0 ([3713edb](https://github.com/googleapis/java-pubsub/commit/3713edb9420f792b7c7ad4e430ca05b5942656ff)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.50.0 ([#2422](https://github.com/googleapis/java-pubsub/issues/2422)) ([993b2d0](https://github.com/googleapis/java-pubsub/commit/993b2d06ce6b45bb72faa9d6959cddc14a9cf60e)) +* Update dependency com.google.cloud:google-cloud-core to v2.55.0 ([#2413](https://github.com/googleapis/java-pubsub/issues/2413)) ([3e181e7](https://github.com/googleapis/java-pubsub/commit/3e181e7c4469eadcf6f148ee0a30aae1cfa825f3)) +* Update dependency com.google.cloud:google-cloud-core to v2.56.0 ([#2427](https://github.com/googleapis/java-pubsub/issues/2427)) ([b2a3e35](https://github.com/googleapis/java-pubsub/commit/b2a3e35ced2d1715c37207f98740889635326dc1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.2 ([#2421](https://github.com/googleapis/java-pubsub/issues/2421)) ([1224ee5](https://github.com/googleapis/java-pubsub/commit/1224ee51da27e447560076b0d51ba90515566bd9)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#2418](https://github.com/googleapis/java-pubsub/issues/2418)) ([5f87661](https://github.com/googleapis/java-pubsub/commit/5f876612eb4a54faec3af2c9043aec0adf51e2ec)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.48.0 ([#2428](https://github.com/googleapis/java-pubsub/issues/2428)) ([cfa91fa](https://github.com/googleapis/java-pubsub/commit/cfa91fa0e85f3f1e517627da3e5befcd46f0803a)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.34.0 ([#2376](https://github.com/googleapis/java-pubsub/issues/2376)) ([06768cd](https://github.com/googleapis/java-pubsub/commit/06768cd1ac86ae7ae7b91b020cc174b4423e1b9a)) + + +### Documentation + +* **sample:** Add samples for topic and subscription SMTs ([#2388](https://github.com/googleapis/java-pubsub/issues/2388)) ([f35de28](https://github.com/googleapis/java-pubsub/commit/f35de28396fda595e6ea68c1755a4253d6b097d6)) + ## [1.139.3](https://github.com/googleapis/java-pubsub/compare/v1.139.2...v1.139.3) (2025-05-06) diff --git a/README.md b/README.md index 5687de39e..b266a65ef 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.4" ``` ## Authentication @@ -252,6 +252,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | +| Create Subscription With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | | Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | @@ -260,6 +261,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | +| Create Topic With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | | Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | | Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | | Delete Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | @@ -418,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 1e7d1643f..1edcb15cb 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.4-SNAPSHOT + 1.139.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 9dc3ec1c9..dd5fe6a55 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 9555436c0..c44258fb1 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/pom.xml b/pom.xml index b6ab84c29..92ec4902e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.4-SNAPSHOT + 1.139.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index d56dcc5c6..0586560ae 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b72918687..267ff17f2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java b/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java index 38ded51ba..53516c540 100644 --- a/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java @@ -71,4 +71,4 @@ public static void createSubscriptionWithSmtExample( } } } -// [END pubsub_create_subscription_with_smt] \ No newline at end of file +// [END pubsub_create_subscription_with_smt] diff --git a/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java b/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java index e784e135a..c96322015 100644 --- a/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java @@ -69,4 +69,4 @@ public static void createTopicWithSmtExample(String projectId, String topicId) } } } - // [END pubsub_create_topic_with_smt] \ No newline at end of file + // [END pubsub_create_topic_with_smt] diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index caefdcb08..60c85f340 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -120,8 +120,7 @@ public class AdminIT { TopicName.of(projectId, confluentCloudIngestionTopicId); private static final TopicName azureEventHubsIngestionTopicName = TopicName.of(projectId, azureEventHubsIngestionTopicId); - private static final TopicName smtTopicName = - TopicName.of(projectId, smtTopicId); + private static final TopicName smtTopicName = TopicName.of(projectId, smtTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -465,17 +464,14 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with an SMT. - CreateTopicWithSmtExample.createTopicWithSmtExample( - projectId, smtTopicId); - assertThat(bout.toString()) - .contains("Created topic with SMT: " + smtTopicName.toString()); + CreateTopicWithSmtExample.createTopicWithSmtExample(projectId, smtTopicId); + assertThat(bout.toString()).contains("Created topic with SMT: " + smtTopicName.toString()); bout.reset(); // Test create topic with an SMT. CreateSubscriptionWithSmtExample.createSubscriptionWithSmtExample( projectId, smtTopicId, smtSubscriptionId); - assertThat(bout.toString()) - .contains("Created subscription with SMT"); + assertThat(bout.toString()).contains("Created subscription with SMT"); assertThat(bout.toString()).contains(smtSubscriptionName.toString()); assertThat(bout.toString()).contains("redactSSN"); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, smtSubscriptionId); diff --git a/versions.txt b/versions.txt index 429229b08..891e99e9b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.3:1.139.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT +google-cloud-pubsub:1.139.4:1.139.4 +grpc-google-cloud-pubsub-v1:1.121.4:1.121.4 +proto-google-cloud-pubsub-v1:1.121.4:1.121.4 From 232fac1c47e0d3680dcc8d56b69d65ed0d379dde Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 16 May 2025 17:46:54 +0200 Subject: [PATCH 481/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.31.0 (#2430) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b73774790..2dc9b7d08 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 267ff17f2..21f0d23a7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c5877a62e..414e4c703 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 From b37c5573e1d0d7eada4ce4ec6a052521ea11cff1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:01 +0200 Subject: [PATCH 482/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 (#2435) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2dc9b7d08..892b13e3a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 21f0d23a7..3bbeee007 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud From 4f309d151d4bd584a33a0bb8882d0614a1b9d533 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:10 +0200 Subject: [PATCH 483/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.3 (#2436) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 892b13e3a..615922d94 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3bbeee007..ca7eae922 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry From 3132d52ec4f974c8c276a8e55b8085a90a759d8e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 May 2025 00:14:44 +0200 Subject: [PATCH 484/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.4 (#2434) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 615922d94..364fccb9c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 From 21cc3764aaa6fc05eb4a5078a72dae30694fba91 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 22 May 2025 09:56:54 -0400 Subject: [PATCH 485/656] chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 (#2432) * chore: Update generation configuration at Fri May 16 02:34:07 UTC 2025 * chore: generate libraries at Fri May 16 02:34:49 UTC 2025 * chore: Update generation configuration at Sat May 17 02:32:21 UTC 2025 * chore: Update generation configuration at Tue May 20 02:34:14 UTC 2025 * chore: Update generation configuration at Wed May 21 02:34:06 UTC 2025 * chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 * chore: generate libraries at Thu May 22 02:34:17 UTC 2025 --- README.md | 2 +- generation_config.yaml | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 +- .../reflect-config.json | 36 + .../com/google/pubsub/v1/SubscriberGrpc.java | 6 +- .../google/pubsub/v1/CloudStorageConfig.java | 24 +- .../v1/CloudStorageConfigOrBuilder.java | 6 +- .../google/pubsub/v1/DeadLetterPolicy.java | 8 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../pubsub/v1/IngestionFailureEvent.java | 6815 +++++++++++++---- .../v1/IngestionFailureEventOrBuilder.java | 44 + .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 375 +- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 4 +- .../pubsub/v1/StreamingPullRequest.java | 121 +- .../v1/StreamingPullRequestOrBuilder.java | 36 +- .../pubsub/v1/StreamingPullResponse.java | 314 +- .../com/google/pubsub/v1/Subscription.java | 56 +- .../pubsub/v1/SubscriptionOrBuilder.java | 14 +- .../main/proto/google/pubsub/v1/pubsub.proto | 90 +- 23 files changed, 6037 insertions(+), 1942 deletions(-) diff --git a/README.md b/README.md index b266a65ef..fe7b35eee 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 93466f8b5..4e87f268b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: f319bbc88abd22cd8c39c349e776cf3dc2722214 +googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index c18683cf6..61b93520f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -266,7 +266,7 @@ * *
* - * + * *
MethodsMethods
MethodDescriptionMethod Variants
CreateTopic

CreateTopic

Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTopic(Topic request) + *
  • createTopic(Topic request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createTopic(TopicName name) - *
  • createTopic(String name) + *
  • createTopic(TopicName name) + *

  • createTopic(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTopicCallable() + *
  • createTopicCallable() *

*
UpdateTopic

Updates an existing topic. Note that certain properties of a topic are not modifiable.

UpdateTopic

Updates an existing topic by updating the fields specified in the update mask. Note that certain properties of a topic are not modifiable.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTopic(UpdateTopicRequest request) + *
  • updateTopic(UpdateTopicRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateTopic(Topic topic, FieldMask updateMask) + *
  • updateTopic(Topic topic, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTopicCallable() + *
  • updateTopicCallable() *

*
Publish

Publish

Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • publish(PublishRequest request) + *
  • publish(PublishRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • publish(TopicName topic, List<PubsubMessage> messages) - *
  • publish(String topic, List<PubsubMessage> messages) + *
  • publish(TopicName topic, List<PubsubMessage> messages) + *

  • publish(String topic, List<PubsubMessage> messages) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • publishCallable() + *
  • publishCallable() *

*
GetTopic

GetTopic

Gets the configuration of a topic.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTopic(GetTopicRequest request) + *
  • getTopic(GetTopicRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTopic(TopicName topic) - *
  • getTopic(String topic) + *
  • getTopic(TopicName topic) + *

  • getTopic(String topic) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTopicCallable() + *
  • getTopicCallable() *

*
ListTopics

ListTopics

Lists matching topics.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTopics(ListTopicsRequest request) + *
  • listTopics(ListTopicsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTopics(ProjectName project) - *
  • listTopics(String project) + *
  • listTopics(ProjectName project) + *

  • listTopics(String project) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTopicsPagedCallable() - *
  • listTopicsCallable() + *
  • listTopicsPagedCallable() + *

  • listTopicsCallable() *

*
ListTopicSubscriptions

ListTopicSubscriptions

Lists the names of the attached subscriptions on this topic.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTopicSubscriptions(ListTopicSubscriptionsRequest request) + *
  • listTopicSubscriptions(ListTopicSubscriptionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTopicSubscriptions(TopicName topic) - *
  • listTopicSubscriptions(String topic) + *
  • listTopicSubscriptions(TopicName topic) + *

  • listTopicSubscriptions(String topic) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTopicSubscriptionsPagedCallable() - *
  • listTopicSubscriptionsCallable() + *
  • listTopicSubscriptionsPagedCallable() + *

  • listTopicSubscriptionsCallable() *

*
ListTopicSnapshots

ListTopicSnapshots

Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTopicSnapshots(ListTopicSnapshotsRequest request) + *
  • listTopicSnapshots(ListTopicSnapshotsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTopicSnapshots(TopicName topic) - *
  • listTopicSnapshots(String topic) + *
  • listTopicSnapshots(TopicName topic) + *

  • listTopicSnapshots(String topic) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTopicSnapshotsPagedCallable() - *
  • listTopicSnapshotsCallable() + *
  • listTopicSnapshotsPagedCallable() + *

  • listTopicSnapshotsCallable() *

*
DeleteTopic

DeleteTopic

Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTopic(DeleteTopicRequest request) + *
  • deleteTopic(DeleteTopicRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteTopic(TopicName topic) - *
  • deleteTopic(String topic) + *
  • deleteTopic(TopicName topic) + *

  • deleteTopic(String topic) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTopicCallable() + *
  • deleteTopicCallable() *

*
DetachSubscription

DetachSubscription

Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detachSubscription(DetachSubscriptionRequest request) + *
  • detachSubscription(DetachSubscriptionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detachSubscriptionCallable() + *
  • detachSubscriptionCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*

StreamingPull

Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgements and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to reassign server-side resources, in which case, the client should re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel.

Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgments and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to reassign server-side resources, in which case, the client should re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel.

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    @@ -2379,7 +2379,7 @@ public final UnaryCallable pullCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Establishes a stream with the server, which sends messages down to the client. The client - * streams acknowledgements and ack deadline modifications back to the server. The server will + * streams acknowledgments and ack deadline modifications back to the server. The server will * close the stream and return the status on any error. The server may close the stream with * status `UNAVAILABLE` to reassign server-side resources, in which case, the client should * re-establish the stream. Flow control can be achieved by configuring the underlying RPC diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 3c5de9478..f0c86a2e7 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2114,6 +2114,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason", "queryAllDeclaredConstructors": true, @@ -2195,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.JavaScriptUDF", "queryAllDeclaredConstructors": true, diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 531c82e20..2a8fc9299 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -891,7 +891,7 @@ default void pull( * *
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    @@ -1241,7 +1241,7 @@ public void pull(
          *
          * 
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    @@ -1564,7 +1564,7 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
          *
          * 
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    index 6d4d9bbfb..601c178e6 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    @@ -1834,7 +1834,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig
        * 
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1853,7 +1853,7 @@ public boolean hasMaxDuration() { *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1872,7 +1872,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3667,7 +3667,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3685,7 +3685,7 @@ public boolean hasMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3709,7 +3709,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3735,7 +3735,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3758,7 +3758,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3789,7 +3789,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3812,7 +3812,7 @@ public Builder clearMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3830,7 +3830,7 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3852,7 +3852,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index b4977dc74..d3bbad242 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -242,7 +242,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -258,7 +258,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -274,7 +274,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 51009677c..eb42e4602 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -695,7 +695,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -723,7 +723,7 @@ public int getMaxDeliveryAttempts() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -755,7 +755,7 @@ public Builder setMaxDeliveryAttempts(int value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index e5f13f3db..29f9d6536 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -74,7 +74,7 @@ public interface DeadLetterPolicyOrBuilder * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 206b6d9e9..b423b901d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -945,122 +945,2819 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface SchemaViolationReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Set when a Pub/Sub message fails to get published due to a schema
    +   * validation violation.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class SchemaViolationReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + SchemaViolationReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SchemaViolationReason.newBuilder() to construct. + private SchemaViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SchemaViolationReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaViolationReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other = + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason 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.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason 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.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + 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.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason 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.pubsub.v1.IngestionFailureEvent.SchemaViolationReason 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; + } + + /** + * + * + *
    +     * Set when a Pub/Sub message fails to get published due to a schema
    +     * validation violation.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason build() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = + new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaViolationReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CloudStorageFailureOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + long getObjectGeneration(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + boolean hasAvroFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + } + + /** + * + * + *
    +   * Failure when ingesting from a Cloud Storage source.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + CloudStorageFailureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudStorageFailure.newBuilder() to construct. + private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageFailure() { + bucket_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_FAILURE_REASON(5), + API_VIOLATION_REASON(6), + SCHEMA_VIOLATION_REASON(7), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return AVRO_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; + case 7: + return SCHEMA_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; + private long objectGeneration_ = 0L; + + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + if (objectGeneration_ != 0L) { + output.writeInt64(3, objectGeneration_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + if (objectGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 7: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getAvroFailureReason().hashCode(); + break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 7: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure 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; + } + + /** + * + * + *
    +     * Failure when ingesting from a Cloud Storage source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + objectName_ = ""; + objectGeneration_ = 0L; + if (avroFailureReasonBuilder_ != null) { + avroFailureReasonBuilder_.clear(); + } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = + new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectName_ = objectName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.objectGeneration_ = objectGeneration_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { + result.reason_ = avroFailureReasonBuilder_.build(); + } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + if (reasonCase_ == 7 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } + } + + @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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getObjectGeneration() != 0L) { + setObjectGeneration(other.getObjectGeneration()); + } + switch (other.getReasonCase()) { + case AVRO_FAILURE_REASON: + { + mergeAvroFailureReason(other.getAvroFailureReason()); + break; + } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + objectGeneration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long objectGeneration_; + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectGeneration to set. + * @return This builder for chaining. + */ + public Builder setObjectGeneration(long value) { + + objectGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + objectGeneration_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + avroFailureReasonBuilder_; + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return avroFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { + if (avroFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + avroFailureReasonBuilder_.mergeFrom(value); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + avroFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder + getAvroFailureReasonBuilder() { + return getAvroFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { + return avroFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + getAvroFailureReasonFieldBuilder() { + if (avroFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + avroFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return avroFailureReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 7) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + schemaViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return schemaViolationReasonBuilder_; + } + + @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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AwsMskFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - java.lang.String getBucket(); + java.lang.String getClusterArn(); /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString getClusterArnBytes(); /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - java.lang.String getObjectName(); + java.lang.String getKafkaTopic(); /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getObjectNameBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * * *
    -     * Optional. Generation of the Cloud Storage object which contained the
    -     * section that couldn't be ingested.
    +     * Optional. The partition ID of the message that failed to be ingested.
          * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ - long getObjectGeneration(); + long getPartitionId(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
          * 
    * - * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the avroFailureReason field is set. + * @return The offset. */ - boolean hasAvroFailureReason(); + long getOffset(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return Whether the apiViolationReason field is set. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + boolean hasApiViolationReason(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The apiViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); /** * @@ -1071,91 +3768,103 @@ public interface CloudStorageFailureOrBuilder *
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** * - * @return Whether the apiViolationReason field is set. + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } /** * * *
    -   * Failure when ingesting from a Cloud Storage source.
    +   * Failure when ingesting from an Amazon MSK source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use CloudStorageFailure.newBuilder() to construct. - private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsMskFailureReason.newBuilder() to construct. + private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudStorageFailure() { - bucket_ = ""; - objectName_ = ""; + private AwsMskFailureReason() { + clusterArn_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorageFailure(); + return new AwsMskFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -1167,8 +3876,8 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AVRO_FAILURE_REASON(5), - API_VIOLATION_REASON(6), + API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -1189,9 +3898,9 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { case 5: - return AVRO_FAILURE_REASON; - case 6: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -1208,31 +3917,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int BUCKET_FIELD_NUMBER = 1; + public static final int CLUSTER_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object bucket_ = ""; + private volatile java.lang.Object clusterArn_ = ""; /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ @java.lang.Override - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } } @@ -1241,52 +3950,51 @@ public java.lang.String getBucket() { * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_NAME_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object objectName_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } } @@ -1295,64 +4003,83 @@ public java.lang.String getObjectName() { * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; - private long objectGeneration_ = 0L; + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; /** * * *
    -     * Optional. Generation of the Cloud Storage object which contained the
    -     * section that couldn't be ingested.
    +     * Optional. The partition ID of the message that failed to be ingested.
          * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getPartitionId() { + return partitionId_; } - public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -1360,61 +4087,62 @@ public boolean hasAvroFailureReason() { * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -1422,43 +4150,42 @@ public boolean hasApiViolationReason() { * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1475,22 +4202,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - output.writeInt64(3, objectGeneration_); + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { output.writeMessage( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -1501,24 +4231,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); } if (reasonCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1530,22 +4263,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObjectName().equals(other.getObjectName())) return false; - if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { case 5: - if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; case 6: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -1561,21 +4295,23 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getBucket().hashCode(); - hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getObjectName().hashCode(); - hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); switch (reasonCase_) { case 5: - hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getAvroFailureReason().hashCode(); - break; - case 6: hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -1584,71 +4320,71 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason 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.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1666,7 +4402,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1686,32 +4422,32 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from a Cloud Storage source.
    +     * Failure when ingesting from an Amazon MSK source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -1720,17 +4456,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { - super.clear(); - bitField0_ = 0; - bucket_ = ""; - objectName_ = ""; - objectGeneration_ = 0L; - if (avroFailureReasonBuilder_ != null) { - avroFailureReasonBuilder_.clear(); - } + super.clear(); + bitField0_ = 0; + clusterArn_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -1739,18 +4476,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1758,9 +4495,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = - new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -1770,29 +4507,32 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucket_; + result.clusterArn_ = clusterArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectName_ = objectName_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectGeneration_ = objectGeneration_; + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { - result.reason_ = avroFailureReasonBuilder_.build(); - } - if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -1832,8 +4572,8 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); } else { super.mergeFrom(other); return this; @@ -1841,32 +4581,35 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) return this; - if (!other.getBucket().isEmpty()) { - bucket_ = other.bucket_; + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getObjectName().isEmpty()) { - objectName_ = other.objectName_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getObjectGeneration() != 0L) { - setObjectGeneration(other.getObjectGeneration()); + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); } switch (other.getReasonCase()) { - case AVRO_FAILURE_REASON: + case API_VIOLATION_REASON: { - mergeAvroFailureReason(other.getAvroFailureReason()); + mergeApiViolationReason(other.getApiViolationReason()); break; } - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -1902,33 +4645,39 @@ public Builder mergeFrom( break; case 10: { - bucket_ = input.readStringRequireUtf8(); + clusterArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - objectName_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { - objectGeneration_ = input.readInt64(); + partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 case 42: { input.readMessage( - getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 6; break; } // case 50 @@ -1965,25 +4714,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object bucket_ = ""; + private java.lang.Object clusterArn_ = ""; /** * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } else { return (java.lang.String) ref; @@ -1994,19 +4743,19 @@ public java.lang.String getBucket() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2017,19 +4766,19 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bucket to set. + * @param value The clusterArn to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { + public Builder setClusterArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -2039,15 +4788,15 @@ public Builder setBucket(java.lang.String value) { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearBucket() { - bucket_ = getDefaultInstance().getBucket(); + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -2057,45 +4806,44 @@ public Builder clearBucket() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for bucket to set. + * @param value The bytes for clusterArn to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object objectName_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -2106,20 +4854,19 @@ public java.lang.String getObjectName() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2130,20 +4877,19 @@ public com.google.protobuf.ByteString getObjectNameBytes() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectName to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectName(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -2153,16 +4899,15 @@ public Builder setObjectName(java.lang.String value) { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectName() { - objectName_ = getDefaultInstance().getObjectName(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -2172,62 +4917,117 @@ public Builder clearObjectName() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for objectName to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long objectGeneration_; + private long partitionId_; + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; /** * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The offset. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getOffset() { + return offset_; } /** * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectGeneration to set. + * @param value The offset to set. * @return This builder for chaining. */ - public Builder setObjectGeneration(long value) { + public Builder setOffset(long value) { - objectGeneration_ = value; - bitField0_ |= 0x00000004; + offset_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2236,42 +5036,43 @@ public Builder setObjectGeneration(long value) { * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectGeneration() { - bitField0_ = (bitField0_ & ~0x00000004); - objectGeneration_ = 0L; + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - avroFailureReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; /** * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -2279,27 +5080,28 @@ public boolean hasAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } else { if (reasonCase_ == 5) { - return avroFailureReasonBuilder_.getMessage(); + return apiViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2307,23 +5109,24 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } reasonCase_ = 5; return this; @@ -2333,20 +5136,21 @@ public Builder setAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - avroFailureReasonBuilder_.setMessage(builderForValue.build()); + apiViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 5; return this; @@ -2356,23 +5160,24 @@ public Builder setAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2381,9 +5186,9 @@ public Builder mergeAvroFailureReason( onChanged(); } else { if (reasonCase_ == 5) { - avroFailureReasonBuilder_.mergeFrom(value); + apiViolationReasonBuilder_.mergeFrom(value); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 5; @@ -2394,15 +5199,16 @@ public Builder mergeAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { reasonCase_ = 0; reason_ = null; @@ -2413,7 +5219,7 @@ public Builder clearAvroFailureReason() { reasonCase_ = 0; reason_ = null; } - avroFailureReasonBuilder_.clear(); + apiViolationReasonBuilder_.clear(); } return this; } @@ -2422,39 +5228,41 @@ public Builder clearAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder - getAvroFailureReasonBuilder() { - return getAvroFailureReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { - if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { - return avroFailureReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2462,60 +5270,60 @@ public Builder clearAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - getAvroFailureReasonFieldBuilder() { - if (avroFailureReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - avroFailureReasonBuilder_ = + apiViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 5; onChanged(); - return avroFailureReasonBuilder_; + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -2523,28 +5331,30 @@ public boolean hasApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { if (reasonCase_ == 6) { - return apiViolationReasonBuilder_.getMessage(); + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2552,24 +5362,23 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } reasonCase_ = 6; return this; @@ -2579,21 +5388,21 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 6; return this; @@ -2603,24 +5412,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2629,9 +5437,9 @@ public Builder mergeApiViolationReason( onChanged(); } else { if (reasonCase_ == 6) { - apiViolationReasonBuilder_.mergeFrom(value); + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 6; @@ -2642,16 +5450,15 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; @@ -2662,7 +5469,7 @@ public Builder clearApiViolationReason() { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -2671,41 +5478,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
    + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2713,37 +5519,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -2758,26 +5564,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CloudStorageFailure parsePartialFrom( + public AwsMskFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2797,78 +5603,78 @@ public CloudStorageFailure parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AwsMskFailureReasonOrBuilder + public interface AzureEventHubsFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - java.lang.String getClusterArn(); + java.lang.String getNamespace(); /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - com.google.protobuf.ByteString getClusterArnBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - java.lang.String getKafkaTopic(); + java.lang.String getEventHub(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getEventHubBytes(); /** * @@ -2944,53 +5750,99 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + getReasonCase(); } /** * * *
    -   * Failure when ingesting from an Amazon MSK source.
    +   * Failure when ingesting from an Azure Event Hubs source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ - public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AzureEventHubsFailureReason + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AwsMskFailureReason.newBuilder() to construct. - private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AzureEventHubsFailureReason.newBuilder() to construct. + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AwsMskFailureReason() { - clusterArn_ = ""; - kafkaTopic_ = ""; + private AzureEventHubsFailureReason() { + namespace_ = ""; + eventHub_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsMskFailureReason(); + return new AzureEventHubsFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -3003,6 +5855,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -3024,6 +5877,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -3040,31 +5895,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ARN_FIELD_NUMBER = 1; + public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterArn_ = ""; + private volatile java.lang.Object namespace_ = ""; /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ @java.lang.Override - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } } @@ -3073,51 +5928,51 @@ public java.lang.String getClusterArn() { * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int EVENT_HUB_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object eventHub_ = ""; /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } } @@ -3126,20 +5981,20 @@ public java.lang.String getKafkaTopic() { * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3249,6 +6104,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3263,11 +6180,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -3277,7 +6194,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -3288,11 +6209,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -3305,6 +6226,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3315,14 +6241,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; - if (!getClusterArn().equals(other.getClusterArn())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -3330,6 +6257,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -3344,10 +6274,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; - hash = (53 * hash) + getClusterArn().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -3357,6 +6287,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -3365,71 +6299,72 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + 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.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3447,7 +6382,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3467,32 +6402,34 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from an Amazon MSK source.
    +     * Failure when ingesting from an Azure Event Hubs source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + .class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -3503,13 +6440,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - clusterArn_ = ""; - kafkaTopic_ = ""; + namespace_ = ""; + eventHub_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -3518,18 +6458,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3537,9 +6479,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3549,13 +6491,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterArn_ = clusterArn_; + result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.eventHub_ = eventHub_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -3566,12 +6508,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -3611,8 +6556,10 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); + if (other + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); } else { super.mergeFrom(other); return this; @@ -3620,17 +6567,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) - return this; - if (!other.getClusterArn().isEmpty()) { - clusterArn_ = other.clusterArn_; + == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; bitField0_ |= 0x00000002; onChanged(); } @@ -3646,6 +6593,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -3679,13 +6631,13 @@ public Builder mergeFrom( break; case 10: { - clusterArn_ = input.readStringRequireUtf8(); + namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + eventHub_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -3708,6 +6660,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3741,25 +6700,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterArn_ = ""; + private java.lang.Object namespace_ = ""; /** * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } else { return (java.lang.String) ref; @@ -3770,19 +6729,19 @@ public java.lang.String getClusterArn() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3793,19 +6752,19 @@ public com.google.protobuf.ByteString getClusterArnBytes() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterArn to set. + * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setClusterArn(java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3815,15 +6774,15 @@ public Builder setClusterArn(java.lang.String value) { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterArn() { - clusterArn_ = getDefaultInstance().getClusterArn(); + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -3833,44 +6792,44 @@ public Builder clearClusterArn() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterArn to set. + * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object eventHub_ = ""; /** * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } else { return (java.lang.String) ref; @@ -3881,19 +6840,19 @@ public java.lang.String getKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3904,19 +6863,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setEventHub(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -3926,15 +6885,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -3944,20 +6903,20 @@ public Builder clearKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -4075,60 +7034,313 @@ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0L; onChanged(); - return this; + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4136,26 +7348,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4163,23 +7374,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4187,24 +7398,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -4212,13 +7422,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4226,27 +7436,26 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -4255,41 +7464,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4297,37 +7505,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -4342,26 +7550,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AwsMskFailureReason parsePartialFrom( + public AzureEventHubsFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4381,78 +7590,78 @@ public AwsMskFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AzureEventHubsFailureReasonOrBuilder + public interface ConfluentCloudFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - java.lang.String getNamespace(); + java.lang.String getClusterId(); /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString getClusterIdBytes(); /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - java.lang.String getEventHub(); + java.lang.String getKafkaTopic(); /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getEventHubBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * @@ -4528,7 +7737,51 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } @@ -4536,47 +7789,47 @@ public interface AzureEventHubsFailureReasonOrBuilder * * *
    -   * Failure when ingesting from an Azure Event Hubs source.
    +   * Failure when ingesting from a Confluent Cloud source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ - public static final class AzureEventHubsFailureReason + public static final class ConfluentCloudFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AzureEventHubsFailureReason.newBuilder() to construct. - private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfluentCloudFailureReason.newBuilder() to construct. + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AzureEventHubsFailureReason() { - namespace_ = ""; - eventHub_ = ""; + private ConfluentCloudFailureReason() { + clusterId_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AzureEventHubsFailureReason(); + return new ConfluentCloudFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -4589,6 +7842,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -4610,6 +7864,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -4626,31 +7882,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int NAMESPACE_FIELD_NUMBER = 1; + public static final int CLUSTER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object namespace_ = ""; + private volatile java.lang.Object clusterId_ = ""; /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ @java.lang.Override - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } } @@ -4659,51 +7915,51 @@ public java.lang.String getNamespace() { * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EVENT_HUB_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object eventHub_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } } @@ -4712,20 +7968,20 @@ public java.lang.String getEventHub() { * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4835,6 +8091,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4849,11 +8167,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -4865,6 +8183,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } getUnknownFields().writeTo(output); } @@ -4874,11 +8196,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -4891,6 +8213,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4902,14 +8229,14 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getEventHub().equals(other.getEventHub())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -4917,6 +8244,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -4931,10 +8261,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; - hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -4944,6 +8274,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -4952,59 +8286,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason 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.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5012,12 +8346,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5035,7 +8369,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5055,34 +8389,34 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from an Azure Event Hubs source.
    +     * Failure when ingesting from a Confluent Cloud source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder .class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -5093,13 +8427,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - namespace_ = ""; - eventHub_ = ""; + clusterId_ = ""; + kafkaTopic_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -5108,19 +8445,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -5129,9 +8466,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5141,13 +8478,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.namespace_ = namespace_; + result.clusterId_ = clusterId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventHub_ = eventHub_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -5158,12 +8495,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -5204,9 +8544,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); } else { super.mergeFrom(other); return this; @@ -5214,17 +8554,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance()) return this; - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEventHub().isEmpty()) { - eventHub_ = other.eventHub_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } @@ -5240,6 +8580,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -5273,13 +8618,13 @@ public Builder mergeFrom( break; case 10: { - namespace_ = input.readStringRequireUtf8(); + clusterId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - eventHub_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -5302,6 +8647,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5335,25 +8687,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object namespace_ = ""; + private java.lang.Object clusterId_ = ""; /** * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } else { return (java.lang.String) ref; @@ -5364,19 +8716,19 @@ public java.lang.String getNamespace() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5387,19 +8739,19 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The namespace to set. + * @param value The clusterId to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setClusterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -5409,15 +8761,15 @@ public Builder setNamespace(java.lang.String value) { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -5427,44 +8779,44 @@ public Builder clearNamespace() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for namespace to set. + * @param value The bytes for clusterId to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object eventHub_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -5475,19 +8827,19 @@ public java.lang.String getEventHub() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5498,19 +8850,19 @@ public com.google.protobuf.ByteString getEventHubBytes() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The eventHub to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHub(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5520,15 +8872,15 @@ public Builder setEventHub(java.lang.String value) { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEventHub() { - eventHub_ = getDefaultInstance().getEventHub(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -5538,20 +8890,20 @@ public Builder clearEventHub() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for eventHub to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5907,21 +9259,270 @@ public Builder clearApiViolationReason() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -5936,27 +9537,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AzureEventHubsFailureReason parsePartialFrom( + public ConfluentCloudFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5976,202 +9577,197 @@ public AzureEventHubsFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ConfluentCloudFailureReasonOrBuilder + public interface AwsKinesisFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - java.lang.String getClusterId(); + java.lang.String getStreamArn(); /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - com.google.protobuf.ByteString getClusterIdBytes(); + com.google.protobuf.ByteString getStreamArnBytes(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - java.lang.String getKafkaTopic(); + java.lang.String getPartitionKey(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getPartitionKeyBytes(); /** * * *
    -     * Optional. The partition ID of the message that failed to be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - long getPartitionId(); + java.lang.String getSequenceNumber(); /** * * *
    -     * Optional. The offset within the partition of the message that failed to
    -     * be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ - long getOffset(); + com.google.protobuf.ByteString getSequenceNumberBytes(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase - getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } /** * * *
    -   * Failure when ingesting from a Confluent Cloud source.
    +   * Failure when ingesting from an AWS Kinesis source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ - public static final class ConfluentCloudFailureReason - extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsKinesisFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + AwsKinesisFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfluentCloudFailureReason.newBuilder() to construct. - private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsKinesisFailureReason.newBuilder() to construct. + private AwsKinesisFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfluentCloudFailureReason() { - clusterId_ = ""; - kafkaTopic_ = ""; + private AwsKinesisFailureReason() { + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfluentCloudFailureReason(); + return new AwsKinesisFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -6183,7 +9779,7 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(4), REASON_NOT_SET(0); private final int value; @@ -6203,8 +9799,8 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { - case 5: - return API_VIOLATION_REASON; + case 4: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -6221,31 +9817,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ID_FIELD_NUMBER = 1; + public static final int STREAM_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; + private volatile java.lang.Object streamArn_ = ""; /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } } @@ -6254,51 +9850,51 @@ public java.lang.String getClusterId() { * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int PARTITION_KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object partitionKey_ = ""; /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } } @@ -6307,127 +9903,139 @@ public java.lang.String getKafkaTopic() { * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PARTITION_ID_FIELD_NUMBER = 3; - private long partitionId_ = 0L; + public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sequenceNumber_ = ""; /** * * *
    -     * Optional. The partition ID of the message that failed to be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } } - public static final int OFFSET_FIELD_NUMBER = 4; - private long offset_ = 0L; - /** * * *
    -     * Optional. The offset within the partition of the message that failed to
    -     * be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ @java.lang.Override - public long getOffset() { - return offset_; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 4; /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -6444,21 +10052,18 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamArn_); } - if (partitionId_ != 0L) { - output.writeInt64(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionKey_); } - if (offset_ != 0L) { - output.writeInt64(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -6469,22 +10074,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); - } - if (partitionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionKey_); } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6496,21 +10098,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) obj; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; - if (getPartitionId() != other.getPartitionId()) return false; - if (getOffset() != other.getOffset()) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getPartitionKey().equals(other.getPartitionKey())) return false; + if (!getSequenceNumber().equals(other.getSequenceNumber())) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { - case 5: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + case 4: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -6526,18 +10126,16 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); - hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + STREAM_ARN_FIELD_NUMBER; + hash = (53 * hash) + getStreamArn().hashCode(); + hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPartitionKey().hashCode(); + hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSequenceNumber().hashCode(); switch (reasonCase_) { - case 5: - hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; - hash = (53 * hash) + getApiViolationReason().hashCode(); + case 4: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; case 0: default: @@ -6547,59 +10145,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason 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.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6607,12 +10205,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6630,7 +10228,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6650,34 +10248,33 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from a Confluent Cloud source.
    +     * Failure when ingesting from an AWS Kinesis source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder - .class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -6685,15 +10282,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterId_ = ""; - kafkaTopic_ = ""; - partitionId_ = 0L; - offset_ = 0L; - if (apiViolationReasonBuilder_ != null) { - apiViolationReasonBuilder_.clear(); + public Builder clear() { + super.clear(); + bitField0_ = 0; + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); } reasonCase_ = 0; reason_ = null; @@ -6703,20 +10299,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6724,9 +10319,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -6736,28 +10331,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterId_ = clusterId_; + result.streamArn_ = streamArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.partitionKey_ = partitionKey_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.partitionId_ = partitionId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.offset_ = offset_; + result.sequenceNumber_ = sequenceNumber_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { - result.reason_ = apiViolationReasonBuilder_.build(); + if (reasonCase_ == 4 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); } } @@ -6798,10 +10390,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) other); } else { super.mergeFrom(other); return this; @@ -6809,30 +10400,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance()) return this; - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; + if (!other.getStreamArn().isEmpty()) { + streamArn_ = other.streamArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getPartitionKey().isEmpty()) { + partitionKey_ = other.partitionKey_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getPartitionId() != 0L) { - setPartitionId(other.getPartitionId()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); + if (!other.getSequenceNumber().isEmpty()) { + sequenceNumber_ = other.sequenceNumber_; + bitField0_ |= 0x00000004; + onChanged(); } switch (other.getReasonCase()) { - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -6868,35 +10458,29 @@ public Builder mergeFrom( break; case 10: { - clusterId_ = input.readStringRequireUtf8(); + streamArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + partitionKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 24: + case 26: { - partitionId_ = input.readInt64(); + sequenceNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: + } // case 26 + case 34: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); - reasonCase_ = 5; + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 4; break; - } // case 42 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6930,25 +10514,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterId_ = ""; + private java.lang.Object streamArn_ = ""; /** * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } else { return (java.lang.String) ref; @@ -6959,19 +10543,19 @@ public java.lang.String getClusterId() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6982,19 +10566,19 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterId to set. + * @param value The streamArn to set. * @return This builder for chaining. */ - public Builder setClusterId(java.lang.String value) { + public Builder setStreamArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -7004,15 +10588,15 @@ public Builder setClusterId(java.lang.String value) { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); + public Builder clearStreamArn() { + streamArn_ = getDefaultInstance().getStreamArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -7022,44 +10606,44 @@ public Builder clearClusterId() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterId to set. + * @param value The bytes for streamArn to set. * @return This builder for chaining. */ - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object partitionKey_ = ""; /** * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } else { return (java.lang.String) ref; @@ -7070,19 +10654,19 @@ public java.lang.String getKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7093,19 +10677,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setPartitionKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -7115,15 +10699,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearPartitionKey() { + partitionKey_ = getDefaultInstance().getPartitionKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -7133,117 +10717,109 @@ public Builder clearKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPartitionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long partitionId_; + private java.lang.Object sequenceNumber_ = ""; /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The partitionId to set. - * @return This builder for chaining. + * @return The bytes for sequenceNumber. */ - public Builder setPartitionId(long value) { - - partitionId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearPartitionId() { - bitField0_ = (bitField0_ & ~0x00000004); - partitionId_ = 0L; + public Builder setSequenceNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private long offset_; - - /** - * - * - *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    -       * 
    - * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** * * *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The offset to set. * @return This builder for chaining. */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000008; + public Builder clearSequenceNumber() { + sequenceNumber_ = getDefaultInstance().getSequenceNumber(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -7252,72 +10828,77 @@ public Builder setOffset(long value) { * * *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - offset_ = 0L; + public Builder setSequenceNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 4) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7325,26 +10906,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7352,23 +10932,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7376,24 +10956,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -7401,13 +10980,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 4) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7415,27 +10994,26 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -7444,41 +11022,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 4) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7486,37 +11063,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 4)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 4; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -7531,27 +11108,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfluentCloudFailureReason parsePartialFrom( + public AwsKinesisFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7571,17 +11147,17 @@ public ConfluentCloudFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -7600,6 +11176,7 @@ public enum FailureCase AWS_MSK_FAILURE(4), AZURE_EVENT_HUBS_FAILURE(5), CONFLUENT_CLOUD_FAILURE(6), + AWS_KINESIS_FAILURE(7), FAILURE_NOT_SET(0); private final int value; @@ -7627,6 +11204,8 @@ public static FailureCase forNumber(int value) { return AZURE_EVENT_HUBS_FAILURE; case 6: return CONFLUENT_CLOUD_FAILURE; + case 7: + return AWS_KINESIS_FAILURE; case 0: return FAILURE_NOT_SET; default: @@ -8001,6 +11580,67 @@ public boolean hasConfluentCloudFailure() { .getDefaultInstance(); } + public static final int AWS_KINESIS_FAILURE_FIELD_NUMBER = 7; + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8037,6 +11677,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } getUnknownFields().writeTo(output); } @@ -8072,6 +11716,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8104,6 +11753,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getConfluentCloudFailure().equals(other.getConfluentCloudFailure())) return false; break; + case 7: + if (!getAwsKinesisFailure().equals(other.getAwsKinesisFailure())) return false; + break; case 0: default: } @@ -8139,6 +11791,10 @@ public int hashCode() { hash = (37 * hash) + CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER; hash = (53 * hash) + getConfluentCloudFailure().hashCode(); break; + case 7: + hash = (37 * hash) + AWS_KINESIS_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAwsKinesisFailure().hashCode(); + break; case 0: default: } @@ -8297,6 +11953,9 @@ public Builder clear() { if (confluentCloudFailureBuilder_ != null) { confluentCloudFailureBuilder_.clear(); } + if (awsKinesisFailureBuilder_ != null) { + awsKinesisFailureBuilder_.clear(); + } failureCase_ = 0; failure_ = null; return this; @@ -8359,6 +12018,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent resul if (failureCase_ == 6 && confluentCloudFailureBuilder_ != null) { result.failure_ = confluentCloudFailureBuilder_.build(); } + if (failureCase_ == 7 && awsKinesisFailureBuilder_ != null) { + result.failure_ = awsKinesisFailureBuilder_.build(); + } } @java.lang.Override @@ -8437,6 +12099,11 @@ public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { mergeConfluentCloudFailure(other.getConfluentCloudFailure()); break; } + case AWS_KINESIS_FAILURE: + { + mergeAwsKinesisFailure(other.getAwsKinesisFailure()); + break; + } case FAILURE_NOT_SET: { break; @@ -8507,6 +12174,13 @@ public Builder mergeFrom( failureCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getAwsKinesisFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9753,6 +13427,255 @@ public Builder clearConfluentCloudFailure() { return confluentCloudFailureBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + awsKinesisFailureBuilder_; + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + getAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } else { + if (failureCase_ == 7) { + return awsKinesisFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + builderForValue) { + if (awsKinesisFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(builderForValue.build()); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 7) { + awsKinesisFailureBuilder_.mergeFrom(value); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + } + awsKinesisFailureBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + getAwsKinesisFailureBuilder() { + return getAwsKinesisFailureFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if ((failureCase_ == 7) && (awsKinesisFailureBuilder_ != null)) { + return awsKinesisFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + getAwsKinesisFailureFieldBuilder() { + if (awsKinesisFailureBuilder_ == null) { + if (!(failureCase_ == 7)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + awsKinesisFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 7; + onChanged(); + return awsKinesisFailureBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 9fc268820..762da6810 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -254,5 +254,49 @@ public interface IngestionFailureEventOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder getConfluentCloudFailureOrBuilder(); + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + boolean hasAwsKinesisFailure(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index ff57a28b7..8d94f89b2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 8970aabb5..aa3c6fd14 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 22c1a66bb..deae19db6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -486,7 +494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\211\014\n" + + "\005ERROR\020\005\"\203\022\n" + "\025IngestionFailureEvent\022\022\n" + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" @@ -497,49 +505,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + "\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\032\024\n" + + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\0132?.google.pubsub.v1.Inge" + + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" - + "\021AvroFailureReason\032\256\002\n" + + "\021AvroFailureReason\032\027\n" + + "\025SchemaViolationReason\032\225\003\n" + "\023CloudStorageFailure\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005 \001" - + "(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\344\001\n" + + "\023avro_failure_reason\030\005" + + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub" + + ".v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007" + + " \001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\313\002\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\350\001\n" + + "\024api_violation_reason\030\005 \001(\0132:" + + ".google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.In" + + "gestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\317\002\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\353\001\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Inge" + + "stionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.g" + + "oogle.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\322\002\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001" - + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:." + + "google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ing" + + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\335\001\n" + + "\027AwsKinesisFailureReason\022\027\n\n" + + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" + + "\027schema_violation_reason\030\004 \001(" + + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + "\020MessageTransform\022>\n" - + "\016javascript_udf\030\002 \001(\0132" - + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002 \001(" + + "\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\216\006\n" @@ -566,12 +592,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/to" - + "pics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" + + "\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -603,7 +630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033pubsub.googleapis.com/Topic\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" - + "\036ListTopicSubscriptionsResponse\022A\n\r" + + "\036ListTopicSubscriptionsResponse\022A\n" + + "\r" + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" @@ -666,8 +694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.co" + + "m/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -680,8 +708,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,.go" - + "ogle.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "attributes\030\002 \003(\0132,." + + "google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + "oidc_token\030\003" + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + "\016pubsub_wrapper\030\004" @@ -721,10 +749,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\0132/" - + ".google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\013" + + "2/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/." + + "google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -746,8 +774,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" - + "\007message\030\002" - + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\007message\030\002 \001(" + + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + "\026GetSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -780,8 +808,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + "\014PullResponse\022A\n" - + "\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + "\030ModifyAckDeadlineRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -804,12 +832,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(" - + "\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.goog" - + "le.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 " + + "\001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.go" + + "ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub" + + ".v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -827,8 +855,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323." - + "google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 \003(\0132" + + "3.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -871,111 +899,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub." - + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.googl" - + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" - + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishR" - + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequ" - + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" - + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsR" - + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscr" - + "iptionsRequest\0320.google.pubsub.v1.ListTo" - + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", - "\022-/v1/{topic=projects/*/topics/*}/subscr" - + "iptions\022\252\001\n\022ListTopicSnapshots\022+.google." - + "pubsub.v1.ListTopicSnapshotsRequest\032,.go" - + "ogle.pubsub.v1.ListTopicSnapshotsRespons" - + "e\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*" - + "/topics/*}/snapshots\022|\n\013DeleteTopic\022$.go" - + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" - + "le.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{" - + "topic=projects/*/topics/*}\022\255\001\n\022DetachSub" - + "scription\022+.google.pubsub.v1.DetachSubsc" - + "riptionRequest\032,.google.pubsub.v1.Detach" - + "SubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subsc" - + "ription=projects/*/subscriptions/*}:deta" - + "ch\032p\312A\025pubsub.googleapis.com\322AUhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/pubsub2\322\025\n" - + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo" - + "gle.pubsub.v1.Subscription\032\036.google.pubs" - + "ub.v1.Subscription\"^\332A+name,topic,push_c" - + "onfig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{n" - + "ame=projects/*/subscriptions/*}:\001*\022\241\001\n\017G" - + "etSubscription\022(.google.pubsub.v1.GetSub" - + "scriptionRequest\032\036.google.pubsub.v1.Subs" - + "cription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{su" - + "bscription=projects/*/subscriptions/*}\022\273" - + "\001\n\022UpdateSubscription\022+.google.pubsub.v1" - + ".UpdateSubscriptionRequest\032\036.google.pubs" - + "ub.v1.Subscription\"X\332A\030subscription,upda" - + "te_mask\202\323\344\223\002722/v1/{subscription.name=pr" - + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" - + "scriptions\022*.google.pubsub.v1.ListSubscr" - + "iptionsRequest\032+.google.pubsub.v1.ListSu" - + "bscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/" - + "v1/{project=projects/*}/subscriptions\022\237\001" - + "\n\022DeleteSubscription\022+.google.pubsub.v1." - + "DeleteSubscriptionRequest\032\026.google.proto" - + "buf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{s" - + "ubscription=projects/*/subscriptions/*}\022" - + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" - + ".ModifyAckDeadlineRequest\032\026.google.proto" - + "buf.Empty\"v\332A)subscription,ack_ids,ack_d" - + "eadline_seconds\202\323\344\223\002D\"?/v1/{subscription" - + "=projects/*/subscriptions/*}:modifyAckDe" - + "adline:\001*\022\250\001\n\013Acknowledge\022$.google.pubsu" - + "b.v1.AcknowledgeRequest\032\026.google.protobu" - + "f.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google.p" - + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." - + "PullResponse\"\210\001\332A,subscription,return_im" - + "mediately,max_messages\332A\031subscription,ma" - + "x_messages\202\323\344\223\0027\"2/v1/{subscription=proj" - + "ects/*/subscriptions/*}:pull:\001*\022f\n\rStrea" - + "mingPull\022&.google.pubsub.v1.StreamingPul" - + "lRequest\032\'.google.pubsub.v1.StreamingPul" - + "lResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).g" - + "oogle.pubsub.v1.ModifyPushConfigRequest\032" - + "\026.google.protobuf.Empty\"d\332A\030subscription" - + ",push_config\202\323\344\223\002C\">/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:modifyPushConf" - + "ig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1" - + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapsho" - + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" - + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" - + "est\032\'.google.pubsub.v1.ListSnapshotsResp" - + "onse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=pro" - + "jects/*}/snapshots\022\227\001\n\016CreateSnapshot\022\'." - + "google.pubsub.v1.CreateSnapshotRequest\032\032" - + ".google.pubsub.v1.Snapshot\"@\332A\021name,subs" - + "cription\202\323\344\223\002&\032!/v1/{name=projects/*/sna" - + "pshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google" - + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" - + "e.pubsub.v1.Snapshot\"L\332A\024snapshot,update" - + "_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects" - + "/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'." - + "google.pubsub.v1.DeleteSnapshotRequest\032\026" - + ".google.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002" - + "\'*%/v1/{snapshot=projects/*/snapshots/*}" - + "\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest" - + "\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027" - + "\"2/v1/{subscription=projects/*/subscript" - + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" - + "m\322AUhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pubs" - + "ubProtoP\001Z5cloud.google.com/go/pubsub/v2" - + "/apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud." - + "PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goo" - + "gle::Cloud::PubSub::V1b\006proto3" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsu", + "b.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=pro" + + "jects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.g" + + "oogle.pubsub.v1.UpdateTopicRequest\032\027.goo" + + "gle.pubsub.v1.Topic\"C\332A\021topic,update_mas" + + "k\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" + + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." + + "PublishRequest\032!.google.pubsub.v1.Publis" + + "hResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/" + + "{topic=projects/*/topics/*}:publish:\001*\022w" + + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" + + "quest\032\027.google.pubsub.v1.Topic\"/\332A\005topic" + + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" + + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" + + "picsRequest\032$.google.pubsub.v1.ListTopic" + + "sResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{projec" + + "t=projects/*}/topics\022\272\001\n\026ListTopicSubscr" + + "iptions\022/.google.pubsub.v1.ListTopicSubs" + + "criptionsRequest\0320.google.pubsub.v1.List" + + "TopicSubscriptionsResponse\"=\332A\005topic\202\323\344\223" + + "\002/\022-/v1/{topic=projects/*/topics/*}/subs" + + "criptions\022\252\001\n\022ListTopicSnapshots\022+.googl" + + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." + + "google.pubsub.v1.ListTopicSnapshotsRespo" + + "nse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects" + + "/*/topics/*}/snapshots\022|\n\013DeleteTopic\022$." + + "google.pubsub.v1.DeleteTopicRequest\032\026.go" + + "ogle.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1" + + "/{topic=projects/*/topics/*}\022\255\001\n\022DetachS" + + "ubscription\022+.google.pubsub.v1.DetachSub" + + "scriptionRequest\032,.google.pubsub.v1.Deta" + + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" + + "scription=projects/*/subscriptions/*}:de" + + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/pubsub2\322" + + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" + + "oogle.pubsub.v1.Subscription\032\036.google.pu" + + "bsub.v1.Subscription\"^\332A+name,topic,push" + + "_config,ack_deadline_seconds\202\323\344\223\002*\032%/v1/" + + "{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetS" + + "ubscriptionRequest\032\036.google.pubsub.v1.Su" + + "bscription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{" + + "subscription=projects/*/subscriptions/*}" + + "\022\273\001\n\022UpdateSubscription\022+.google.pubsub." + + "v1.UpdateSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"X\332A\030subscription,up" + + "date_mask\202\323\344\223\002722/v1/{subscription.name=" + + "projects/*/subscriptions/*}:\001*\022\246\001\n\021ListS" + + "ubscriptions\022*.google.pubsub.v1.ListSubs" + + "criptionsRequest\032+.google.pubsub.v1.List" + + "SubscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022" + + "&/v1/{project=projects/*}/subscriptions\022" + + "\237\001\n\022DeleteSubscription\022+.google.pubsub.v" + + "1.DeleteSubscriptionRequest\032\026.google.pro" + + "tobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub." + + "v1.ModifyAckDeadlineRequest\032\026.google.pro" + + "tobuf.Empty\"v\332A)subscription,ack_ids,ack" + + "_deadline_seconds\202\323\344\223\002D\"?/v1/{subscripti" + + "on=projects/*/subscriptions/*}:modifyAck" + + "Deadline:\001*\022\250\001\n\013Acknowledge\022$.google.pub" + + "sub.v1.AcknowledgeRequest\032\026.google.proto" + + "buf.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>" + + "\"9/v1/{subscription=projects/*/subscript" + + "ions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google" + + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" + + "1.PullResponse\"\210\001\332A,subscription,return_" + + "immediately,max_messages\332A\031subscription," + + "max_messages\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\022f\n\rStr" + + "eamingPull\022&.google.pubsub.v1.StreamingP" + + "ullRequest\032\'.google.pubsub.v1.StreamingP" + + "ullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022)" + + ".google.pubsub.v1.ModifyPushConfigReques" + + "t\032\026.google.protobuf.Empty\"d\332A\030subscripti" + + "on,push_config\202\323\344\223\002C\">/v1/{subscription=" + + "projects/*/subscriptions/*}:modifyPushCo" + + "nfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub." + + "v1.GetSnapshotRequest\032\032.google.pubsub.v1" + + ".Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snaps" + + "hot=projects/*/snapshots/*}\022\226\001\n\rListSnap" + + "shots\022&.google.pubsub.v1.ListSnapshotsRe" + + "quest\032\'.google.pubsub.v1.ListSnapshotsRe" + + "sponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=p" + + "rojects/*}/snapshots\022\227\001\n\016CreateSnapshot\022" + + "\'.google.pubsub.v1.CreateSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"@\332A\021name,su" + + "bscription\202\323\344\223\002&\032!/v1/{name=projects/*/s" + + "napshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.goog" + + "le.pubsub.v1.UpdateSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"L\332A\024snapshot,upda" + + "te_mask\202\323\344\223\002/2*/v1/{snapshot.name=projec" + + "ts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022" + + "\'.google.pubsub.v1.DeleteSnapshotRequest" + + "\032\026.google.protobuf.Empty\"8\332A\010snapshot\202\323\344" + + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" + + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" + + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" + + "\0027\"2/v1/{subscription=projects/*/subscri" + + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." + + "com\322AUhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pu" + + "bsubProtoP\001Z5cloud.google.com/go/pubsub/" + + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1136,6 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsMskFailure", "AzureEventHubsFailure", "ConfluentCloudFailure", + "AwsKinesisFailure", "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = @@ -1150,8 +1184,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, @@ -1161,31 +1201,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ObjectGeneration", "AvroFailureReason", "ApiViolationReason", + "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, new java.lang.String[] { - "ClusterArn", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterArn", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, new java.lang.String[] { - "Namespace", "EventHub", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "Namespace", + "EventHub", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, new java.lang.String[] { - "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterId", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, + new java.lang.String[] { + "StreamArn", "PartitionKey", "SequenceNumber", "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7db45411e..cdc16574f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bee10d2e9..8b2bd98a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index ada2ba66b..fa6ea9d51 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -28,7 +28,7 @@ * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay @@ -378,7 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 017b0d912..f40cc4e62 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -24,7 +24,7 @@ * *
      * Request for the `StreamingPull` streaming RPC method. This request is used to
    - * establish the initial stream as well as to stream acknowledgements and ack
    + * establish the initial stream as well as to stream acknowledgments and ack
      * deadline modifications from the client to the server.
      * 
    * @@ -143,12 +143,11 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,12 +162,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,12 +181,11 @@ public int getAckIdsCount() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,12 +201,11 @@ public java.lang.String getAckIds(int index) { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,7 +314,7 @@ public int getModifyDeadlineSeconds(int index) { * * *
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -338,7 +334,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -358,7 +354,7 @@ public int getModifyDeadlineAckIdsCount() {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -379,7 +375,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -796,7 +792,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * 
        * Request for the `StreamingPull` streaming RPC method. This request is used to
    -   * establish the initial stream as well as to stream acknowledgements and ack
    +   * establish the initial stream as well as to stream acknowledgments and ack
        * deadline modifications from the client to the server.
        * 
    * @@ -1257,12 +1253,11 @@ private void ensureAckIdsIsMutable() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1278,12 +1273,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1298,12 +1292,11 @@ public int getAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1319,12 +1312,11 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1340,12 +1332,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1369,12 +1360,11 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1397,12 +1387,11 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1422,12 +1411,11 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1446,12 +1434,11 @@ public Builder clearAckIds() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1700,7 +1687,7 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * *
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1721,7 +1708,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1741,7 +1728,7 @@ public int getModifyDeadlineAckIdsCount() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1762,7 +1749,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1783,7 +1770,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1812,7 +1799,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1840,7 +1827,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1865,7 +1852,7 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1889,7 +1876,7 @@ public Builder clearModifyDeadlineAckIds() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    index 675fc7532..0af7d5da6 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    @@ -64,12 +64,11 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -82,12 +81,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,12 +98,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -119,12 +116,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -211,7 +207,7 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -229,7 +225,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -247,7 +243,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -266,7 +262,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    index 229d1456f..2d7aac604 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    @@ -74,7 +74,7 @@ public interface AcknowledgeConfirmationOrBuilder
          *
          *
          * 
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -87,7 +87,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,7 +100,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -114,7 +114,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -128,8 +128,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -142,8 +142,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,8 +156,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -171,8 +171,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,7 +186,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -199,7 +199,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,7 +212,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -226,7 +226,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -240,7 +240,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -255,7 +255,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -270,7 +270,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -286,7 +286,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -303,7 +303,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -   * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +   * Acknowledgment IDs sent in one or more previous requests to acknowledge a
        * previously received message.
        * 
    * @@ -358,7 +358,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -373,7 +373,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -388,7 +388,7 @@ public int getAckIdsCount() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -404,7 +404,7 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -426,8 +426,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -442,8 +442,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -458,8 +458,8 @@ public int getInvalidAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -475,8 +475,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -513,7 +513,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -528,7 +528,7 @@ public int getUnorderedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -544,7 +544,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -566,7 +566,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -583,7 +583,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -600,7 +600,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -618,7 +618,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -856,7 +856,7 @@ protected Builder newBuilderForType( * * *
    -     * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +     * Acknowledgment IDs sent in one or more previous requests to acknowledge a
          * previously received message.
          * 
    * @@ -1133,7 +1133,7 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1149,7 +1149,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1164,7 +1164,7 @@ public int getAckIdsCount() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1180,7 +1180,7 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,7 +1196,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1220,7 +1220,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1243,7 +1243,7 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1263,7 +1263,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1282,7 +1282,7 @@ public Builder clearAckIds() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1316,8 +1316,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1333,8 +1333,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1349,8 +1349,8 @@ public int getInvalidAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,8 +1366,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1383,8 +1383,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1408,8 +1408,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1432,8 +1432,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1453,8 +1453,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1473,8 +1473,8 @@ public Builder clearInvalidAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1508,7 +1508,7 @@ private void ensureUnorderedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1525,7 +1525,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1541,7 +1541,7 @@ public int getUnorderedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1558,7 +1558,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1575,7 +1575,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1600,7 +1600,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1624,7 +1624,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1645,7 +1645,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1665,7 +1665,7 @@ public Builder clearUnorderedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1701,7 +1701,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1720,7 +1720,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1738,7 +1738,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1757,7 +1757,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1776,7 +1776,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1803,7 +1803,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1829,7 +1829,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1852,7 +1852,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1874,7 +1874,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1973,7 +1973,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1986,7 +1986,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1999,7 +1999,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2013,7 +2013,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2027,8 +2027,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2041,8 +2041,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2055,8 +2055,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2070,8 +2070,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2085,7 +2085,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2100,7 +2100,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2115,7 +2115,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2131,7 +2131,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2148,7 +2148,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -   * Acknowledgement IDs sent in one or more previous requests to modify the
    +   * Acknowledgment IDs sent in one or more previous requests to modify the
        * deadline for a specific message.
        * 
    * @@ -2205,7 +2205,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2220,7 +2220,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2235,7 +2235,7 @@ public int getAckIdsCount() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2251,7 +2251,7 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2273,8 +2273,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2289,8 +2289,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2305,8 +2305,8 @@ public int getInvalidAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2322,8 +2322,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2345,7 +2345,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2362,7 +2362,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2379,7 +2379,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2397,7 +2397,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2625,7 +2625,7 @@ protected Builder newBuilderForType( * * *
    -     * Acknowledgement IDs sent in one or more previous requests to modify the
    +     * Acknowledgment IDs sent in one or more previous requests to modify the
          * deadline for a specific message.
          * 
    * @@ -2884,7 +2884,7 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2900,7 +2900,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2915,7 +2915,7 @@ public int getAckIdsCount() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2931,7 +2931,7 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2947,7 +2947,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2971,7 +2971,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2994,7 +2994,7 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3014,7 +3014,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3033,7 +3033,7 @@ public Builder clearAckIds() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3067,8 +3067,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3084,8 +3084,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3100,8 +3100,8 @@ public int getInvalidAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3117,8 +3117,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3134,8 +3134,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3159,8 +3159,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3183,8 +3183,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3204,8 +3204,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3224,8 +3224,8 @@ public Builder clearInvalidAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3260,7 +3260,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3279,7 +3279,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3297,7 +3297,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3316,7 +3316,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3335,7 +3335,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3362,7 +3362,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3388,7 +3388,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3411,7 +3411,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3433,7 +3433,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index fb8d9a716..ea54863d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1960,8 +1960,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -1984,8 +1984,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -2010,8 +2010,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -2060,7 +2060,7 @@ public boolean getDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5631,8 +5631,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5654,8 +5654,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5683,8 +5683,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5714,8 +5714,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5742,8 +5742,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5778,8 +5778,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5806,8 +5806,8 @@ public Builder clearRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5829,8 +5829,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5856,8 +5856,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5960,7 +5960,7 @@ public Builder clearDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5988,7 +5988,7 @@ public boolean getEnableExactlyOnceDelivery() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -6020,7 +6020,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 6723327ce..da905d00c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -586,8 +586,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -607,8 +607,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -628,8 +628,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -664,7 +664,7 @@ java.lang.String getLabelsOrDefault( * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 516b7faef..2792133a4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -549,6 +549,10 @@ message IngestionFailureEvent { // occurs, one or more Avro objects won't be ingested. message AvroFailureReason {} + // Set when a Pub/Sub message fails to get published due to a schema + // validation violation. + message SchemaViolationReason {} + // Failure when ingesting from a Cloud Storage source. message CloudStorageFailure { // Optional. Name of the Cloud Storage bucket used for ingestion. @@ -572,6 +576,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -596,6 +604,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -620,6 +632,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -644,6 +660,29 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from an AWS Kinesis source. + message AwsKinesisFailureReason { + // Optional. The stream ARN of the Kinesis stream being ingested from. + string stream_arn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition key of the message that failed to be ingested. + string partition_key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sequence number of the message that failed to be ingested. + string sequence_number = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 4 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -670,6 +709,10 @@ message IngestionFailureEvent { // Optional. Failure when ingesting from Confluent Cloud. ConfluentCloudFailureReason confluent_cloud_failure = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from AWS Kinesis. + AwsKinesisFailureReason aws_kinesis_failure = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1128,7 +1171,7 @@ service Subscriber { } // Establishes a stream with the server, which sends messages down to the - // client. The client streams acknowledgements and ack deadline modifications + // client. The client streams acknowledgments and ack deadline modifications // back to the server. The server will close the stream and return the status // on any error. The server may close the stream with status `UNAVAILABLE` to // reassign server-side resources, in which case, the client should @@ -1394,8 +1437,8 @@ message Subscription { // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. - // RetryPolicy will be triggered on NACKs or acknowledgement deadline - // exceeded events for a given message. + // RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + // events for a given message. RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates whether the subscription is detached from its topic. @@ -1410,7 +1453,7 @@ message Subscription { // subscription: // // * The message sent to a subscriber is guaranteed not to be resent - // before the message's acknowledgement deadline expires. + // before the message's acknowledgment deadline expires. // * An acknowledged message will not be resent to a subscriber. // // Note that subscribers may still receive multiple copies of a message @@ -1449,7 +1492,7 @@ message Subscription { // Retry delay will be exponential based on provided minimum and maximum // backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. // -// RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded +// RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded // events for a given message. // // Retry Policy is implemented on a best effort basis. At times, the delay @@ -1489,7 +1532,7 @@ message DeadLetterPolicy { // value must be between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of - // NACKs and number of times the acknowledgement deadline has been exceeded + // NACKs and number of times the acknowledgment deadline has been exceeded // for the message). // // A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -1751,7 +1794,7 @@ message CloudStorageConfig { // Optional. The maximum duration that can elapse before a new Cloud Storage // file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not - // exceed the subscription's acknowledgement deadline. + // exceed the subscription's acknowledgment deadline. google.protobuf.Duration max_duration = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -1973,7 +2016,7 @@ message AcknowledgeRequest { } // Request for the `StreamingPull` streaming RPC method. This request is used to -// establish the initial stream as well as to stream acknowledgements and ack +// establish the initial stream as well as to stream acknowledgments and ack // deadline modifications from the client to the server. message StreamingPullRequest { // Required. The subscription for which to initialize the new stream. This @@ -1987,12 +2030,11 @@ message StreamingPullRequest { } ]; - // Optional. List of acknowledgement IDs for acknowledging previously received + // Optional. List of acknowledgment IDs for acknowledging previously received // messages (received on this stream or a different stream). If an ack ID has // expired, the corresponding message may be redelivered later. Acknowledging - // a message more than once will not result in an error. If the - // acknowledgement ID is malformed, the stream will be aborted with status - // `INVALID_ARGUMENT`. + // a message more than once will not result in an error. If the acknowledgment + // ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`. repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The list of new ack deadlines for the IDs listed in @@ -2009,7 +2051,7 @@ message StreamingPullRequest { repeated int32 modify_deadline_seconds = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs whose deadline will be modified based + // Optional. List of acknowledgment IDs whose deadline will be modified based // on the corresponding element in `modify_deadline_seconds`. This field can // be used to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the @@ -2058,39 +2100,39 @@ message StreamingPullRequest { // Response for the `StreamingPull` method. This response is used to stream // messages from the server to the client. message StreamingPullResponse { - // Acknowledgement IDs sent in one or more previous requests to acknowledge a + // Acknowledgment IDs sent in one or more previous requests to acknowledge a // previously received message. message AcknowledgeConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were out of order. + // Optional. List of acknowledgment IDs that were out of order. repeated string unordered_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 4 [(google.api.field_behavior) = OPTIONAL]; } - // Acknowledgement IDs sent in one or more previous requests to modify the + // Acknowledgment IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; From 17c142b20efb79f9c71fc6306cb3ee4e15c5e06f Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 22 May 2025 14:37:57 -0400 Subject: [PATCH 486/656] docs(sample): Update the subscribe with error listener and subscribe with exactly-once samples (#2437) * docs(sample): Update SubscribeWithErrorListener sample to not rebuild the subscriber * docs(sample): Add locational endpoint for exactly-once subscriber sample * docs(sample): Add comment explaining reasoning for locational endpoint --- .../java/pubsub/SubscribeWithErrorListenerExample.java | 8 ++------ ...scribeWithExactlyOnceConsumerWithResponseExample.java | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java index a03c867a8..1e17afe68 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java @@ -62,15 +62,11 @@ public static void subscribeWithErrorListenerExample(String projectId, String su .setExecutorProvider(executorProvider) .build(); - // Listen for unrecoverable failures. Rebuild a subscriber and restart subscribing - // when the current subscriber encounters permanent errors. + // Listen for unrecoverable failures. subscriber.addListener( new Subscriber.Listener() { public void failed(Subscriber.State from, Throwable failure) { - System.out.println(failure.getStackTrace()); - if (!executorProvider.getExecutor().isShutdown()) { - subscribeWithErrorListenerExample(projectId, subscriptionId); - } + System.out.println("Unrecoverable subscriber failure:" + failure.getStackTrace()); } }, MoreExecutors.directExecutor()); diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java index 8c85364c0..cf5ed3248 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java @@ -95,7 +95,14 @@ public static void subscribeWithExactlyOnceConsumerWithResponseExample( Subscriber subscriber = null; try { - subscriber = Subscriber.newBuilder(subscriptionName, receiverWithResponse).build(); + // Pub/Sub's exactly once delivery guarantee only applies when subscribers connect to the + // service in the same region. + // For list of locational endpoints for Pub/Sub, see + // https://cloud.google.com/pubsub/docs/reference/service_apis_overview#list_of_locational_endpoints + subscriber = + Subscriber.newBuilder(subscriptionName, receiverWithResponse) + .setEndpoint("us-west1-pubsub.googleapis.com:443") + .build(); // Start the subscriber. subscriber.startAsync().awaitRunning(); System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); From e43a89bf37615c7a671e38bcdc4683f5138de849 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 27 May 2025 10:52:13 -0400 Subject: [PATCH 487/656] chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 (#2439) * chore: Update generation configuration at Fri May 23 02:33:50 UTC 2025 * chore: Update generation configuration at Sat May 24 02:32:02 UTC 2025 * chore: generate libraries at Sat May 24 02:32:35 UTC 2025 * chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fe7b35eee..a7c519706 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.60.0') +implementation platform('com.google.cloud:libraries-bom:26.61.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 4e87f268b..3b45141a7 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 -libraries_bom_version: 26.60.0 +googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From a651e63261f22aece147b318db304177db52bae3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 May 2025 17:35:52 +0200 Subject: [PATCH 488/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.61.0 (#2438) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 414e4c703..5a6844896 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import From a59135c6859d0aa5c247a6a1f60872c959123cc7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 2 Jun 2025 21:37:01 +0200 Subject: [PATCH 489/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2444) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 704e61807..8d8e12cb1 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.48.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e..5cc939cf9 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84..fd0015918 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff..424494b02 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 1edcb15cb..cd49eff83 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 92ec4902e..4f1cd065b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 From 12d4cfb7d67dbb163b3a545ea2ebae450e88283d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:09:28 +0200 Subject: [PATCH 490/656] deps: update googleapis/sdk-platform-java action to v2.59.0 (#2445) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 336ac2c8c..c01f3faec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.58.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From e8b13d435f926c93033a82db68dc6eeac5ae3a7d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:04 -0400 Subject: [PATCH 491/656] chore(main): release 1.139.5-SNAPSHOT (#2433) * chore(main): release 1.139.5-SNAPSHOT * chore: generate libraries at Mon Jun 2 19:45:44 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9..d72ed3f0e 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index fd0015918..f2e296b84 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02..68512fbff 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index a7c519706..b023a93a6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index cd49eff83..072091078 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.4 + 1.139.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index dd5fe6a55..680e89219 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c44258fb1..287e0afb6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4f1cd065b..0700ea85c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.4 + 1.139.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0586560ae..86de777c6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ca7eae922..4a254d46b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 891e99e9b..a05e9f228 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.4 -grpc-google-cloud-pubsub-v1:1.121.4:1.121.4 -proto-google-cloud-pubsub-v1:1.121.4:1.121.4 +google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT From 1c838b6f9c8d5ce99ea3730ef2a0df5ad533c7be Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:54 -0400 Subject: [PATCH 492/656] chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 (#2441) * chore: Update generation configuration at Wed May 28 02:34:10 UTC 2025 * chore: generate libraries at Wed May 28 02:34:40 UTC 2025 * chore: Update generation configuration at Thu May 29 02:34:15 UTC 2025 * chore: Update generation configuration at Sat May 31 02:32:59 UTC 2025 * chore: Update generation configuration at Sun Jun 1 02:46:12 UTC 2025 * chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 * chore: generate libraries at Tue Jun 3 02:35:10 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 3b45141a7..3c12b8705 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +googleapis_commitish: 5e49af896d45b0a0aa06de04354db58c05c79aca libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 6434be16560fdc8797b7c930b06df38c0972c96c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:30:26 +0200 Subject: [PATCH 493/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:sdk-platform-java-config](https://redirect.github.com/googleapis/java-shared-config) | `3.48.0` -> `3.49.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e..5cc939cf9 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84..fd0015918 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff..424494b02 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From bb3d66b8da666c08b84fd551302c775eff7ac077 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:02:24 +0000 Subject: [PATCH 494/656] chore(main): release 1.140.0 (#2447) :robot: I have created a release *beep* *boop* --- ## [1.140.0](https://togithub.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) ### Features * Add SchemaViolationReason to IngestionFailureEvent ([21cc376](https://togithub.com/googleapis/java-pubsub/commit/21cc3764aaa6fc05eb4a5078a72dae30694fba91)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://togithub.com/googleapis/java-pubsub/issues/2435)) ([b37c557](https://togithub.com/googleapis/java-pubsub/commit/b37c5573e1d0d7eada4ce4ec6a052521ea11cff1)) * Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://togithub.com/googleapis/java-pubsub/issues/2436)) ([4f309d1](https://togithub.com/googleapis/java-pubsub/commit/4f309d151d4bd584a33a0bb8882d0614a1b9d533)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://togithub.com/googleapis/java-pubsub/issues/2444)) ([a59135c](https://togithub.com/googleapis/java-pubsub/commit/a59135c6859d0aa5c247a6a1f60872c959123cc7)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://togithub.com/googleapis/java-pubsub/issues/2446)) ([6434be1](https://togithub.com/googleapis/java-pubsub/commit/6434be16560fdc8797b7c930b06df38c0972c96c)) * Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://togithub.com/googleapis/java-pubsub/issues/2430)) ([232fac1](https://togithub.com/googleapis/java-pubsub/commit/232fac1c47e0d3680dcc8d56b69d65ed0d379dde)) * Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://togithub.com/googleapis/java-pubsub/issues/2445)) ([12d4cfb](https://togithub.com/googleapis/java-pubsub/commit/12d4cfb7d67dbb163b3a545ea2ebae450e88283d)) ### Documentation * **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://togithub.com/googleapis/java-pubsub/issues/2437)) ([17c142b](https://togithub.com/googleapis/java-pubsub/commit/17c142b20efb79f9c71fc6306cb3ee4e15c5e06f)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- CHANGELOG.md | 22 ++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 12 files changed, 46 insertions(+), 24 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9..d72ed3f0e 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index fd0015918..f2e296b84 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02..68512fbff 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/CHANGELOG.md b/CHANGELOG.md index 6657c1065..519bd1396 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.140.0](https://github.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) + + +### Features + +* Add SchemaViolationReason to IngestionFailureEvent ([21cc376](https://github.com/googleapis/java-pubsub/commit/21cc3764aaa6fc05eb4a5078a72dae30694fba91)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://github.com/googleapis/java-pubsub/issues/2435)) ([b37c557](https://github.com/googleapis/java-pubsub/commit/b37c5573e1d0d7eada4ce4ec6a052521ea11cff1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://github.com/googleapis/java-pubsub/issues/2436)) ([4f309d1](https://github.com/googleapis/java-pubsub/commit/4f309d151d4bd584a33a0bb8882d0614a1b9d533)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://github.com/googleapis/java-pubsub/issues/2444)) ([a59135c](https://github.com/googleapis/java-pubsub/commit/a59135c6859d0aa5c247a6a1f60872c959123cc7)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://github.com/googleapis/java-pubsub/issues/2446)) ([6434be1](https://github.com/googleapis/java-pubsub/commit/6434be16560fdc8797b7c930b06df38c0972c96c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://github.com/googleapis/java-pubsub/issues/2430)) ([232fac1](https://github.com/googleapis/java-pubsub/commit/232fac1c47e0d3680dcc8d56b69d65ed0d379dde)) +* Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://github.com/googleapis/java-pubsub/issues/2445)) ([12d4cfb](https://github.com/googleapis/java-pubsub/commit/12d4cfb7d67dbb163b3a545ea2ebae450e88283d)) + + +### Documentation + +* **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://github.com/googleapis/java-pubsub/issues/2437)) ([17c142b](https://github.com/googleapis/java-pubsub/commit/17c142b20efb79f9c71fc6306cb3ee4e15c5e06f)) + ## [1.139.4](https://github.com/googleapis/java-pubsub/compare/v1.139.3...v1.139.4) (2025-05-15) diff --git a/README.md b/README.md index b023a93a6..93784c260 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 072091078..526ebcb86 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.5-SNAPSHOT + 1.140.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 680e89219..d3b6571fa 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 287e0afb6..4ccc3ff56 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/pom.xml b/pom.xml index 0700ea85c..df2468788 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.5-SNAPSHOT + 1.140.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 86de777c6..954dc1f81 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4a254d46b..2daaae281 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/versions.txt b/versions.txt index a05e9f228..bd172824c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +google-cloud-pubsub:1.140.0:1.140.0 +grpc-google-cloud-pubsub-v1:1.122.0:1.122.0 +proto-google-cloud-pubsub-v1:1.122.0:1.122.0 From 0b53e47bb4c176026e27a6642c05ff3c38efe2a7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:52:31 +0000 Subject: [PATCH 495/656] chore(main): release 1.140.1-SNAPSHOT (#2449) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 526ebcb86..49c2b0970 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.0 + 1.140.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d3b6571fa..2e0e8a28a 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 4ccc3ff56..4e65b4f2e 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index df2468788..92b58edab 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.0 + 1.140.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 954dc1f81..62bc21744 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2daaae281..a137a0fac 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index bd172824c..62eb596e5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.0:1.140.0 -grpc-google-cloud-pubsub-v1:1.122.0:1.122.0 -proto-google-cloud-pubsub-v1:1.122.0:1.122.0 +google-cloud-pubsub:1.140.0:1.140.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT From d89a14d6569fc914d877cc24d66c42684a812eba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Jun 2025 04:02:47 +0200 Subject: [PATCH 496/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2448) --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e..5cc939cf9 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84..fd0015918 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff..424494b02 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From 0eece5012fbaf887a5c062beba433dbb30edbf43 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:17:04 -0400 Subject: [PATCH 497/656] chore: Update generation configuration at Thu Jun 5 02:34:31 UTC 2025 (#2451) * chore: Update generation configuration at Wed Jun 4 02:34:46 UTC 2025 * chore: generate libraries at Wed Jun 4 02:35:14 UTC 2025 * upgrade easymock to newest for jdk24 support. * Revert "upgrade easymock to newest for jdk24 support." This reverts commit 47aae6241d1de2c433b4401b145467c214d2cd04. * chore: Update generation configuration at Thu Jun 5 02:34:31 UTC 2025 --------- Co-authored-by: Min Zhu --- .github/workflows/ci.yaml | 2 +- generation_config.yaml | 4 ++-- .../com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../google/pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../pubsub/v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../google/pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../pubsub/v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../java/com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../google/pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../google/pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../pubsub/v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../google/pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../com/google/pubsub/v1/IngestionFailureEvent.java | 2 +- .../pubsub/v1/IngestionFailureEventOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/JavaScriptUDF.java | 2 +- .../google/pubsub/v1/JavaScriptUDFOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasResponse.java | 2 +- .../pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../pubsub/v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../v1/ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsResponse.java | 2 +- .../v1/ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/MessageTransform.java | 2 +- .../google/pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../google/pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../pubsub/v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PlatformLogsSettings.java | 2 +- .../pubsub/v1/PlatformLogsSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PublishRequest.java | 2 +- .../google/pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PublishResponse.java | 2 +- .../google/pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../main/java/com/google/pubsub/v1/PullRequest.java | 2 +- .../com/google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PullResponse.java | 2 +- .../com/google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/PushConfig.java | 2 +- .../com/google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../google/pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../com/google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../pubsub/v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Schema.java | 2 +- .../java/com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../java/com/google/pubsub/v1/SchemaSettings.java | 2 +- .../google/pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaView.java | 2 +- .../main/java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../com/google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../com/google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../com/google/pubsub/v1/StreamingPullRequest.java | 2 +- .../pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/StreamingPullResponse.java | 2 +- .../pubsub/v1/StreamingPullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Subscription.java | 2 +- .../com/google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Topic.java | 2 +- .../java/com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../pubsub/v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../pubsub/v1/ValidateMessageRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageResponse.java | 2 +- .../pubsub/v1/ValidateMessageResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../pubsub/v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../pubsub/v1/ValidateSchemaResponseOrBuilder.java | 2 +- renovate.json | 13 +------------ 139 files changed, 140 insertions(+), 151 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dd9974f2..10acf46ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [11, 17, 21] + java: [11, 17, 21, 24] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 diff --git a/generation_config.yaml b/generation_config.yaml index 3c12b8705..0603f69af 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.58.0 -googleapis_commitish: 5e49af896d45b0a0aa06de04354db58c05c79aca +gapic_generator_version: 2.59.0 +googleapis_commitish: de157ca34fa487ce248eb9130293d630b501e4ad libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 29832d367..219fba089 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ce9853a20..db4488150 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index abe0d01d6..95239f904 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 6631b9625..eaa9abaaa 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 601c178e6..3f2ecd9db 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d3bbad242..207a691d7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 413633f6e..25d739ae3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index de5fa4e7f..47dbb75e3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index ddc3093a2..1f3ad6468 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 09db02945..37e0d388c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f6c92ab39..079f3344b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 1993fcb45..25f5c59d1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index eb42e4602..b9b9f3a19 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 29f9d6536..2978a0510 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index c941b2ddc..bd3f5758e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 833bb21c6..6c37bc269 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index a890e0ba2..f0e5a1f76 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 9c74f7198..f3a1d7ea3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 2a26c265d..bc2fc7206 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index c9c8a0192..192a33e82 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6e9a70a2e..80800c659 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index b4c9d0fe8..2eb5138ee 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 1ff347e6d..fafde03a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 1eba5641a..065d4a790 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 3efea7ec1..8e3a863ce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 43b6725a5..49afe0240 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 9301cd215..53c87d21d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 3765fe525..b9e42c7cd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 9ccc59dfe..12f4a8105 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index cbcdfa760..708cc8cec 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 13d40370b..2ae8cef69 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 441892893..8888f0179 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index f90f40032..5b662fa6c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index f21acaa42..401c8cd4c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 17f4fd93f..a4728d85a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 1662b80d5..0553b1f91 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 7dde24ac7..c51df2737 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 245c8e678..e8e01add6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 8a0092a6e..e22bc60e3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index a5d102910..73f44578d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 84ef926a9..68377e256 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index b423b901d..e678aa647 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 762da6810..c7ceeb108 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface IngestionFailureEventOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index d4ab92c91..e38b55f09 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index cb3ba0f4d..c59c0fc1f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface JavaScriptUDFOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 4f7e414d8..cc48d7020 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 812a4bfff..272eff598 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 5774b60a7..e7cf1c68b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 01008b7a9..b899094e8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index bfc18011b..d58779ce2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index b02a46248..3a55412f2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 0295fbf55..fbf04d02b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 4074b7a2c..0ccc17195 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index eb72cc74f..73672588e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index ce1882a87..8fff6c2e5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 1f663f3bd..30b4f8be5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 34b81ac66..209c12a8c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index d3848c784..24fe6dae9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 5532ede62..fedfd324d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index c8a74e5d9..27bd5f420 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 253b956ad..b28f6c50b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 164ae38f7..ffb408743 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index ef628af35..9929a918f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 453f43f88..4536d9f60 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 9a7e4a3a4..4623e163f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 84af5e75c..326990d9a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index c8338efee..f783267cb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index d712636ba..7c17b9b01 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index c39777756..dcd670427 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5e617e581..99b028c30 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 6c13f0440..b39fe3f12 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2747f0943..1a968a78b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index b1f27028e..1cb84179a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index af6d1f8b5..03c29b809 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 7036cb508..eaebad923 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 8d94f89b2..adf9eb067 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index aa3c6fd14..b70b613ec 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface MessageTransformOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 2da1f0f7c..36c66e8e9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 40d4bd277..28da06bee 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index e45a2e6b6..300fe08dd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index ac58d9a79..55cd8ab49 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index 8d05cda1a..6252ee593 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index 0e28b70ff..967517e68 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PlatformLogsSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 7c829056d..9187ab532 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 86816c3a1..1718c594e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 82fdddcdc..f1a59cbb6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index a25181e58..6ae74fb82 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 0a8c645d9..ef9370d9a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index aaa6bb857..da2d4b6e3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index deae19db6..f60b3eab7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index cdc16574f..a687600cc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 8b2bd98a7..12a8c09bb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index e65fd1ebf..9c451fad3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index d22ff6c8f..3cdb5f54b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index fc509ebb9..5a1b2985f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 784239904..77f4f69a1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index bf67f45de..6d9320a05 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 186a843ca..75d446b0d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index fa6ea9d51..f693b46a0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 5df0c7f6b..1e52a739d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index cefb591a5..23d85bd5f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index ba89f7dbf..03006247f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 806544f74..d59728407 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 87d31f491..4dd47945e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index b1879310c..88776c194 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 17410973f..eed46924c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 8c63c701b..928da4bd3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 5161ad85d..d896d5400 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index d15e4efb2..d4c4155bd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index b42511c05..a912d7eeb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3170e5b2c..804b7792b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index b951abc8f..80a4ce8e8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index d06ea822f..4c03d1272 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index b24d94416..2d5b3ad62 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index f40cc4e62..9a68de42d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 0af7d5da6..0e7f069b4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 2d7aac604..1a67990a5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index a547f4e59..7d885e257 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index ea54863d8..e70130399 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index da905d00c..40c9a735d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 5ab4f70cf..234faa309 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 3614d1be5..875b6e81a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 6873bc0ff..d96367623 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 8f693411c..03b116d81 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index e1d91cdb6..7dbdcfa97 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index b11c76dbc..f03c11261 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 9ac03519f..85b634b70 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index c58242301..a0425706b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 5211f514f..6db4d37c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 2d4102c26..65e62e516 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index afc1a70f6..589f4cdd0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 2c6a61e13..9db53fcc8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index de152babb..99b284110 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 69266da41..c0f8e1e24 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 56773fd34..b195c89c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 8a202b5b7..c7aaac7e9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/renovate.json b/renovate.json index a604dc837..2f2c18108 100644 --- a/renovate.json +++ b/renovate.json @@ -20,17 +20,6 @@ ".github/workflows/samples.yaml" ], "customManagers": [ - { - "customType": "regex", - "fileMatch": [ - "^.kokoro/presubmit/graalvm-native.*.cfg$" - ], - "matchStrings": [ - "value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\"" - ], - "depNameTemplate": "com.google.cloud:sdk-platform-java-config", - "datasourceTemplate": "maven" - }, { "customType": "regex", "fileMatch": [ @@ -104,4 +93,4 @@ ], "semanticCommits": true, "dependencyDashboard": true -} \ No newline at end of file +} From 5c97d77f12fab438915041bb3ba3afe2ecbff66a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:02:33 -0400 Subject: [PATCH 498/656] chore(main): release 1.140.1 (#2454) * chore(main): release 1.140.1 * chore: generate libraries at Thu Jun 5 20:17:58 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 12 ++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 33 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 519bd1396..2af20bc0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.140.1](https://github.com/googleapis/java-pubsub/compare/v1.140.0...v1.140.1) (2025-06-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.59.0 ([0eece50](https://github.com/googleapis/java-pubsub/commit/0eece5012fbaf887a5c062beba433dbb30edbf43)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2448](https://github.com/googleapis/java-pubsub/issues/2448)) ([d89a14d](https://github.com/googleapis/java-pubsub/commit/d89a14d6569fc914d877cc24d66c42684a812eba)) + ## [1.140.0](https://github.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) diff --git a/README.md b/README.md index 93784c260..5821bf3e0 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 49c2b0970..e77c7f1d7 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.1-SNAPSHOT + 1.140.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2e0e8a28a..194753734 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 4e65b4f2e..26999c386 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/pom.xml b/pom.xml index 92b58edab..3904b799a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.1-SNAPSHOT + 1.140.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 62bc21744..f0b6fede0 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a137a0fac..d0b22c854 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/versions.txt b/versions.txt index 62eb596e5..e22d26f77 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.0:1.140.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT +google-cloud-pubsub:1.140.1:1.140.1 +grpc-google-cloud-pubsub-v1:1.122.1:1.122.1 +proto-google-cloud-pubsub-v1:1.122.1:1.122.1 From 5159718f8282a25498434f5e6eb60a45028c6d18 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 02:02:27 +0000 Subject: [PATCH 499/656] chore(main): release 1.140.2-SNAPSHOT (#2455) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e77c7f1d7..99b0bbbc3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.1 + 1.140.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 194753734..2c6ed772b 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 26999c386..e5b303f56 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3904b799a..5ed35d577 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.1 + 1.140.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index f0b6fede0..8527118a9 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d0b22c854..9ec2ef735 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index e22d26f77..0cab85816 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.1:1.140.1 -grpc-google-cloud-pubsub-v1:1.122.1:1.122.1 -proto-google-cloud-pubsub-v1:1.122.1:1.122.1 +google-cloud-pubsub:1.140.1:1.140.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT From 5f144a461c6749ec7e2cf900399f386094451244 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Jun 2025 21:28:41 +0200 Subject: [PATCH 500/656] deps: update dependency org.easymock:easymock to v5.6.0 (#2069) * deps: update dependency org.easymock:easymock to v5.6.0 * chore: run dependency tree * chore: give easymock's transitive dependencies precedence over mockito's --------- Co-authored-by: Diego Marquez --- google-cloud-pubsub/pom.xml | 12 +++++++----- pom.xml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2c6ed772b..4b91056aa 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -114,11 +114,6 @@ - - org.mockito - mockito-core - test - junit junit @@ -133,6 +128,13 @@ org.easymock easymock test + + + + org.mockito + mockito-core + test com.google.cloud diff --git a/pom.xml b/pom.xml index 5ed35d577..7211f7348 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 5.2.0 + 5.6.0 test From a0be1bbe601575f05fb00f6d616b51de8f23238d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 18:31:10 +0200 Subject: [PATCH 501/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.31.1 (#2442) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 364fccb9c..34ed776d7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9ec2ef735..0934a91fa 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5a6844896..0dbbafa04 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 From 8e6dbda6f3984060376ef33ea581cb94dcf70f6a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 24 Jun 2025 12:33:23 -0400 Subject: [PATCH 502/656] chore: Update generation configuration at Sat Jun 21 02:33:51 UTC 2025 (#2456) * chore: Update generation configuration at Fri Jun 6 02:34:28 UTC 2025 * chore: Update generation configuration at Sat Jun 7 02:33:49 UTC 2025 * chore: Update generation configuration at Tue Jun 10 02:35:41 UTC 2025 * chore: Update generation configuration at Wed Jun 11 02:34:58 UTC 2025 * chore: Update generation configuration at Thu Jun 12 02:34:35 UTC 2025 * chore: Update generation configuration at Fri Jun 13 02:34:54 UTC 2025 * chore: Update generation configuration at Sat Jun 14 02:33:28 UTC 2025 * chore: Update generation configuration at Tue Jun 17 02:35:22 UTC 2025 * chore: Update generation configuration at Wed Jun 18 02:34:55 UTC 2025 * chore: Update generation configuration at Thu Jun 19 02:35:37 UTC 2025 * chore: Update generation configuration at Fri Jun 20 02:34:58 UTC 2025 * chore: Update generation configuration at Sat Jun 21 02:33:51 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 0603f69af..dfae7fb40 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: de157ca34fa487ce248eb9130293d630b501e4ad +googleapis_commitish: 34b323e7ee72888dd9337cce8b24233ae078f23b libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 715916aeedbe696b9c4b922e4fb2bbf76f8b201a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:05 +0200 Subject: [PATCH 503/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 (#2461) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 8d8e12cb1..895aae407 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 99b0bbbc3..c3c00331d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.49.0 + 3.50.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 7211f7348..04b9470b3 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.49.0 + 3.50.0 From d74215a6f1e641ba75997e2e43bef348fb9c4a3c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:13 +0200 Subject: [PATCH 504/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.51.0 (#2457) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 34ed776d7..4b4727471 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.50.1 + 2.51.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0934a91fa..748eb1972 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.50.1 + 2.51.0 com.google.cloud From b4af2370bb875ee8d0047f67a72e8c6d62547a12 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:22 +0200 Subject: [PATCH 505/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.1 (#2452) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4b4727471..edc0ba8bf 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.3 + 2.53.1 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 748eb1972..28f75e5a4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.3 + 2.53.1 com.google.cloud.opentelemetry From 875abb2102d551597e01052f48ecaa012da8fb44 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:31 +0200 Subject: [PATCH 506/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.140.1 (#2450) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index edc0ba8bf..95e581f6f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.140.1 From d4599d93b780b6ef20ad44582aeb8c1cd35f99d4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:41 +0200 Subject: [PATCH 507/656] deps: update dependency com.google.cloud:google-cloud-core to v2.58.0 (#2443) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 95e581f6f..206b1a393 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 28f75e5a4..270495144 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0dbbafa04..f908ae7ff 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests From 50a3eb9276b4711b8161a021d055238abc0e20de Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:49 +0200 Subject: [PATCH 508/656] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.36.0 (#2440) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 206b1a393..eb05a482a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 270495144..67b30d9fb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f908ae7ff..84afef8cd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 org.apache.avro From eb35c7574cb86e1b8fc6f4014d0b15dc57532179 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:39:24 +0200 Subject: [PATCH 509/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.62.0 (#2459) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 84afef8cd..75cc4aacd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.61.0 + 26.62.0 pom import From 2af6c313c7d1b386b56d6098201a2e576195bd09 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:39:41 +0200 Subject: [PATCH 510/656] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 (#2453) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index eb05a482a..4da77cb86 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -106,7 +106,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.6.0 + 3.6.1 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 67b30d9fb..4154d9dda 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -105,7 +105,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.6.0 + 3.6.1 add-snippets-source From ee8e5c7166f2ac4eb706241e42f4ce84afcc2668 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 25 Jun 2025 03:49:17 +0200 Subject: [PATCH 511/656] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2462) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c01f3faec..7838b82ee 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 411ed0fb61f87d0f04ed2d0c8fdd7dd67fcb14db Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 25 Jun 2025 10:59:27 -0400 Subject: [PATCH 512/656] chore: Update generation configuration at Wed Jun 25 02:36:30 UTC 2025 (#2463) * chore: Update generation configuration at Wed Jun 25 02:36:30 UTC 2025 * chore: generate libraries at Wed Jun 25 02:37:04 UTC 2025 --- .github/workflows/hermetic_library_generation.yaml | 2 +- README.md | 4 ++-- generation_config.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7838b82ee..c01f3faec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/README.md b/README.md index 5821bf3e0..ecb5073a8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.61.0 + 26.62.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.4 + 1.140.1 ``` diff --git a/generation_config.yaml b/generation_config.yaml index dfae7fb40..d8e6dfe51 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 34b323e7ee72888dd9337cce8b24233ae078f23b +googleapis_commitish: 8a883235bc76e941ef745a5b5465878dadc9c440 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 7a0af37c01e747d8f40145b7b4438eaadab9e01a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 25 Jun 2025 17:16:52 +0200 Subject: [PATCH 513/656] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2464) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c01f3faec..7838b82ee 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From a0483f38517e0378bb6ac8d140a5b41a8585e3b8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:20:07 -0400 Subject: [PATCH 514/656] chore(main): release 1.140.2 (#2458) * chore(main): release 1.140.2 * chore: generate libraries at Wed Jun 25 15:17:43 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 15 +++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 36 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2af20bc0d..e739db507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.140.2](https://github.com/googleapis/java-pubsub/compare/v1.140.1...v1.140.2) (2025-06-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.51.0 ([#2457](https://github.com/googleapis/java-pubsub/issues/2457)) ([d74215a](https://github.com/googleapis/java-pubsub/commit/d74215a6f1e641ba75997e2e43bef348fb9c4a3c)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.0 ([#2443](https://github.com/googleapis/java-pubsub/issues/2443)) ([d4599d9](https://github.com/googleapis/java-pubsub/commit/d4599d93b780b6ef20ad44582aeb8c1cd35f99d4)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.1 ([#2452](https://github.com/googleapis/java-pubsub/issues/2452)) ([b4af237](https://github.com/googleapis/java-pubsub/commit/b4af2370bb875ee8d0047f67a72e8c6d62547a12)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 ([#2461](https://github.com/googleapis/java-pubsub/issues/2461)) ([715916a](https://github.com/googleapis/java-pubsub/commit/715916aeedbe696b9c4b922e4fb2bbf76f8b201a)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.36.0 ([#2440](https://github.com/googleapis/java-pubsub/issues/2440)) ([50a3eb9](https://github.com/googleapis/java-pubsub/commit/50a3eb9276b4711b8161a021d055238abc0e20de)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.31.1 ([#2442](https://github.com/googleapis/java-pubsub/issues/2442)) ([a0be1bb](https://github.com/googleapis/java-pubsub/commit/a0be1bbe601575f05fb00f6d616b51de8f23238d)) +* Update dependency org.easymock:easymock to v5.6.0 ([#2069](https://github.com/googleapis/java-pubsub/issues/2069)) ([5f144a4](https://github.com/googleapis/java-pubsub/commit/5f144a461c6749ec7e2cf900399f386094451244)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2462](https://github.com/googleapis/java-pubsub/issues/2462)) ([ee8e5c7](https://github.com/googleapis/java-pubsub/commit/ee8e5c7166f2ac4eb706241e42f4ce84afcc2668)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2464](https://github.com/googleapis/java-pubsub/issues/2464)) ([7a0af37](https://github.com/googleapis/java-pubsub/commit/7a0af37c01e747d8f40145b7b4438eaadab9e01a)) + ## [1.140.1](https://github.com/googleapis/java-pubsub/compare/v1.140.0...v1.140.1) (2025-06-05) diff --git a/README.md b/README.md index ecb5073a8..e95c7dac3 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.2" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c3c00331d..8c13ed2e4 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.2-SNAPSHOT + 1.140.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 4b91056aa..2259f5aff 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index e5b303f56..6e53bdc88 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/pom.xml b/pom.xml index 04b9470b3..a46a71466 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.2-SNAPSHOT + 1.140.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 8527118a9..757b7e5d1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4154d9dda..f19d599a2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/versions.txt b/versions.txt index 0cab85816..908613795 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.1:1.140.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT +google-cloud-pubsub:1.140.2:1.140.2 +grpc-google-cloud-pubsub-v1:1.122.2:1.122.2 +proto-google-cloud-pubsub-v1:1.122.2:1.122.2 From 8271399cc6348f69ba034b676cce2aa7592122a4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:15:04 -0400 Subject: [PATCH 515/656] chore: Update generation configuration at Fri Jun 27 02:36:05 UTC 2025 (#2468) * chore: Update generation configuration at Thu Jun 26 02:35:43 UTC 2025 * chore: Update generation configuration at Fri Jun 27 02:36:05 UTC 2025 * chore: generate libraries at Fri Jun 27 02:36:34 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- generation_config.yaml | 2 +- .../reflect-config.json | 18 + .../pubsub/v1/IngestionFailureEvent.java | 3126 +++++++++++++++-- .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 437 +-- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 48 +- .../v1/StreamingPullResponseOrBuilder.java | 12 +- .../main/proto/google/pubsub/v1/pubsub.proto | 33 +- 12 files changed, 3187 insertions(+), 511 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7838b82ee..c01f3faec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index d8e6dfe51..b6e7827d2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 8a883235bc76e941ef745a5b5465878dadc9c440 +googleapis_commitish: 9ae4ee8191efa397c23f8ec13deb5d8e9bc69f02 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index f0c86a2e7..fb920745f 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2213,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$MessageTransformationFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$MessageTransformationFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason", "queryAllDeclaredConstructors": true, diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index e678aa647..640c8f154 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -1383,6 +1383,463 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface MessageTransformationFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Set when a Pub/Sub message fails to get published due to a message
    +   * transformation error.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} + */ + public static final class MessageTransformationFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + MessageTransformationFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MessageTransformationFailureReason.newBuilder() to construct. + private MessageTransformationFailureReason( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageTransformationFailureReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageTransformationFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + 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.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + 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.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + 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.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + 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.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason 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; + } + + /** + * + * + *
    +     * Set when a Pub/Sub message fails to get published due to a message
    +     * transformation error.
    +     * 
    + * + * Protobuf type {@code + * google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageTransformationFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CloudStorageFailureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) @@ -1591,6 +2048,54 @@ public interface CloudStorageFailureOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); } @@ -1652,6 +2157,7 @@ public enum ReasonCase AVRO_FAILURE_REASON(5), API_VIOLATION_REASON(6), SCHEMA_VIOLATION_REASON(7), + MESSAGE_TRANSFORMATION_FAILURE_REASON(8), REASON_NOT_SET(0); private final int value; @@ -1677,6 +2183,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 7: return SCHEMA_VIOLATION_REASON; + case 8: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -2008,6 +2516,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 8; + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 8; + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2043,6 +2620,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 8) { + output.writeMessage( + 8, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -2076,6 +2659,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2106,6 +2696,10 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 8: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -2139,6 +2733,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 8: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -2297,6 +2895,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -2362,6 +2963,9 @@ private void buildPartialOneofs( if (reasonCase_ == 7 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 8 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -2443,6 +3047,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -2512,7 +3122,15 @@ public Builder mergeFrom( getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 7; break; - } // case 58 + } // case 58 + case 66: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3576,6 +4194,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 8; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 8) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 8) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 8) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 8) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 8)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 8; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3818,6 +4704,54 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } @@ -3878,6 +4812,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -3901,6 +4836,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -4188,6 +5125,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4222,6 +5228,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -4253,6 +5265,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4281,6 +5300,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -4312,6 +5335,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -4468,6 +5495,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -4533,6 +5563,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -4612,6 +5645,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -4681,6 +5720,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5233,36 +6280,285 @@ public Builder clearApiViolationReason() { *
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -5270,90 +6566,94 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - schemaViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ @java.lang.Override - public boolean hasSchemaViolationReason() { - return reasonCase_ == 6; + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; } /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason - getSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } else { - if (reasonCase_ == 6) { - return schemaViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -5362,25 +6662,26 @@ public boolean hasSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5388,23 +6689,24 @@ public Builder setSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder builderForValue) { - if (schemaViolationReasonBuilder_ == null) { + if (messageTransformationFailureReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5412,23 +6714,27 @@ public Builder setSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6 + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) .mergeFrom(value) .buildPartial(); } else { @@ -5436,13 +6742,13 @@ public Builder mergeSchemaViolationReason( } onChanged(); } else { - if (reasonCase_ == 6) { - schemaViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5450,26 +6756,27 @@ public Builder mergeSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 6) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; } - schemaViolationReasonBuilder_.clear(); + messageTransformationFailureReasonBuilder_.clear(); } return this; } @@ -5478,39 +6785,42 @@ public Builder clearSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder - getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { - return schemaViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -5519,37 +6829,42 @@ public Builder clearSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { - if (schemaViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 6)) { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } - schemaViolationReasonBuilder_ = + messageTransformationFailureReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 6; + reasonCase_ = 7; onChanged(); - return schemaViolationReasonBuilder_; + return messageTransformationFailureReasonBuilder_; } @java.lang.Override @@ -5794,6 +7109,54 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase getReasonCase(); } @@ -5856,6 +7219,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -5879,6 +7243,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -6166,6 +7532,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6200,6 +7635,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -6231,6 +7672,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6260,6 +7708,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -6291,6 +7743,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -6450,6 +7906,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -6517,6 +7976,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -6595,7 +8057,13 @@ public Builder mergeFrom( } case SCHEMA_VIOLATION_REASON: { - mergeSchemaViolationReason(other.getSchemaViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); break; } case REASON_NOT_SET: @@ -6667,6 +8135,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7190,22 +8666,272 @@ public Builder mergeApiViolationReason( *
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -7214,41 +8940,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7256,90 +8981,94 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - schemaViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ @java.lang.Override - public boolean hasSchemaViolationReason() { - return reasonCase_ == 6; + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; } /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason - getSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } else { - if (reasonCase_ == 6) { - return schemaViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -7348,25 +9077,26 @@ public boolean hasSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7374,23 +9104,24 @@ public Builder setSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder builderForValue) { - if (schemaViolationReasonBuilder_ == null) { + if (messageTransformationFailureReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7398,23 +9129,27 @@ public Builder setSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6 + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) .mergeFrom(value) .buildPartial(); } else { @@ -7422,13 +9157,13 @@ public Builder mergeSchemaViolationReason( } onChanged(); } else { - if (reasonCase_ == 6) { - schemaViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7436,26 +9171,27 @@ public Builder mergeSchemaViolationReason( * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 6) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; } - schemaViolationReasonBuilder_.clear(); + messageTransformationFailureReasonBuilder_.clear(); } return this; } @@ -7464,39 +9200,42 @@ public Builder clearSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder - getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { - return schemaViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -7505,37 +9244,42 @@ public Builder clearSchemaViolationReason() { * * *
    -       * Optional. The Pub/Sub message failed schema validation.
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { - if (schemaViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 6)) { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } - schemaViolationReasonBuilder_ = + messageTransformationFailureReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 6; + reasonCase_ = 7; onChanged(); - return schemaViolationReasonBuilder_; + return messageTransformationFailureReasonBuilder_; } @java.lang.Override @@ -7781,6 +9525,54 @@ public interface ConfluentCloudFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } @@ -7843,6 +9635,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -7866,6 +9659,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -8130,27 +9925,96 @@ public boolean hasSchemaViolationReason() { if (reasonCase_ == 6) { return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); } /** * * *
    -     * Optional. The Pub/Sub message failed schema validation.
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -8187,6 +10051,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -8218,6 +10088,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8247,6 +10124,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -8278,6 +10159,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -8437,6 +10322,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -8504,6 +10392,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -8585,6 +10476,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -8654,6 +10551,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9525,6 +11430,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9680,45 +11853,93 @@ public interface AwsKinesisFailureReasonOrBuilder * * *
    -     * Optional. The Pub/Sub message failed schema validation.
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ - boolean hasSchemaViolationReason(); + boolean hasMessageTransformationFailureReason(); /** * * *
    -     * Optional. The Pub/Sub message failed schema validation.
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); /** * * *
    -     * Optional. The Pub/Sub message failed schema validation.
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } @@ -9780,6 +12001,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEMA_VIOLATION_REASON(4), + MESSAGE_TRANSFORMATION_FAILURE_REASON(5), REASON_NOT_SET(0); private final int value; @@ -9801,6 +12023,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 4: return SCHEMA_VIOLATION_REASON; + case 5: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -10038,6 +12262,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when applying a message transformation to
    +     * the Pub/Sub message.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10065,6 +12358,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 5) { + output.writeMessage( + 5, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -10088,6 +12387,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10112,6 +12418,10 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 5: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -10137,6 +12447,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 5: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -10291,6 +12605,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -10351,6 +12668,9 @@ private void buildPartialOneofs( if (reasonCase_ == 4 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 5 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -10425,6 +12745,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -10481,6 +12807,14 @@ public Builder mergeFrom( reasonCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11096,6 +13430,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when applying a message transformation to
    +       * the Pub/Sub message.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index adf9eb067..0456c10b4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index b70b613ec..324cf524a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index f60b3eab7..6d51da2db 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -494,7 +498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\203\022\n" + + "\005ERROR\020\005\"\270\027\n" + "\025IngestionFailureEvent\022\022\n" + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" @@ -510,70 +514,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" + "\021AvroFailureReason\032\027\n" - + "\025SchemaViolationReason\032\225\003\n" + + "\025SchemaViolationReason\032$\n" + + "\"MessageTransformationFailureReason\032\230\004\n" + "\023CloudStorageFailure\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" + "\023avro_failure_reason\030\005" + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub" - + ".v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\007" - + " \001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\313\002\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v" + + "1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007 \001" + + "(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\010 \001(\013" + + "2J.google.pubsub.v1.IngestionFailureEven" + + "t.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\316\003\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:" - + ".google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.In" - + "gestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\317\002\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pub" + + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsu" + + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\322\003\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Inge" - + "stionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.g" - + "oogle.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\322\002\n" + + "\024api_violation_reason\030\005 \001(\0132:.g" + + "oogle.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Inge" + + "stionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsub.v1.Ingest" + + "ionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\325\003\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:." - + "google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ing" - + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\335\001\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pu" + + "bsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.IngestionFai" + + "lureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007" + + " \001(\0132J.google.pubsub.v1.IngestionFailu" + + "reEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\340\002\n" + "\027AwsKinesisFailureReason\022\027\n\n" + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" - + "\027schema_violation_reason\030\004 \001(" - + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\027schema_violation_reason\030\004 " + + "\001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\005 \001(" + + "\0132J.google.pubsub.v1.IngestionFailureEve" + + "nt.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + "\020MessageTransform\022>\n" - + "\016javascript_udf\030\002 \001(" - + "\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002" + + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\216\006\n" + "\005Topic\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003" - + " \001(\0132&.google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\026message_storage_policy\030\003 \001(\0132&.goog" + + "le.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + "\017schema_settings\030\006 \001(\0132" + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" @@ -592,13 +610,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" - + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projec" + + "ts/{project}/topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" - + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" - + "\n" + + "attributes\030\002 \003(\0132/.g" + + "oogle.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -620,7 +637,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListTopicsRequest\022D\n" + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + "\022ListTopicsResponse\022,\n" + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" @@ -630,8 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033pubsub.googleapis.com/Topic\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" - + "\036ListTopicSubscriptionsResponse\022A\n" - + "\r" + + "\036ListTopicSubscriptionsResponse\022A\n\r" + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" @@ -658,14 +675,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026" - + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026 \001(\0132" + + "$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t" - + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t \003(\0132*." + + "google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -680,8 +697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027" - + " \001(\0132;.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.S" + + "ubscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" + "\034AnalyticsHubSubscriptionInfo\022\024\n" @@ -694,8 +711,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.co" - + "m/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub." + + "googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -708,12 +725,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,." - + "google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003" - + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004" - + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "attributes\030\002" + + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003 \001(" + + "\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004 \001(\0132*.googl" + + "e.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -732,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005" - + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005 \001(\0162&.g" + + "oogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -749,10 +766,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\013" - + "2/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/." - + "google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -774,8 +791,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" - + "\007message\030\002 \001(" - + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\007message\030\002" + + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + "\026GetSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -832,12 +849,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 " - + "\001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.go" - + "ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub" - + ".v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.Stre" + + "amingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + + "lResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>." + + "google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -855,8 +872,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\0132" - + "3.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003" + + " \003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -869,146 +886,141 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004" - + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003" + + "(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + "\tsnapshots2\010snapshot\"N\n" - + "\022GetSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" - + "\024ListSnapshotsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"i\n" - + "\025ListSnapshotsResponse\0222\n" - + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" - + "\025DeleteSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" - + "\013SeekRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022/\n" - + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" - + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" - + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" - + "\006target\"\016\n" - + "\014SeekResponse2\270\013\n" - + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsu", - "b.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=pro" - + "jects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.g" - + "oogle.pubsub.v1.UpdateTopicRequest\032\027.goo" - + "gle.pubsub.v1.Topic\"C\332A\021topic,update_mas" - + "k\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" - + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." - + "PublishRequest\032!.google.pubsub.v1.Publis" - + "hResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/" - + "{topic=projects/*/topics/*}:publish:\001*\022w" - + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" - + "quest\032\027.google.pubsub.v1.Topic\"/\332A\005topic" - + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" - + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" - + "picsRequest\032$.google.pubsub.v1.ListTopic" - + "sResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{projec" - + "t=projects/*}/topics\022\272\001\n\026ListTopicSubscr" - + "iptions\022/.google.pubsub.v1.ListTopicSubs" - + "criptionsRequest\0320.google.pubsub.v1.List" - + "TopicSubscriptionsResponse\"=\332A\005topic\202\323\344\223" - + "\002/\022-/v1/{topic=projects/*/topics/*}/subs" - + "criptions\022\252\001\n\022ListTopicSnapshots\022+.googl" - + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." - + "google.pubsub.v1.ListTopicSnapshotsRespo" - + "nse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects" - + "/*/topics/*}/snapshots\022|\n\013DeleteTopic\022$." - + "google.pubsub.v1.DeleteTopicRequest\032\026.go" - + "ogle.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1" - + "/{topic=projects/*/topics/*}\022\255\001\n\022DetachS" - + "ubscription\022+.google.pubsub.v1.DetachSub" - + "scriptionRequest\032,.google.pubsub.v1.Deta" - + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" - + "scription=projects/*/subscriptions/*}:de" - + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/pubsub2\322" - + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" - + "oogle.pubsub.v1.Subscription\032\036.google.pu" - + "bsub.v1.Subscription\"^\332A+name,topic,push" - + "_config,ack_deadline_seconds\202\323\344\223\002*\032%/v1/" - + "{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetS" - + "ubscriptionRequest\032\036.google.pubsub.v1.Su" - + "bscription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{" - + "subscription=projects/*/subscriptions/*}" - + "\022\273\001\n\022UpdateSubscription\022+.google.pubsub." - + "v1.UpdateSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"X\332A\030subscription,up" - + "date_mask\202\323\344\223\002722/v1/{subscription.name=" - + "projects/*/subscriptions/*}:\001*\022\246\001\n\021ListS" - + "ubscriptions\022*.google.pubsub.v1.ListSubs" - + "criptionsRequest\032+.google.pubsub.v1.List" - + "SubscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022" - + "&/v1/{project=projects/*}/subscriptions\022" - + "\237\001\n\022DeleteSubscription\022+.google.pubsub.v" - + "1.DeleteSubscriptionRequest\032\026.google.pro" - + "tobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub." - + "v1.ModifyAckDeadlineRequest\032\026.google.pro" - + "tobuf.Empty\"v\332A)subscription,ack_ids,ack" - + "_deadline_seconds\202\323\344\223\002D\"?/v1/{subscripti" - + "on=projects/*/subscriptions/*}:modifyAck" - + "Deadline:\001*\022\250\001\n\013Acknowledge\022$.google.pub" - + "sub.v1.AcknowledgeRequest\032\026.google.proto" - + "buf.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>" - + "\"9/v1/{subscription=projects/*/subscript" - + "ions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google" - + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" - + "1.PullResponse\"\210\001\332A,subscription,return_" - + "immediately,max_messages\332A\031subscription," - + "max_messages\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:pull:\001*\022f\n\rStr" - + "eamingPull\022&.google.pubsub.v1.StreamingP" - + "ullRequest\032\'.google.pubsub.v1.StreamingP" - + "ullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022)" - + ".google.pubsub.v1.ModifyPushConfigReques" - + "t\032\026.google.protobuf.Empty\"d\332A\030subscripti" - + "on,push_config\202\323\344\223\002C\">/v1/{subscription=" - + "projects/*/subscriptions/*}:modifyPushCo" - + "nfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub." - + "v1.GetSnapshotRequest\032\032.google.pubsub.v1" - + ".Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snaps" - + "hot=projects/*/snapshots/*}\022\226\001\n\rListSnap" - + "shots\022&.google.pubsub.v1.ListSnapshotsRe" - + "quest\032\'.google.pubsub.v1.ListSnapshotsRe" - + "sponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=p" - + "rojects/*}/snapshots\022\227\001\n\016CreateSnapshot\022" - + "\'.google.pubsub.v1.CreateSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"@\332A\021name,su" - + "bscription\202\323\344\223\002&\032!/v1/{name=projects/*/s" - + "napshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.goog" - + "le.pubsub.v1.UpdateSnapshotRequest\032\032.goo" - + "gle.pubsub.v1.Snapshot\"L\332A\024snapshot,upda" - + "te_mask\202\323\344\223\002/2*/v1/{snapshot.name=projec" - + "ts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022" - + "\'.google.pubsub.v1.DeleteSnapshotRequest" - + "\032\026.google.protobuf.Empty\"8\332A\010snapshot\202\323\344" - + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" - + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" - + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" - + "\0027\"2/v1/{subscription=projects/*/subscri" - + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." + + "\022Get", + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" + + " \n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Li" + + "stSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespon" + + "se\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1" + + ".SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB" + + "\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsho" + + "t\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/S" + + "napshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022/\n\004time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A" + + "\001\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010" + + "\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q" + + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" + + ".google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036" + + "/v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Up" + + "dateTopic\022$.google.pubsub.v1.UpdateTopic" + + "Request\032\027.google.pubsub.v1.Topic\"C\332A\021top" + + "ic,update_mask\202\323\344\223\002)2$/v1/{topic.name=pr" + + "ojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goog" + + "le.pubsub.v1.PublishRequest\032!.google.pub" + + "sub.v1.PublishResponse\"C\332A\016topic,message" + + "s\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}" + + ":publish:\001*\022w\n\010GetTopic\022!.google.pubsub." + + "v1.GetTopicRequest\032\027.google.pubsub.v1.To" + + "pic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects" + + "/*/topics/*}\022\212\001\n\nListTopics\022#.google.pub" + + "sub.v1.ListTopicsRequest\032$.google.pubsub" + + ".v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!" + + "\022\037/v1/{project=projects/*}/topics\022\272\001\n\026Li" + + "stTopicSubscriptions\022/.google.pubsub.v1." + + "ListTopicSubscriptionsRequest\0320.google.p" + + "ubsub.v1.ListTopicSubscriptionsResponse\"" + + "=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/t" + + "opics/*}/subscriptions\022\252\001\n\022ListTopicSnap" + + "shots\022+.google.pubsub.v1.ListTopicSnapsh" + + "otsRequest\032,.google.pubsub.v1.ListTopicS" + + "napshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{t" + + "opic=projects/*/topics/*}/snapshots\022|\n\013D" + + "eleteTopic\022$.google.pubsub.v1.DeleteTopi" + + "cRequest\032\026.google.protobuf.Empty\"/\332A\005top" + + "ic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*" + + "}\022\255\001\n\022DetachSubscription\022+.google.pubsub" + + ".v1.DetachSubscriptionRequest\032,.google.p" + + "ubsub.v1.DetachSubscriptionResponse\"<\202\323\344" + + "\223\0026\"4/v1/{subscription=projects/*/subscr" + + "iptions/*}:detach\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pu" - + "bsubProtoP\001Z5cloud.google.com/go/pubsub/" - + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" - + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" - + "oogle::Cloud::PubSub::V1b\006proto3" + + "auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSub" + + "scription\022\036.google.pubsub.v1.Subscriptio" + + "n\032\036.google.pubsub.v1.Subscription\"^\332A+na" + + "me,topic,push_config,ack_deadline_second" + + "s\202\323\344\223\002*\032%/v1/{name=projects/*/subscripti" + + "ons/*}:\001*\022\241\001\n\017GetSubscription\022(.google.p" + + "ubsub.v1.GetSubscriptionRequest\032\036.google" + + ".pubsub.v1.Subscription\"D\332A\014subscription" + + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" + + "scriptions/*}\022\273\001\n\022UpdateSubscription\022+.g" + + "oogle.pubsub.v1.UpdateSubscriptionReques" + + "t\032\036.google.pubsub.v1.Subscription\"X\332A\030su" + + "bscription,update_mask\202\323\344\223\002722/v1/{subsc" + + "ription.name=projects/*/subscriptions/*}" + + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" + + "b.v1.ListSubscriptionsRequest\032+.google.p" + + "ubsub.v1.ListSubscriptionsResponse\"8\332A\007p" + + "roject\202\323\344\223\002(\022&/v1/{project=projects/*}/s" + + "ubscriptions\022\237\001\n\022DeleteSubscription\022+.go" + + "ogle.pubsub.v1.DeleteSubscriptionRequest" + + "\032\026.google.protobuf.Empty\"D\332A\014subscriptio" + + "n\202\323\344\223\002/*-/v1/{subscription=projects/*/su" + + "bscriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.g" + + "oogle.pubsub.v1.ModifyAckDeadlineRequest" + + "\032\026.google.protobuf.Empty\"v\332A)subscriptio" + + "n,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge" + + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" + + ".google.protobuf.Empty\"[\332A\024subscription," + + "ack_ids\202\323\344\223\002>\"9/v1/{subscription=project" + + "s/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004" + + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" + + "ogle.pubsub.v1.PullResponse\"\210\001\332A,subscri" + + "ption,return_immediately,max_messages\332A\031" + + "subscription,max_messages\202\323\344\223\0027\"2/v1/{su" + + "bscription=projects/*/subscriptions/*}:p" + + "ull:\001*\022f\n\rStreamingPull\022&.google.pubsub." + + "v1.StreamingPullRequest\032\'.google.pubsub." + + "v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modif" + + "yPushConfig\022).google.pubsub.v1.ModifyPus" + + "hConfigRequest\032\026.google.protobuf.Empty\"d" + + "\332A\030subscription,push_config\202\323\344\223\002C\">/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.g" + + "oogle.pubsub.v1.GetSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002" + + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" + + "\022\226\001\n\rListSnapshots\022&.google.pubsub.v1.Li" + + "stSnapshotsRequest\032\'.google.pubsub.v1.Li" + + "stSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/" + + "v1/{project=projects/*}/snapshots\022\227\001\n\016Cr" + + "eateSnapshot\022\'.google.pubsub.v1.CreateSn" + + "apshotRequest\032\032.google.pubsub.v1.Snapsho" + + "t\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name" + + "=projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSn" + + "apshot\022\'.google.pubsub.v1.UpdateSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"L\332A\024" + + "snapshot,update_mask\202\323\344\223\002/2*/v1/{snapsho" + + "t.name=projects/*/snapshots/*}:\001*\022\213\001\n\016De" + + "leteSnapshot\022\'.google.pubsub.v1.DeleteSn" + + "apshotRequest\032\026.google.protobuf.Empty\"8\332" + + "A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects" + + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" + + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" + + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" + + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsubB\252\001\n\024com.google." + + "pubsub.v1B\013PubsubProtoP\001Z5cloud.google.c" + + "om/go/pubsub/v2/apiv1/pubsubpb;pubsubpb\252" + + "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" + + "PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1190,8 +1202,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, @@ -1202,10 +1220,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroFailureReason", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, @@ -1216,10 +1235,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, @@ -1230,10 +1250,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, @@ -1244,15 +1265,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(8); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, new java.lang.String[] { - "StreamArn", "PartitionKey", "SequenceNumber", "SchemaViolationReason", "Reason", + "StreamArn", + "PartitionKey", + "SequenceNumber", + "SchemaViolationReason", + "MessageTransformationFailureReason", + "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index a687600cc..330b0ece6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 12a8c09bb..4f1cb824e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 1a67990a5..677345113 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -4300,7 +4300,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -4319,7 +4319,7 @@ public boolean hasAcknowledgeConfirmation() { * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -4341,7 +4341,7 @@ public boolean hasAcknowledgeConfirmation() { * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -4365,7 +4365,7 @@ public boolean hasAcknowledgeConfirmation() { * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -4384,7 +4384,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -4407,7 +4407,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -5422,7 +5422,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5440,7 +5440,7 @@ public boolean hasAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5466,7 +5466,7 @@ public boolean hasAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5493,7 +5493,7 @@ public Builder setAcknowledgeConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5518,7 +5518,7 @@ public Builder setAcknowledgeConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5552,7 +5552,7 @@ public Builder mergeAcknowledgeConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5575,7 +5575,7 @@ public Builder clearAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5594,7 +5594,7 @@ public Builder clearAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5618,7 +5618,7 @@ public Builder clearAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5655,7 +5655,7 @@ public Builder clearAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5673,7 +5673,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5699,7 +5699,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5726,7 +5726,7 @@ public Builder setModifyAckDeadlineConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5751,7 +5751,7 @@ public Builder setModifyAckDeadlineConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5785,7 +5785,7 @@ public Builder mergeModifyAckDeadlineConfirmation( * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5808,7 +5808,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5827,7 +5827,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * @@ -5851,7 +5851,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -     * set to `true`.
    +     * set to `true` and is not guaranteed to be populated.
          * 
    * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 7d885e257..1a6fedfa8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -95,7 +95,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -111,7 +111,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -127,7 +127,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -142,7 +142,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -158,7 +158,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * @@ -175,7 +175,7 @@ public interface StreamingPullResponseOrBuilder * *
        * Optional. This field will only be set if `enable_exactly_once_delivery` is
    -   * set to `true`.
    +   * set to `true` and is not guaranteed to be populated.
        * 
    * * diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 2792133a4..5a8bb0768 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -553,6 +553,10 @@ message IngestionFailureEvent { // validation violation. message SchemaViolationReason {} + // Set when a Pub/Sub message fails to get published due to a message + // transformation error. + message MessageTransformationFailureReason {} + // Failure when ingesting from a Cloud Storage source. message CloudStorageFailure { // Optional. Name of the Cloud Storage bucket used for ingestion. @@ -580,6 +584,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 8 [(google.api.field_behavior) = OPTIONAL]; } } @@ -608,6 +617,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -636,6 +650,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -664,6 +683,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -683,6 +707,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 5 [(google.api.field_behavior) = OPTIONAL]; } } @@ -2154,12 +2183,12 @@ message StreamingPullResponse { [(google.api.field_behavior) = OPTIONAL]; // Optional. This field will only be set if `enable_exactly_once_delivery` is - // set to `true`. + // set to `true` and is not guaranteed to be populated. AcknowledgeConfirmation acknowledge_confirmation = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. This field will only be set if `enable_exactly_once_delivery` is - // set to `true`. + // set to `true` and is not guaranteed to be populated. ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(google.api.field_behavior) = OPTIONAL]; From fe08a6f1f6ee18e97c752f82786016999f6ab12c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Jul 2025 20:25:05 +0200 Subject: [PATCH 516/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.52.0 (#2467) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4da77cb86..cca86d8b6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.51.0 + 2.52.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f19d599a2..85c6bff9b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.51.0 + 2.52.0 com.google.cloud From fa51a01ed39393b7cad25fb39a1c87099def830a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Jul 2025 20:25:12 +0200 Subject: [PATCH 517/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.2 (#2469) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index cca86d8b6..8ab514c00 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.1 + 2.53.2 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 85c6bff9b..1fd3ad923 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.1 + 2.53.2 com.google.cloud.opentelemetry From 07db0a17aa8524f5268330e9dc88d10f8492025f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Jul 2025 17:36:17 +0200 Subject: [PATCH 518/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.63.0 (#2473) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 75cc4aacd..07d1ef433 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.62.0 + 26.63.0 pom import From f74f9829bbd7bd8a9c58c1dc619d1e3605e1cc78 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:36:41 -0400 Subject: [PATCH 519/656] chore: Update generation configuration at Fri Jul 4 02:35:50 UTC 2025 (#2472) * chore: Update generation configuration at Sat Jun 28 02:34:06 UTC 2025 * chore: Update generation configuration at Sun Jun 29 02:43:28 UTC 2025 * chore: Update generation configuration at Tue Jul 1 02:44:51 UTC 2025 * chore: Update generation configuration at Wed Jul 2 02:36:11 UTC 2025 * chore: Update generation configuration at Thu Jul 3 02:37:02 UTC 2025 * chore: Update generation configuration at Fri Jul 4 02:35:50 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index b6e7827d2..0f3363109 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 9ae4ee8191efa397c23f8ec13deb5d8e9bc69f02 +googleapis_commitish: f9d6fe4a6ad9ed89dfc315f284124d2104377940 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 2b0e8e0b58432f0975c15d0d01f185dc81de6caf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Jul 2025 17:37:06 +0200 Subject: [PATCH 520/656] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2471) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c01f3faec..7838b82ee 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 1a0627ee9d3150eb5f58beef30469b6e7e3fce64 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 8 Jul 2025 09:33:15 -0400 Subject: [PATCH 521/656] chore: Update generation configuration at Tue Jul 8 02:36:59 UTC 2025 (#2474) * chore: Update generation configuration at Tue Jul 8 02:36:59 UTC 2025 * chore: generate libraries at Tue Jul 8 02:37:28 UTC 2025 --- .github/workflows/hermetic_library_generation.yaml | 2 +- README.md | 2 +- generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7838b82ee..c01f3faec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/README.md b/README.md index e95c7dac3..cf7f4e7ee 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.62.0 + 26.63.0 pom import diff --git a/generation_config.yaml b/generation_config.yaml index 0f3363109..af9df72e2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: f9d6fe4a6ad9ed89dfc315f284124d2104377940 +googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From e1657cbeae5f2c3c9680ef6b5ff2b1ea5549f4ba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Jul 2025 15:50:51 +0200 Subject: [PATCH 522/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 (#2477) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 895aae407..5885bfef4 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 8c13ed2e4..c3d39cc9e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.0 + 3.50.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index a46a71466..c98d64031 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.0 + 3.50.1 From e7c0b5d44f0ad53adfac6ec26572baad54d04dee Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Jul 2025 15:52:50 +0200 Subject: [PATCH 523/656] deps: update googleapis/sdk-platform-java action to v2.60.1 (#2475) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c01f3faec..f611b78e2 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From bd9f3850efa77ce759b4f281aecd9645666cb0f7 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Thu, 10 Jul 2025 11:42:07 -0700 Subject: [PATCH 524/656] feat: next release from main branch is 1.141.0 (#2481) --- .github/release-please.yml | 4 ++++ .github/sync-repo-settings.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index c2b8a4cdb..c71b9317f 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -46,3 +46,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.137.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.140.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 310f09976..3e4d39bcd 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -196,6 +196,25 @@ branchProtectionRules: - javadoc - library_generation - unmanaged_dependency_check + - pattern: 1.140.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image A' + - 'Kokoro - Test: Java GraalVM Native Image B' + - 'Kokoro - Test: Java GraalVM Native Image C' + - javadoc + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin From 96a23544fce609c7b19a00638a767926c304d3f8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Jul 2025 21:32:10 +0200 Subject: [PATCH 525/656] deps: update dependency com.google.cloud:google-cloud-core to v2.58.1 (#2476) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8ab514c00..7776eaf37 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1fd3ad923..83f3492a8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 07d1ef433..bd0290e2a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests From 13735a1e69645ff65a0b970da752236eb7a9d878 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Jul 2025 21:35:34 +0200 Subject: [PATCH 526/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.140.2 (#2466) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7776eaf37..1aeb7a45f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2 From b46496c0615971301770b7d855264f11d101e085 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 11:17:50 -0400 Subject: [PATCH 527/656] chore(main): release 1.140.3-SNAPSHOT (#2465) * chore(main): release 1.140.3-SNAPSHOT * chore: generate libraries at Thu Jul 10 19:36:19 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index cf7f4e7ee..91582a3df 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index c3d39cc9e..75527a324 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.2 + 1.140.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2259f5aff..f582aeafb 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 6e53bdc88..fc88dc2f8 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index c98d64031..c03041a97 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.2 + 1.140.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 757b7e5d1..6a14fcb4f 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 83f3492a8..1c4668c33 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 908613795..30a1ce2fa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.2:1.140.2 -grpc-google-cloud-pubsub-v1:1.122.2:1.122.2 -proto-google-cloud-pubsub-v1:1.122.2:1.122.2 +google-cloud-pubsub:1.140.2:1.140.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT From c9ef2cda2c6ad20d5e57fe3ccf69f845f7ef36b7 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:52:42 -0400 Subject: [PATCH 528/656] chore: update generator config to 2.60.1 (#2485) * chore: update generator config to 2.60.1 * chore: generate libraries at Fri Jul 11 20:03:15 UTC 2025 --------- Co-authored-by: cloud-java-bot --- .github/scripts/update_generation_config.sh | 6 ++++-- .github/workflows/update_generation_config.yaml | 3 +++ .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- generation_config.yaml | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index fff56bf5d..3b890a76b 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -15,8 +15,10 @@ set -e function get_latest_released_version() { local group_id=$1 local artifact_id=$2 - json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json") - latest=$(jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< "${json_content}" | sort -V | tail -n 1) + group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")" + url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml" + xml_content=$(curl -s --fail "${url}") + latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}") if [[ -z "${latest}" ]]; then echo "The latest version of ${group_id}:${artifact_id} is empty." echo "The returned json from maven.org is invalid: ${json_content}" diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index cd2d5fd5a..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -30,6 +30,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Install Dependencies + shell: bash + run: sudo apt-get update && sudo apt-get install -y libxml2-utils - name: Update params in generation config to latest shell: bash run: | diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9..a094c860a 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index fd0015918..67607b066 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02..657b13dfd 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/generation_config.yaml b/generation_config.yaml index af9df72e2..ddf4fab93 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -gapic_generator_version: 2.59.0 +gapic_generator_version: 2.60.1 googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac libraries_bom_version: 26.61.0 libraries: From 025e54f3678e7e6c75511b3e7bfa8d09a094c0f8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:51:53 -0400 Subject: [PATCH 529/656] chore(main): release 1.141.0 (#2483) * chore(main): release 1.141.0 * chore: generate libraries at Fri Jul 11 20:53:39 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 23 +++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e739db507..a0a898859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.141.0](https://github.com/googleapis/java-pubsub/compare/v1.140.2...v1.141.0) (2025-07-11) + + +### Features + +* Add MessageTransformationFailureReason to IngestionFailureEvent ([8271399](https://github.com/googleapis/java-pubsub/commit/8271399cc6348f69ba034b676cce2aa7592122a4)) +* Next release from main branch is 1.141.0 ([#2481](https://github.com/googleapis/java-pubsub/issues/2481)) ([bd9f385](https://github.com/googleapis/java-pubsub/commit/bd9f3850efa77ce759b4f281aecd9645666cb0f7)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.60.1 ([c9ef2cd](https://github.com/googleapis/java-pubsub/commit/c9ef2cda2c6ad20d5e57fe3ccf69f845f7ef36b7)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.52.0 ([#2467](https://github.com/googleapis/java-pubsub/issues/2467)) ([fe08a6f](https://github.com/googleapis/java-pubsub/commit/fe08a6f1f6ee18e97c752f82786016999f6ab12c)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.1 ([#2476](https://github.com/googleapis/java-pubsub/issues/2476)) ([96a2354](https://github.com/googleapis/java-pubsub/commit/96a23544fce609c7b19a00638a767926c304d3f8)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.2 ([#2469](https://github.com/googleapis/java-pubsub/issues/2469)) ([fa51a01](https://github.com/googleapis/java-pubsub/commit/fa51a01ed39393b7cad25fb39a1c87099def830a)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#2477](https://github.com/googleapis/java-pubsub/issues/2477)) ([e1657cb](https://github.com/googleapis/java-pubsub/commit/e1657cbeae5f2c3c9680ef6b5ff2b1ea5549f4ba)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2471](https://github.com/googleapis/java-pubsub/issues/2471)) ([2b0e8e0](https://github.com/googleapis/java-pubsub/commit/2b0e8e0b58432f0975c15d0d01f185dc81de6caf)) +* Update googleapis/sdk-platform-java action to v2.60.1 ([#2475](https://github.com/googleapis/java-pubsub/issues/2475)) ([e7c0b5d](https://github.com/googleapis/java-pubsub/commit/e7c0b5d44f0ad53adfac6ec26572baad54d04dee)) + ## [1.140.2](https://github.com/googleapis/java-pubsub/compare/v1.140.1...v1.140.2) (2025-06-25) diff --git a/README.md b/README.md index 91582a3df..4376c27f8 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 75527a324..96581e244 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.3-SNAPSHOT + 1.141.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index f582aeafb..1106a8f22 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index fc88dc2f8..cd6845fcc 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/pom.xml b/pom.xml index c03041a97..9d0517a25 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.3-SNAPSHOT + 1.141.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 6a14fcb4f..47bf9bf74 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1c4668c33..169936011 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/versions.txt b/versions.txt index 30a1ce2fa..8c6b2355d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.2:1.140.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT +google-cloud-pubsub:1.141.0:1.141.0 +grpc-google-cloud-pubsub-v1:1.123.0:1.123.0 +proto-google-cloud-pubsub-v1:1.123.0:1.123.0 From 9416cc99f826b80412b0e5eba0068a35b82390c6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:08 +0200 Subject: [PATCH 530/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.3 (#2486) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1aeb7a45f..f7c7284b5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.2 + 2.53.3 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 169936011..3f03825c5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.2 + 2.53.3 com.google.cloud.opentelemetry From 2692688f15f9585bf3bdd6bc0a8ed54d93316bef Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:16 +0200 Subject: [PATCH 531/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.0 (#2488) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f7c7284b5..f5b505b16 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.141.0 From 5a454b9c36419dcfaf79edb1ec1d066b20836f87 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:55 +0200 Subject: [PATCH 532/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 (#2489) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f5b505b16..4d198d923 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.52.0 + 2.53.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3f03825c5..caff894c6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.52.0 + 2.53.0 com.google.cloud From a55e214ffad8371eb82a1d49b8b1eadcacf15392 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:00:42 +0200 Subject: [PATCH 533/656] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.8 (#2492) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4d198d923..5f793dfc0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index caff894c6..dd5afff07 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index bd0290e2a..73d85124e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -80,7 +80,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 com.google.protobuf From 9f73ef0dcaabb4a536741336eb6cfc6601b75f65 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:57:01 +0200 Subject: [PATCH 534/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 (#2494) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 5885bfef4..789bdc741 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 96581e244..52641e485 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.1 + 3.50.2 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 9d0517a25..b95acbf73 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.1 + 3.50.2 From 9a1c17e50e5fc9a807532d289a7f6e8b5d412f59 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:57:12 +0200 Subject: [PATCH 535/656] deps: update dependency com.google.cloud:google-cloud-core to v2.58.2 (#2493) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5f793dfc0..ad822e1cb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dd5afff07..4b0d47dde 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 73d85124e..a14bffb2c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests From 165cb76180d4641dee75fbe5f188355ddea117b6 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 28 Jul 2025 12:01:58 -0400 Subject: [PATCH 536/656] chore: manual update of update_generation_config.sh (#2496) * chore: manual update of update_generation_config.sh * chore: generate libraries at Thu Jul 24 18:22:47 UTC 2025 * Revert "chore: generate libraries at Thu Jul 24 18:22:47 UTC 2025" This reverts commit f0eb4602c2bb0009467e65e7479f6a676e32bcc8. --------- Co-authored-by: cloud-java-bot --- .github/scripts/update_generation_config.sh | 4 ++-- .github/workflows/update_generation_config.yaml | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index 3b890a76b..a0b95de6c 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running @@ -174,4 +174,4 @@ if [ -z "${pr_num}" ]; then else git push gh pr edit "${pr_num}" --title "${title}" --body "${title}" -fi +fi \ No newline at end of file diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..7b14069ce 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -18,7 +18,6 @@ on: schedule: - cron: '0 2 * * *' workflow_dispatch: - jobs: update-generation-config: runs-on: ubuntu-24.04 @@ -43,5 +42,4 @@ jobs: --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} \ No newline at end of file From 65cca00e4d27502cab540581a95a047163bdd8d3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 28 Jul 2025 18:03:39 +0200 Subject: [PATCH 537/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.64.0 (#2491) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a14bffb2c..bca088753 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.63.0 + 26.64.0 pom import From 7afae21e5e3df16742646363ca199ec14c42bc21 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 28 Jul 2025 12:37:43 -0400 Subject: [PATCH 538/656] chore: Update generation configuration at Mon Jul 28 16:03:32 UTC 2025 (#2497) * chore: Update generation configuration at Thu Jul 24 18:23:31 UTC 2025 * chore: generate libraries at Thu Jul 24 18:23:58 UTC 2025 * chore: Update generation configuration at Sat Jul 26 02:39:49 UTC 2025 * chore: Update generation configuration at Mon Jul 28 16:03:32 UTC 2025 * chore: generate libraries at Mon Jul 28 16:23:28 UTC 2025 --- .github/scripts/update_generation_config.sh | 4 ++-- .github/workflows/hermetic_library_generation.yaml | 2 +- .github/workflows/update_generation_config.yaml | 4 +++- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 4 ++-- generation_config.yaml | 6 +++--- 8 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index a0b95de6c..3b890a76b 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -ex +set -e # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running @@ -174,4 +174,4 @@ if [ -z "${pr_num}" ]; then else git push gh pr edit "${pr_num}" --title "${title}" --body "${title}" -fi \ No newline at end of file +fi diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index f611b78e2..5912d6f06 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 7b14069ce..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -18,6 +18,7 @@ on: schedule: - cron: '0 2 * * *' workflow_dispatch: + jobs: update-generation-config: runs-on: ubuntu-24.04 @@ -42,4 +43,5 @@ jobs: --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} \ No newline at end of file + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index a094c860a..96b4fed86 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 67607b066..76f048331 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 657b13dfd..277aa2338 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 4376c27f8..b63b19479 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.140.2 + 1.141.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.61.0') +implementation platform('com.google.cloud:libraries-bom:26.64.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index ddf4fab93..5002d12fa 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.60.1 -googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac -libraries_bom_version: 26.61.0 +gapic_generator_version: 2.60.2 +googleapis_commitish: 6588689155df35bb46974c477505990f0034f569 +libraries_bom_version: 26.64.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 3af2eb3f550880da9a2e5f5cb0afb1a81d8207e3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 13:50:31 -0400 Subject: [PATCH 539/656] chore(main): release 1.141.1-SNAPSHOT (#2487) * chore(main): release 1.141.1-SNAPSHOT * chore: generate libraries at Mon Jul 28 16:38:47 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index b63b19479..dff26b3ca 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.63.0 + 26.64.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 52641e485..f8e69eedc 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.0 + 1.141.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1106a8f22..205240028 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index cd6845fcc..fac3b0a8b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index b95acbf73..f216bf329 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.0 + 1.141.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 47bf9bf74..6be699868 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4b0d47dde..ebe2705b3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8c6b2355d..b8fca6711 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.0:1.141.0 -grpc-google-cloud-pubsub-v1:1.123.0:1.123.0 -proto-google-cloud-pubsub-v1:1.123.0:1.123.0 +google-cloud-pubsub:1.141.0:1.141.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT From 1d0d92938fbcd2258315796001043751de5cf703 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:08:27 +0000 Subject: [PATCH 540/656] chore(main): release 1.141.1 (#2499) :robot: I have created a release *beep* *boop* --- ## [1.141.1](https://togithub.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([7afae21](https://togithub.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) * Remove element_count_limit and request_byte_limit from pubsub_gapic.yaml ([7afae21](https://togithub.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#2489](https://togithub.com/googleapis/java-pubsub/issues/2489)) ([5a454b9](https://togithub.com/googleapis/java-pubsub/commit/5a454b9c36419dcfaf79edb1ec1d066b20836f87)) * Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#2493](https://togithub.com/googleapis/java-pubsub/issues/2493)) ([9a1c17e](https://togithub.com/googleapis/java-pubsub/commit/9a1c17e50e5fc9a807532d289a7f6e8b5d412f59)) * Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#2486](https://togithub.com/googleapis/java-pubsub/issues/2486)) ([9416cc9](https://togithub.com/googleapis/java-pubsub/commit/9416cc99f826b80412b0e5eba0068a35b82390c6)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#2494](https://togithub.com/googleapis/java-pubsub/issues/2494)) ([9f73ef0](https://togithub.com/googleapis/java-pubsub/commit/9f73ef0dcaabb4a536741336eb6cfc6601b75f65)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#2492](https://togithub.com/googleapis/java-pubsub/issues/2492)) ([a55e214](https://togithub.com/googleapis/java-pubsub/commit/a55e214ffad8371eb82a1d49b8b1eadcacf15392)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a898859..def6aea7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.1](https://github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([7afae21](https://github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) +* Remove element_count_limit and request_byte_limit from pubsub_gapic.yaml ([7afae21](https://github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#2489](https://github.com/googleapis/java-pubsub/issues/2489)) ([5a454b9](https://github.com/googleapis/java-pubsub/commit/5a454b9c36419dcfaf79edb1ec1d066b20836f87)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#2493](https://github.com/googleapis/java-pubsub/issues/2493)) ([9a1c17e](https://github.com/googleapis/java-pubsub/commit/9a1c17e50e5fc9a807532d289a7f6e8b5d412f59)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#2486](https://github.com/googleapis/java-pubsub/issues/2486)) ([9416cc9](https://github.com/googleapis/java-pubsub/commit/9416cc99f826b80412b0e5eba0068a35b82390c6)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#2494](https://github.com/googleapis/java-pubsub/issues/2494)) ([9f73ef0](https://github.com/googleapis/java-pubsub/commit/9f73ef0dcaabb4a536741336eb6cfc6601b75f65)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#2492](https://github.com/googleapis/java-pubsub/issues/2492)) ([a55e214](https://github.com/googleapis/java-pubsub/commit/a55e214ffad8371eb82a1d49b8b1eadcacf15392)) + ## [1.141.0](https://github.com/googleapis/java-pubsub/compare/v1.140.2...v1.141.0) (2025-07-11) diff --git a/README.md b/README.md index dff26b3ca..3534c8cc5 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index f8e69eedc..e257d9348 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.1-SNAPSHOT + 1.141.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 205240028..d53aaf336 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index fac3b0a8b..d75ed328a 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/pom.xml b/pom.xml index f216bf329..b982b08a1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.1-SNAPSHOT + 1.141.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 6be699868..5e2df1ebf 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ebe2705b3..228218e16 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/versions.txt b/versions.txt index b8fca6711..14dda3573 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.0:1.141.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT +google-cloud-pubsub:1.141.1:1.141.1 +grpc-google-cloud-pubsub-v1:1.123.1:1.123.1 +proto-google-cloud-pubsub-v1:1.123.1:1.123.1 From 9ad399911a3afb14824f40f4ef41cf0a25edaeea Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:24:24 -0400 Subject: [PATCH 541/656] chore(main): release 1.141.2-SNAPSHOT (#2500) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e257d9348..824e7922e 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.1 + 1.141.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d53aaf336..15c3e0484 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index d75ed328a..bf458a0ed 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index b982b08a1..7c62cb508 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.1 + 1.141.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 5e2df1ebf..5fd4c8522 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 228218e16..0e889e14d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 14dda3573..506d47cbe 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.1:1.141.1 -grpc-google-cloud-pubsub-v1:1.123.1:1.123.1 -proto-google-cloud-pubsub-v1:1.123.1:1.123.1 +google-cloud-pubsub:1.141.1:1.141.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT From 5ee8e9b6fc57acc61a1c66b14ebbec4ec9345769 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:49:15 -0400 Subject: [PATCH 542/656] chore: Update generation configuration at Sat Aug 2 02:39:40 UTC 2025 (#2501) * chore: Update generation configuration at Tue Jul 29 02:50:28 UTC 2025 * chore: Update generation configuration at Wed Jul 30 02:45:20 UTC 2025 * chore: Update generation configuration at Thu Jul 31 02:45:14 UTC 2025 * chore: Update generation configuration at Fri Aug 1 02:51:36 UTC 2025 * chore: Update generation configuration at Sat Aug 2 02:39:40 UTC 2025 * chore: generate libraries at Sat Aug 2 02:40:16 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3534c8cc5..023476b89 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.64.0') +implementation platform('com.google.cloud:libraries-bom:26.65.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 5002d12fa..0e634acc8 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.60.2 -googleapis_commitish: 6588689155df35bb46974c477505990f0034f569 -libraries_bom_version: 26.64.0 +googleapis_commitish: efe27dbe161b24710f4e95415e8f38922ae6f453 +libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From f911cb04067c09b46f93f0e7a0f2949e000c58a3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Aug 2025 23:53:11 +0200 Subject: [PATCH 543/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.65.0 (#2504) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index bca088753..f68fdf606 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.64.0 + 26.65.0 pom import From 224c269e3bd0ae4cfc4b24ac85495911b8e2b90c Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 5 Aug 2025 08:42:10 -0400 Subject: [PATCH 544/656] fix: Use a separate cached thread pool for handling ack and modack response callback for EOD-enabled subscriptions (#2505) --- .../v1/StreamingSubscriberConnection.java | 21 +++++++++++++++++-- .../google/cloud/pubsub/v1/Subscriber.java | 14 +++++++++++++ .../v1/StreamingSubscriberConnectionTest.java | 1 + 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 26411942f..6a53b0206 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -61,6 +61,8 @@ import java.util.Set; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -97,6 +99,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; + private final ExecutorService eodAckCallbackExecutor; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -128,6 +131,7 @@ private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; + eodAckCallbackExecutor = builder.eodAckCallbackExecutor; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -455,7 +459,7 @@ private void sendAckOperations( .setSubscription(subscription) .addAllAckIds(ackIdsInRequest) .build()); - ApiFutures.addCallback(ackFuture, callback, directExecutor()); + ApiFutures.addCallback(ackFuture, callback, getCallbackExecutor()); pendingOperations++; } ackOperationsWaiter.incrementPendingCount(pendingOperations); @@ -504,7 +508,7 @@ private void sendModackOperations( .addAllAckIds(ackIdsInRequest) .setAckDeadlineSeconds(modackRequestData.getDeadlineExtensionSeconds()) .build()); - ApiFutures.addCallback(modackFuture, callback, directExecutor()); + ApiFutures.addCallback(modackFuture, callback, getCallbackExecutor()); pendingOperations++; } } @@ -716,6 +720,13 @@ public void run() { }; } + private Executor getCallbackExecutor() { + if (!getExactlyOnceDeliveryEnabled()) { + return directExecutor(); + } + return eodAckCallbackExecutor; + } + /** Builder of {@link StreamingSubscriberConnection StreamingSubscriberConnections}. */ public static final class Builder { private MessageReceiver receiver; @@ -736,6 +747,7 @@ public static final class Builder { private boolean useLegacyFlowControl; private ScheduledExecutorService executor; private ScheduledExecutorService systemExecutor; + private ExecutorService eodAckCallbackExecutor; private ApiClock clock; private boolean enableOpenTelemetryTracing; @@ -826,6 +838,11 @@ public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { return this; } + public Builder setEodAckCallbackExecutor(ExecutorService eodAckCallbackExecutor) { + this.eodAckCallbackExecutor = eodAckCallbackExecutor; + return this; + } + public Builder setClock(ApiClock clock) { this.clock = clock; return this; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 36ec5dc36..49f809855 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -51,6 +51,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; @@ -150,6 +151,9 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac // An instantiation of the SystemExecutorProvider used for processing acks // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; + // An executor used for handling ack and modack callbacks when exactly-once delivery is enabled. + private final ExecutorService eodAckCallbackExecutor; + private final Distribution ackLatencyDistribution = new Distribution(Math.toIntExact(MAX_STREAM_ACK_DEADLINE.getSeconds()) + 1); @@ -200,6 +204,15 @@ private Subscriber(Builder builder) { backgroundResources.add(new ExecutorAsBackgroundResource((alarmsExecutor))); } + // A cached thread pool will create new threads as needed but can reuse previously constructed + // threads when available, which helps to improve performance. + ThreadFactory eodAckCallbackThreadFactory = + new ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("Subscriber-EOD-CallbackExecutor-%d") + .build(); + eodAckCallbackExecutor = Executors.newCachedThreadPool(eodAckCallbackThreadFactory); + TransportChannelProvider channelProvider = builder.channelProvider; if (channelProvider.acceptsPoolSize()) { channelProvider = channelProvider.withPoolSize(numPullers); @@ -416,6 +429,7 @@ private void startStreamingConnections() { .setUseLegacyFlowControl(useLegacyFlowControl) .setExecutor(executor) .setSystemExecutor(alarmsExecutor) + .setEodAckCallbackExecutor(eodAckCallbackExecutor) .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 335ccbdc3..559b72822 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -587,6 +587,7 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setFlowController(mock(FlowController.class)) .setExecutor(executor) .setSystemExecutor(systemExecutor) + .setEodAckCallbackExecutor(systemExecutor) .setClock(clock) .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMinDurationPerAckExtensionDefaultUsed(true) From 6bf8e62b1144568292e832dc8031a70a2c5b9ad7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:21 +0200 Subject: [PATCH 545/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.0 (#2506) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ad822e1cb..ffa4bd4d7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.53.0 + 2.54.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0e889e14d..67201e132 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.53.0 + 2.54.0 com.google.cloud From a7be2a74327499b1acb2fe159e6f7465d6c8f798 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:31 +0200 Subject: [PATCH 546/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 (#2508) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 789bdc741..518bef3c0 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.51.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 824e7922e..93390c862 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.2 + 3.51.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 7c62cb508..2ef396c0a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.2 + 3.51.0 From 32df6b694f9aee2cf7132c2d817f9736d69060f3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:43 +0200 Subject: [PATCH 547/656] deps: update googleapis/sdk-platform-java action to v2.61.0 (#2509) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 5912d6f06..5a97a4380 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.61.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 070cf07b1d529c34d4f633b37ce1d35d14768325 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:45:04 +0200 Subject: [PATCH 548/656] deps: update dependency com.google.cloud:google-cloud-core to v2.59.0 (#2507) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ffa4bd4d7..b122d5d4f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 67201e132..524e441a7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f68fdf606..ab18a0351 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests From 0fd589e2ee80730b442f569b770fe16208feb4ba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 15:51:15 +0200 Subject: [PATCH 549/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.54.0 (#2510) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b122d5d4f..0bc96b562 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.3 + 2.54.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 524e441a7..554f39cb7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.3 + 2.54.0 com.google.cloud.opentelemetry From 42eb5992557457a5ae4512334267113266c220ac Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:51:23 -0400 Subject: [PATCH 550/656] chore: Update generation configuration at Tue Aug 5 02:48:03 UTC 2025 (#2511) * chore: Update generation configuration at Tue Aug 5 02:48:03 UTC 2025 * chore: generate libraries at Tue Aug 5 02:48:35 UTC 2025 --- .github/scripts/update_generation_config.sh | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- generation_config.yaml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/scripts/update_generation_config.sh b/.github/scripts/update_generation_config.sh index 3b890a76b..92efcf881 100644 --- a/.github/scripts/update_generation_config.sh +++ b/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 96b4fed86..783727ef0 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 76f048331..83c7afee0 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 277aa2338..3a9bbf8c3 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 023476b89..5a0554615 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.64.0 + 26.65.0 pom import diff --git a/generation_config.yaml b/generation_config.yaml index 0e634acc8..dd5aa2fb7 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.60.2 -googleapis_commitish: efe27dbe161b24710f4e95415e8f38922ae6f453 +gapic_generator_version: 2.61.0 +googleapis_commitish: 8c74a4f9ad52cfd7a7d1f6427fa0a0511377a395 libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub From 66512d18d5f2f49023595904997787e1ac79a485 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 16:34:28 +0200 Subject: [PATCH 551/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.1 (#2503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://redirect.github.com/googleapis/java-pubsub) | `1.141.0` -> `1.141.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.141.0/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.141.0/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.141.1`](https://redirect.github.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11411-2025-07-28) [Compare Source](https://redirect.github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) ##### Bug Fixes - **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([7afae21](https://redirect.github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) - Remove element\_count\_limit and request\_byte\_limit from pubsub\_gapic.yaml ([7afae21](https://redirect.github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#​2489](https://redirect.github.com/googleapis/java-pubsub/issues/2489)) ([5a454b9](https://redirect.github.com/googleapis/java-pubsub/commit/5a454b9c36419dcfaf79edb1ec1d066b20836f87)) - Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#​2493](https://redirect.github.com/googleapis/java-pubsub/issues/2493)) ([9a1c17e](https://redirect.github.com/googleapis/java-pubsub/commit/9a1c17e50e5fc9a807532d289a7f6e8b5d412f59)) - Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#​2486](https://redirect.github.com/googleapis/java-pubsub/issues/2486)) ([9416cc9](https://redirect.github.com/googleapis/java-pubsub/commit/9416cc99f826b80412b0e5eba0068a35b82390c6)) - Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#​2494](https://redirect.github.com/googleapis/java-pubsub/issues/2494)) ([9f73ef0](https://redirect.github.com/googleapis/java-pubsub/commit/9f73ef0dcaabb4a536741336eb6cfc6601b75f65)) - Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#​2492](https://redirect.github.com/googleapis/java-pubsub/issues/2492)) ([a55e214](https://redirect.github.com/googleapis/java-pubsub/commit/a55e214ffad8371eb82a1d49b8b1eadcacf15392))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0bc96b562..1607800bc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1 From 6ad7be067bbca46b5aa1bb368b93523e765d0c7c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 13:42:46 -0400 Subject: [PATCH 552/656] chore(main): release 1.141.2 (#2512) * chore(main): release 1.141.2 * chore: generate libraries at Tue Aug 5 13:52:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index def6aea7c..58b8e5f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.2](https://github.com/googleapis/java-pubsub/compare/v1.141.1...v1.141.2) (2025-08-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.61.0 ([42eb599](https://github.com/googleapis/java-pubsub/commit/42eb5992557457a5ae4512334267113266c220ac)) +* Use a separate cached thread pool for handling ack and modack response callback for EOD-enabled subscriptions ([#2505](https://github.com/googleapis/java-pubsub/issues/2505)) ([224c269](https://github.com/googleapis/java-pubsub/commit/224c269e3bd0ae4cfc4b24ac85495911b8e2b90c)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.0 ([#2506](https://github.com/googleapis/java-pubsub/issues/2506)) ([6bf8e62](https://github.com/googleapis/java-pubsub/commit/6bf8e62b1144568292e832dc8031a70a2c5b9ad7)) +* Update dependency com.google.cloud:google-cloud-core to v2.59.0 ([#2507](https://github.com/googleapis/java-pubsub/issues/2507)) ([070cf07](https://github.com/googleapis/java-pubsub/commit/070cf07b1d529c34d4f633b37ce1d35d14768325)) +* Update dependency com.google.cloud:google-cloud-storage to v2.54.0 ([#2510](https://github.com/googleapis/java-pubsub/issues/2510)) ([0fd589e](https://github.com/googleapis/java-pubsub/commit/0fd589e2ee80730b442f569b770fe16208feb4ba)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 ([#2508](https://github.com/googleapis/java-pubsub/issues/2508)) ([a7be2a7](https://github.com/googleapis/java-pubsub/commit/a7be2a74327499b1acb2fe159e6f7465d6c8f798)) +* Update googleapis/sdk-platform-java action to v2.61.0 ([#2509](https://github.com/googleapis/java-pubsub/issues/2509)) ([32df6b6](https://github.com/googleapis/java-pubsub/commit/32df6b694f9aee2cf7132c2d817f9736d69060f3)) + ## [1.141.1](https://github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) diff --git a/README.md b/README.md index 5a0554615..079fa2627 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.2" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 93390c862..d0d84a48c 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.2-SNAPSHOT + 1.141.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2
    diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 15c3e0484..1b8eb53ba 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index bf458a0ed..8ca5debdf 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/pom.xml b/pom.xml index 2ef396c0a..af9faf125 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.2-SNAPSHOT + 1.141.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 5fd4c8522..2aaa7f1ba 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 554f39cb7..ba0abd057 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/versions.txt b/versions.txt index 506d47cbe..8e8325a1c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.1:1.141.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT +google-cloud-pubsub:1.141.2:1.141.2 +grpc-google-cloud-pubsub-v1:1.123.2:1.123.2 +proto-google-cloud-pubsub-v1:1.123.2:1.123.2 From 420f42db192f9daa6a8603c2d1d826e56ae4e7d6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 18:54:24 +0000 Subject: [PATCH 553/656] chore(main): release 1.141.3-SNAPSHOT (#2513) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 079fa2627..62378f340 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index d0d84a48c..6d1e67bfe 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.2 + 1.141.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1b8eb53ba..e4d72b6ca 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 8ca5debdf..15c550c04 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index af9faf125..9a4b49b59 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.2 + 1.141.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 2aaa7f1ba..5fe483fb2 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ba0abd057..7f6ae9026 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8e8325a1c..8daa0cfae 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.2:1.141.2 -grpc-google-cloud-pubsub-v1:1.123.2:1.123.2 -proto-google-cloud-pubsub-v1:1.123.2:1.123.2 +google-cloud-pubsub:1.141.2:1.141.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT From db956bd215c8f9082f0fbfbd76088d29eafe88d7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 6 Aug 2025 23:11:33 +0200 Subject: [PATCH 554/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.2 (#2514) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1607800bc..7776439af 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2 From c43fb1df1af898583d71eda99f2bec784ae1442d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 6 Aug 2025 17:46:31 -0400 Subject: [PATCH 555/656] test: Add test for CreateCloudStorageSubscriptionExample (#2516) --- .../src/test/java/pubsub/AdminIT.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/samples/snippets/src/test/java/pubsub/AdminIT.java b/samples/snippets/src/test/java/pubsub/AdminIT.java index 60c85f340..2d31e17f7 100644 --- a/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -33,6 +33,7 @@ import com.google.cloud.bigquery.TableInfo; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Duration; import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.TopicName; import java.io.ByteArrayOutputStream; @@ -73,6 +74,12 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String cloudStorageSubscriptionId = + "iam-cloud-storage-subscription-" + _suffix; + private static final String cloudStorageFilenamePrefix = "log_events_"; + private static final String cloudStorageFilenameSuffix = ".txt"; + private static final Duration cloudStorageMaxDuration = + Duration.newBuilder().setSeconds(300).build(); private static final String gcpServiceAccount = "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; // AWS Kinesis ingestion settings. @@ -322,6 +329,22 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("Created a BigQuery subscription:"); assertThat(bout.toString()).contains(bigqueryTablePath); + bout.reset(); + // Test create a Cloud Storage subscription. + CreateCloudStorageSubscriptionExample.createCloudStorageSubscription( + projectId, + topicId, + cloudStorageSubscriptionId, + cloudStorageBucket, + cloudStorageFilenamePrefix, + cloudStorageFilenameSuffix, + cloudStorageMaxDuration); + assertThat(bout.toString()).contains("Created a CloudStorage subscription:"); + assertThat(bout.toString()).contains(cloudStorageBucket); + assertThat(bout.toString()).contains(cloudStorageFilenamePrefix); + assertThat(bout.toString()).contains(cloudStorageFilenameSuffix); + assertThat(bout.toString()).contains(Long.toString(cloudStorageMaxDuration.getSeconds())); + bout.reset(); // Test delete subscription. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); @@ -329,6 +352,7 @@ public void testAdmin() throws Exception { DeleteSubscriptionExample.deleteSubscriptionExample(projectId, orderedSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, exactlyOnceSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, bigquerySubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, cloudStorageSubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); bout.reset(); From b67acf1294249be308568f49f287897ae55ced08 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 11 Aug 2025 21:35:42 +0200 Subject: [PATCH 556/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.55.0 (#2517) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7776439af..8b7a1d0a4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.54.0 + 2.55.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7f6ae9026..e127c01c1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.54.0 + 2.55.0 com.google.cloud.opentelemetry From 64c43a4c3c416bba9752a922fa6e7e2543b4943c Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:35:56 -0400 Subject: [PATCH 557/656] chore: Update generation configuration at Mon Aug 11 02:45:37 UTC 2025 (#2515) * chore: Update generation configuration at Wed Aug 6 02:45:51 UTC 2025 * chore: Update generation configuration at Thu Aug 7 02:47:11 UTC 2025 * chore: generate libraries at Thu Aug 7 02:47:42 UTC 2025 * chore: Update generation configuration at Fri Aug 8 02:45:46 UTC 2025 * chore: Update generation configuration at Sat Aug 9 02:37:14 UTC 2025 * chore: Update generation configuration at Sun Aug 10 02:47:41 UTC 2025 * chore: Update generation configuration at Mon Aug 11 02:45:37 UTC 2025 --- README.md | 2 +- generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62378f340..cde790fe0 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2 ``` diff --git a/generation_config.yaml b/generation_config.yaml index dd5aa2fb7..1656f749d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.61.0 -googleapis_commitish: 8c74a4f9ad52cfd7a7d1f6427fa0a0511377a395 +googleapis_commitish: f4902d9b4168b4d1b162f5c5bcf149086579fa26 libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub From 67695bc50eafc475866eb6c300b3359083ecfe00 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Aug 2025 00:11:02 +0200 Subject: [PATCH 558/656] deps: update dependency org.assertj:assertj-core to v3.27.4 (#2518) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9a4b49b59..0a4456a71 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.3 + 3.27.4 test From 409398a40f71866d5a84b4542d582777ee240a08 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Aug 2025 00:11:17 +0200 Subject: [PATCH 559/656] deps: update actions/checkout action to v5 (#2520) --- .github/workflows/hermetic_library_generation.yaml | 2 +- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .github/workflows/update_generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 5a97a4380..a243eaedd 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -32,7 +32,7 @@ jobs: else echo "SHOULD_RUN=true" >> $GITHUB_ENV fi - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 518bef3c0..f2522b214 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From ffeb017a58ca486688105738f180d70df33a74de Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 19 Aug 2025 16:10:49 -0400 Subject: [PATCH 560/656] fix: Use the system executor instead of a separate thread pool for EOD ack/modack callbacks (#2526) * fix: Use the system executor instead of a separate thread pool for EOD ack/modack callbacks * fix: Add obsolete method to clirr ignored file * fix: Update clirr ignore rule --- google-cloud-pubsub/clirr-ignored-differences.xml | 6 ++++++ .../pubsub/v1/StreamingSubscriberConnection.java | 14 ++++---------- .../com/google/cloud/pubsub/v1/Subscriber.java | 13 ------------- .../v1/StreamingSubscriberConnectionTest.java | 1 - 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/google-cloud-pubsub/clirr-ignored-differences.xml b/google-cloud-pubsub/clirr-ignored-differences.xml index 866962660..e4629e32e 100644 --- a/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/google-cloud-pubsub/clirr-ignored-differences.xml @@ -15,4 +15,10 @@ *(org.threeten.bp.Duration) *(java.time.Duration) + + 7002 + + com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder + * setEodAckCallbackExecutor(*) + diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 6a53b0206..baf96f385 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -62,7 +62,6 @@ import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; -import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -99,7 +98,6 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; - private final ExecutorService eodAckCallbackExecutor; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -131,7 +129,6 @@ private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; - eodAckCallbackExecutor = builder.eodAckCallbackExecutor; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -720,11 +717,14 @@ public void run() { }; } + // If exactly-once is enabled, we hold a lock for the ack/modack response callback, so we want to + // avoid using the directExecutor() which runs the callback on the invoking thread. Instead, we + // want to schedule the callback to be run on a different thread. private Executor getCallbackExecutor() { if (!getExactlyOnceDeliveryEnabled()) { return directExecutor(); } - return eodAckCallbackExecutor; + return systemExecutor; } /** Builder of {@link StreamingSubscriberConnection StreamingSubscriberConnections}. */ @@ -747,7 +747,6 @@ public static final class Builder { private boolean useLegacyFlowControl; private ScheduledExecutorService executor; private ScheduledExecutorService systemExecutor; - private ExecutorService eodAckCallbackExecutor; private ApiClock clock; private boolean enableOpenTelemetryTracing; @@ -838,11 +837,6 @@ public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { return this; } - public Builder setEodAckCallbackExecutor(ExecutorService eodAckCallbackExecutor) { - this.eodAckCallbackExecutor = eodAckCallbackExecutor; - return this; - } - public Builder setClock(ApiClock clock) { this.clock = clock; return this; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 49f809855..b149bed37 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -51,7 +51,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; @@ -151,8 +150,6 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac // An instantiation of the SystemExecutorProvider used for processing acks // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; - // An executor used for handling ack and modack callbacks when exactly-once delivery is enabled. - private final ExecutorService eodAckCallbackExecutor; private final Distribution ackLatencyDistribution = new Distribution(Math.toIntExact(MAX_STREAM_ACK_DEADLINE.getSeconds()) + 1); @@ -204,15 +201,6 @@ private Subscriber(Builder builder) { backgroundResources.add(new ExecutorAsBackgroundResource((alarmsExecutor))); } - // A cached thread pool will create new threads as needed but can reuse previously constructed - // threads when available, which helps to improve performance. - ThreadFactory eodAckCallbackThreadFactory = - new ThreadFactoryBuilder() - .setDaemon(true) - .setNameFormat("Subscriber-EOD-CallbackExecutor-%d") - .build(); - eodAckCallbackExecutor = Executors.newCachedThreadPool(eodAckCallbackThreadFactory); - TransportChannelProvider channelProvider = builder.channelProvider; if (channelProvider.acceptsPoolSize()) { channelProvider = channelProvider.withPoolSize(numPullers); @@ -429,7 +417,6 @@ private void startStreamingConnections() { .setUseLegacyFlowControl(useLegacyFlowControl) .setExecutor(executor) .setSystemExecutor(alarmsExecutor) - .setEodAckCallbackExecutor(eodAckCallbackExecutor) .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 559b72822..335ccbdc3 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -587,7 +587,6 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setFlowController(mock(FlowController.class)) .setExecutor(executor) .setSystemExecutor(systemExecutor) - .setEodAckCallbackExecutor(systemExecutor) .setClock(clock) .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMinDurationPerAckExtensionDefaultUsed(true) From 44ff0873171f8fe2e7cd79b4550f8ec94ea2c99a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:11:19 +0200 Subject: [PATCH 561/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.32.0 (#2524) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8b7a1d0a4..24afd4fa6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e127c01c1..1c1459c10 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ab18a0351..848b7b4e1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 From f986ed3f7647620a756e2f18667a39da3df4da57 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 19 Aug 2025 16:11:51 -0400 Subject: [PATCH 562/656] chore: Update generation configuration at Sat Aug 16 02:35:28 UTC 2025 (#2522) * chore: Update generation configuration at Tue Aug 12 02:36:25 UTC 2025 * chore: generate libraries at Tue Aug 12 02:37:05 UTC 2025 * chore: Update generation configuration at Wed Aug 13 02:37:07 UTC 2025 * chore: Update generation configuration at Thu Aug 14 02:38:18 UTC 2025 * chore: Update generation configuration at Fri Aug 15 02:39:14 UTC 2025 * chore: Update generation configuration at Sat Aug 16 02:35:28 UTC 2025 * chore: generate libraries at Sat Aug 16 02:35:59 UTC 2025 --- .github/workflows/update_generation_config.yaml | 2 +- README.md | 2 +- generation_config.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/README.md b/README.md index cde790fe0..33e35185e 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.65.0') +implementation platform('com.google.cloud:libraries-bom:26.66.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 1656f749d..c649bc0e2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.61.0 -googleapis_commitish: f4902d9b4168b4d1b162f5c5bcf149086579fa26 -libraries_bom_version: 26.65.0 +googleapis_commitish: d869249c5d3da60af39dc7968140468ef7d1fdd6 +libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 4a1bdf52c0b11c6cb53dc8cb34cb40476db1f93d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:16:27 +0200 Subject: [PATCH 563/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.66.0 (#2525) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 848b7b4e1..47044183a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.65.0 + 26.66.0 pom import From 0678a74dc22f73cd8ec8c4893c1a8dd60449b128 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:16:43 +0200 Subject: [PATCH 564/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.1 (#2523) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 24afd4fa6..feec89011 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.0 + 2.54.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1c1459c10..e6378272a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.0 + 2.54.1 com.google.cloud From e424d11ffe0fbe242c59dec44ac1af2f9bd80173 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:39:50 +0200 Subject: [PATCH 565/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 (#2528) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index f2522b214..a22902fda 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.51.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 6d1e67bfe..7971699e5 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.51.0 + 3.52.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 0a4456a71..8742f6dfa 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.51.0 + 3.52.0 From 0166e21012f0bc2ccb2e832d6f27e60ad3382456 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:42:36 +0200 Subject: [PATCH 566/656] deps: update dependency com.google.cloud:google-cloud-core to v2.60.0 (#2527) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index feec89011..50d75d8ff 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e6378272a..89058c51f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 47044183a..387d07524 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests From 65e324e11b74e8cf78534dea2e5835c1d5f24506 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 20 Aug 2025 12:55:31 -0400 Subject: [PATCH 567/656] chore: Update generation configuration at Wed Aug 20 02:34:22 UTC 2025 (#2529) * chore: Update generation configuration at Wed Aug 20 02:34:22 UTC 2025 * chore: generate libraries at Wed Aug 20 02:34:51 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- generation_config.yaml | 4 ++-- .../pubsub/v1/stub/GrpcPublisherStub.java | 12 ++++++++++++ .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 13 +++++++++++++ .../pubsub/v1/stub/GrpcSubscriberStub.java | 19 +++++++++++++++++++ 9 files changed, 51 insertions(+), 7 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index a243eaedd..9cdd9a056 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.61.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 783727ef0..5816d6107 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 83c7afee0..7986fd673 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 3a9bbf8c3..acecfce1b 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 33e35185e..7e17d415b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.65.0 + 26.66.0 pom import diff --git a/generation_config.yaml b/generation_config.yaml index c649bc0e2..afd0df121 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.61.0 -googleapis_commitish: d869249c5d3da60af39dc7968140468ef7d1fdd6 +gapic_generator_version: 2.62.0 +googleapis_commitish: 3b2a2ae91db23a9c879b2b725d6a5de6bd64a800 libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 7d44f29bf..df360653c 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -68,6 +68,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/CreateTopic") .setRequestMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor updateTopicMethodDescriptor = @@ -76,6 +77,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/UpdateTopic") .setRequestMarshaller(ProtoUtils.marshaller(UpdateTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor publishMethodDescriptor = @@ -84,6 +86,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/Publish") .setRequestMarshaller(ProtoUtils.marshaller(PublishRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PublishResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getTopicMethodDescriptor = @@ -92,6 +95,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/GetTopic") .setRequestMarshaller(ProtoUtils.marshaller(GetTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -101,6 +105,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/ListTopics") .setRequestMarshaller(ProtoUtils.marshaller(ListTopicsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListTopicsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor< @@ -114,6 +119,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(ListTopicSubscriptionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSubscriptionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -125,6 +131,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(ListTopicSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSnapshotsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor deleteTopicMethodDescriptor = @@ -133,6 +140,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/DeleteTopic") .setRequestMarshaller(ProtoUtils.marshaller(DeleteTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -144,6 +152,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(DetachSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(DetachSubscriptionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -152,6 +161,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -160,6 +170,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -171,6 +182,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createTopicCallable; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 655027011..592a17bf5 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -68,6 +68,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/CreateSchema") .setRequestMarshaller(ProtoUtils.marshaller(CreateSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getSchemaMethodDescriptor = @@ -76,6 +77,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/GetSchema") .setRequestMarshaller(ProtoUtils.marshaller(GetSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -86,6 +88,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(ListSchemasRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -97,6 +100,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ListSchemaRevisionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSchemaRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor commitSchemaMethodDescriptor = @@ -105,6 +109,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/CommitSchema") .setRequestMarshaller(ProtoUtils.marshaller(CommitSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -115,6 +120,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller( ProtoUtils.marshaller(RollbackSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -125,6 +131,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSchemaRevisionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor deleteSchemaMethodDescriptor = @@ -133,6 +140,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchema") .setRequestMarshaller(ProtoUtils.marshaller(DeleteSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -144,6 +152,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ValidateSchemaRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ValidateSchemaResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -155,6 +164,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ValidateMessageRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ValidateMessageResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -163,6 +173,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -171,6 +182,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -182,6 +194,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createSchemaCallable; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 740dec357..8c08d2ad3 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -77,6 +77,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/CreateSubscription") .setRequestMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -87,6 +88,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(GetSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -97,6 +99,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(UpdateSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -108,6 +111,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ListSubscriptionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSubscriptionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -118,6 +122,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -128,6 +133,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(ModifyAckDeadlineRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor acknowledgeMethodDescriptor = @@ -136,6 +142,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Acknowledge") .setRequestMarshaller(ProtoUtils.marshaller(AcknowledgeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor pullMethodDescriptor = @@ -144,6 +151,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Pull") .setRequestMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PullResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -155,6 +163,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(StreamingPullRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(StreamingPullResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -165,6 +174,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(ModifyPushConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getSnapshotMethodDescriptor = @@ -173,6 +183,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -184,6 +195,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -194,6 +206,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -204,6 +217,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -214,6 +228,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor seekMethodDescriptor = @@ -222,6 +237,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Seek") .setRequestMarshaller(ProtoUtils.marshaller(SeekRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SeekResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -230,6 +246,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -238,6 +255,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -249,6 +267,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createSubscriptionCallable; From c2e66d536885348506ed40b13dbdbdf3a09fd439 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 12:55:51 -0400 Subject: [PATCH 568/656] chore(main): release 1.141.3 (#2521) * chore(main): release 1.141.3 * chore: generate libraries at Tue Aug 19 20:43:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 18 ++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 39 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58b8e5f1a..819992899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [1.141.3](https://github.com/googleapis/java-pubsub/compare/v1.141.2...v1.141.3) (2025-08-19) + + +### Bug Fixes + +* Use the system executor instead of a separate thread pool for EOD ack/modack callbacks ([#2526](https://github.com/googleapis/java-pubsub/issues/2526)) ([ffeb017](https://github.com/googleapis/java-pubsub/commit/ffeb017a58ca486688105738f180d70df33a74de)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2520](https://github.com/googleapis/java-pubsub/issues/2520)) ([409398a](https://github.com/googleapis/java-pubsub/commit/409398a40f71866d5a84b4542d582777ee240a08)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.1 ([#2523](https://github.com/googleapis/java-pubsub/issues/2523)) ([0678a74](https://github.com/googleapis/java-pubsub/commit/0678a74dc22f73cd8ec8c4893c1a8dd60449b128)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.0 ([#2527](https://github.com/googleapis/java-pubsub/issues/2527)) ([0166e21](https://github.com/googleapis/java-pubsub/commit/0166e21012f0bc2ccb2e832d6f27e60ad3382456)) +* Update dependency com.google.cloud:google-cloud-storage to v2.55.0 ([#2517](https://github.com/googleapis/java-pubsub/issues/2517)) ([b67acf1](https://github.com/googleapis/java-pubsub/commit/b67acf1294249be308568f49f287897ae55ced08)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 ([#2528](https://github.com/googleapis/java-pubsub/issues/2528)) ([e424d11](https://github.com/googleapis/java-pubsub/commit/e424d11ffe0fbe242c59dec44ac1af2f9bd80173)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.32.0 ([#2524](https://github.com/googleapis/java-pubsub/issues/2524)) ([44ff087](https://github.com/googleapis/java-pubsub/commit/44ff0873171f8fe2e7cd79b4550f8ec94ea2c99a)) +* Update dependency org.assertj:assertj-core to v3.27.4 ([#2518](https://github.com/googleapis/java-pubsub/issues/2518)) ([67695bc](https://github.com/googleapis/java-pubsub/commit/67695bc50eafc475866eb6c300b3359083ecfe00)) + ## [1.141.2](https://github.com/googleapis/java-pubsub/compare/v1.141.1...v1.141.2) (2025-08-05) diff --git a/README.md b/README.md index 7e17d415b..6eb40a178 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.3" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7971699e5..e4ee94db3 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.3-SNAPSHOT + 1.141.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index e4d72b6ca..c66d62599 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 15c550c04..2f7a440ec 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/pom.xml b/pom.xml index 8742f6dfa..58167a983 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.3-SNAPSHOT + 1.141.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 5fe483fb2..faabcab1c 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 89058c51f..293119b78 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/versions.txt b/versions.txt index 8daa0cfae..9f2f9ca64 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.2:1.141.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT +google-cloud-pubsub:1.141.3:1.141.3 +grpc-google-cloud-pubsub-v1:1.123.3:1.123.3 +proto-google-cloud-pubsub-v1:1.123.3:1.123.3 From f687f117fc435ee8b1f15b8802ecc989f1e2747e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Aug 2025 19:17:09 +0200 Subject: [PATCH 569/656] deps: update actions/checkout action to v5 (#2531) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 10a8283292e58b0c73b9c57ff36ddd71b8b83467 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:30 +0200 Subject: [PATCH 570/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.2 (#2538) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 50d75d8ff..79b3b0502 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.1 + 2.54.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 293119b78..fe9beee31 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.1 + 2.54.2 com.google.cloud From 80d9ca10d3a2656852422858f032bb6629102cfb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:38 +0200 Subject: [PATCH 571/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.56.0 (#2536) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 79b3b0502..5a0bc4c10 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.55.0 + 2.56.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fe9beee31..8bdfe392b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.55.0 + 2.56.0 com.google.cloud.opentelemetry From 2ed87d2b7e28af99cfda00b4b69fb5cb2f448584 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:42 +0200 Subject: [PATCH 572/656] deps: update actions/setup-java action to v5 (#2535) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index a22902fda..d3a81f6f1 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v5 with: distribution: temurin java-version: 11 From 47b3ca5ec419f26a73006e93ed9e1b99721e4b95 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:56:22 +0000 Subject: [PATCH 573/656] chore(main): release 1.141.4-SNAPSHOT (#2532) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .github/workflows/update_generation_config.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e4ee94db3..ec321a478 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.3 + 1.141.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c66d62599..51e224519 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 2f7a440ec..44f4f1e78 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 58167a983..a49704741 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.3 + 1.141.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index faabcab1c..0a9099b2c 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8bdfe392b..aa40f731f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9f2f9ca64..af4604c0f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.3:1.141.3 -grpc-google-cloud-pubsub-v1:1.123.3:1.123.3 -proto-google-cloud-pubsub-v1:1.123.3:1.123.3 +google-cloud-pubsub:1.141.3:1.141.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT From f5bc11f28b6364dc65f92948db8b7e36bccf27ce Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:05:03 -0400 Subject: [PATCH 574/656] chore: Update generation configuration at Wed Aug 27 02:32:56 UTC 2025 (#2534) * chore: Update generation configuration at Thu Aug 21 02:35:32 UTC 2025 * chore: generate libraries at Thu Aug 21 02:36:01 UTC 2025 * chore: Update generation configuration at Fri Aug 22 02:33:50 UTC 2025 * chore: Update generation configuration at Sat Aug 23 02:32:45 UTC 2025 * chore: Update generation configuration at Tue Aug 26 02:34:56 UTC 2025 * chore: Update generation configuration at Wed Aug 27 02:32:56 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index afd0df121..69b799df9 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.0 -googleapis_commitish: 3b2a2ae91db23a9c879b2b725d6a5de6bd64a800 +googleapis_commitish: bf317d7c0066ba9ad66b880f5a9a060673db8cb4 libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub From 9fe75506eedf42f31b95ddf2699cf332334caf0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 9 Sep 2025 23:31:45 +0200 Subject: [PATCH 575/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 (#2544) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index d3a81f6f1..b2d77ff31 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ec321a478..ad6324532 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.0 + 3.52.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index a49704741..596c733c2 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.0 + 3.52.1 From 17f28ef853a21303346a305e4d8e9b63a916edc7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 9 Sep 2025 23:36:33 +0200 Subject: [PATCH 576/656] deps: update googleapis/sdk-platform-java action to v2.62.1 (#2545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [googleapis/sdk-platform-java](https://redirect.github.com/googleapis/sdk-platform-java) | action | patch | `v2.62.0` -> `v2.62.1` | --- ### Release Notes
    googleapis/sdk-platform-java (googleapis/sdk-platform-java) ### [`v2.62.1`](https://redirect.github.com/googleapis/sdk-platform-java/releases/tag/v2.62.1) [Compare Source](https://redirect.github.com/googleapis/sdk-platform-java/compare/v2.62.0...v2.62.1) ##### Dependencies - Update auth to 1.39.0 ([#​3898](https://redirect.github.com/googleapis/sdk-platform-java/issues/3898)) ([9a8443d](https://redirect.github.com/googleapis/sdk-platform-java/commit/9a8443d71cdbdb7a693b6da08db72edb85490807))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 9cdd9a056..17d664a6b 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From ac08d5f6ead8071ab0e068e32fd5ae0ae2731c34 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:41:11 -0400 Subject: [PATCH 577/656] chore: Update generation configuration at Tue Sep 9 02:33:07 UTC 2025 (#2540) --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- generation_config.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5816d6107..a562a6398 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 7986fd673..2257ccce6 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index acecfce1b..a9294de35 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 6eb40a178..ffe7c1a0c 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.66.0') +implementation platform('com.google.cloud:libraries-bom:26.67.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 69b799df9..f31495741 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.0 -googleapis_commitish: bf317d7c0066ba9ad66b880f5a9a060673db8cb4 -libraries_bom_version: 26.66.0 +gapic_generator_version: 2.62.1 +googleapis_commitish: 2585041b27d424ed4496d163671a95a7e1af4c31 +libraries_bom_version: 26.67.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 34ed58842bc06bc32bc5e9a30aa7dfad974cf3fe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:13:21 -0400 Subject: [PATCH 578/656] chore(main): release 1.141.4 (#2549) * chore(main): release 1.141.4 * chore: generate libraries at Thu Sep 11 15:18:13 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 819992899..cee972fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.4](https://github.com/googleapis/java-pubsub/compare/v1.141.3...v1.141.4) (2025-09-11) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.1 ([ac08d5f](https://github.com/googleapis/java-pubsub/commit/ac08d5f6ead8071ab0e068e32fd5ae0ae2731c34)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2531](https://github.com/googleapis/java-pubsub/issues/2531)) ([f687f11](https://github.com/googleapis/java-pubsub/commit/f687f117fc435ee8b1f15b8802ecc989f1e2747e)) +* Update actions/setup-java action to v5 ([#2535](https://github.com/googleapis/java-pubsub/issues/2535)) ([2ed87d2](https://github.com/googleapis/java-pubsub/commit/2ed87d2b7e28af99cfda00b4b69fb5cb2f448584)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.2 ([#2538](https://github.com/googleapis/java-pubsub/issues/2538)) ([10a8283](https://github.com/googleapis/java-pubsub/commit/10a8283292e58b0c73b9c57ff36ddd71b8b83467)) +* Update dependency com.google.cloud:google-cloud-storage to v2.56.0 ([#2536](https://github.com/googleapis/java-pubsub/issues/2536)) ([80d9ca1](https://github.com/googleapis/java-pubsub/commit/80d9ca10d3a2656852422858f032bb6629102cfb)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 ([#2544](https://github.com/googleapis/java-pubsub/issues/2544)) ([9fe7550](https://github.com/googleapis/java-pubsub/commit/9fe75506eedf42f31b95ddf2699cf332334caf0d)) +* Update googleapis/sdk-platform-java action to v2.62.1 ([#2545](https://github.com/googleapis/java-pubsub/issues/2545)) ([17f28ef](https://github.com/googleapis/java-pubsub/commit/17f28ef853a21303346a305e4d8e9b63a916edc7)) + ## [1.141.3](https://github.com/googleapis/java-pubsub/compare/v1.141.2...v1.141.3) (2025-08-19) diff --git a/README.md b/README.md index ffe7c1a0c..c9f8d2e12 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.4" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index ad6324532..076e560e6 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.4-SNAPSHOT + 1.141.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4
    diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 51e224519..1039ec7b6 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 44f4f1e78..6ee8ef82b 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/pom.xml b/pom.xml index 596c733c2..129c68107 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.4-SNAPSHOT + 1.141.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0a9099b2c..67c5eafd1 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index aa40f731f..7f7398919 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/versions.txt b/versions.txt index af4604c0f..135801ac7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.3:1.141.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT +google-cloud-pubsub:1.141.4:1.141.4 +grpc-google-cloud-pubsub-v1:1.123.4:1.123.4 +proto-google-cloud-pubsub-v1:1.123.4:1.123.4 From 089dd1da2af86e149e4d909d8a1457f1e3577567 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 22:34:23 +0000 Subject: [PATCH 579/656] chore(main): release 1.141.5-SNAPSHOT (#2550) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 076e560e6..783a9bf74 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.4 + 1.141.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 1039ec7b6..2cf5cac72 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 6ee8ef82b..c1ff71f77 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 129c68107..621fdbe34 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.4 + 1.141.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 67c5eafd1..a40babe3b 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7f7398919..d4cc0a75c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 135801ac7..e52c774a2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.4:1.141.4 -grpc-google-cloud-pubsub-v1:1.123.4:1.123.4 -proto-google-cloud-pubsub-v1:1.123.4:1.123.4 +google-cloud-pubsub:1.141.4:1.141.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT From 83144e6d4110fbe15f4357270a292cfcbcc35dd6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:19:26 +0200 Subject: [PATCH 580/656] deps: update actions/checkout action to v5 (#2539) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 133f8c7995880c2d1e75b69d61c50254d4f9fede Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:21:17 +0200 Subject: [PATCH 581/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.57.0 (#2547) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5a0bc4c10..3eaf2bc86 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.56.0 + 2.57.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d4cc0a75c..2948b63bc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.56.0 + 2.57.0 com.google.cloud.opentelemetry From 9d1d468867e3c83edbc91358b9514ccb7b9bcc2a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:18 +0200 Subject: [PATCH 582/656] test(deps): update dependency com.google.truth:truth to v1.4.5 (#2548) --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 621fdbe34..37acfcb15 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3eaf2bc86..90940eb53 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2948b63bc..4b8bc7f9d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 387d07524..24eeccc25 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -97,7 +97,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test From 49722cb65e3b7cad01cf4389e1cf716a6ac1eb03 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:23 +0200 Subject: [PATCH 583/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.32.1 (#2551) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 90940eb53..ba68a60be 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4b8bc7f9d..9d24e487a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 24eeccc25..58bbbfbfd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 From fbb45cee9e3740f8ac94b5fbaa65b97b8db09b1e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:27 +0200 Subject: [PATCH 584/656] deps: update dependency com.google.cloud:google-cloud-core to v2.60.1 (#2543) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ba68a60be..f597284b7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9d24e487a..979db5619 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 58bbbfbfd..0b722051d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests From e6cebf6c795f00d5ac4cfad822b4d2b5855ef26f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:45 +0200 Subject: [PATCH 585/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.67.0 (#2541) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0b722051d..701be0cc8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.66.0 + 26.67.0 pom import From 0e6f0daccfdca248b3b80ef7dfb0bd7a4baa607c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:26:02 +0200 Subject: [PATCH 586/656] deps: update actions/github-script action to v8 (#2542) --- .github/workflows/auto-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 18d92e5a2..0cda6b04f 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v7 + - uses: actions/github-script@v8 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From c51326a7967e315960faba3b733085ea99cdcab1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:42:41 +0200 Subject: [PATCH 587/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.4 (#2533) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f597284b7..d08e40f87 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.4 From 15b9e66f27cd6e57b808b96f3e15f08b1f0d7727 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 18 Sep 2025 17:42:52 +0200 Subject: [PATCH 588/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.0 (#2553) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d08e40f87..7fdd3c558 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.2 + 2.55.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 979db5619..24d6589d9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.2 + 2.55.0 com.google.cloud From d51bf1e8cf280b2b0c8451edcaeca579c261d6cc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:41:53 +0200 Subject: [PATCH 589/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.68.0 (#2554) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 701be0cc8..439d0dc65 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.67.0 + 26.68.0 pom import From 0623ac54f735b076ccee165fc59a4a088309766a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:49:52 +0200 Subject: [PATCH 590/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 (#2558) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index b2d77ff31..e170e888e 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 783a9bf74..e077cf283 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.1 + 3.52.2 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 37acfcb15..4ecad7774 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.1 + 3.52.2 From 3f1d90186899efe035179363408979a372e85a56 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:51:23 +0200 Subject: [PATCH 591/656] deps: update googleapis/sdk-platform-java action to v2.62.2 (#2559) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 17d664a6b..640f7bbd5 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From c02d304f5213410eda5f26fe98c96a5c1d4bf9d8 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:48:44 -0400 Subject: [PATCH 592/656] chore: Update generation configuration at Wed Sep 24 02:31:26 UTC 2025 (#2546) * chore: Update generation configuration at Wed Sep 10 02:29:46 UTC 2025 * chore: Update generation configuration at Thu Sep 11 02:32:09 UTC 2025 * chore: Update generation configuration at Fri Sep 12 02:29:42 UTC 2025 * chore: Update generation configuration at Sat Sep 13 02:24:06 UTC 2025 * chore: generate libraries at Sat Sep 13 02:24:35 UTC 2025 * chore: Update generation configuration at Sun Sep 14 02:33:57 UTC 2025 * chore: Update generation configuration at Mon Sep 15 02:33:36 UTC 2025 * chore: generate libraries at Mon Sep 15 02:34:02 UTC 2025 * chore: Update generation configuration at Tue Sep 16 02:29:24 UTC 2025 * chore: Update generation configuration at Wed Sep 17 02:29:11 UTC 2025 * chore: Update generation configuration at Thu Sep 18 02:30:55 UTC 2025 * chore: Update generation configuration at Fri Sep 19 02:32:28 UTC 2025 * chore: generate libraries at Fri Sep 19 02:33:07 UTC 2025 * chore: Update generation configuration at Sat Sep 20 02:29:08 UTC 2025 * chore: Update generation configuration at Tue Sep 23 02:29:57 UTC 2025 * chore: generate libraries at Tue Sep 23 02:30:33 UTC 2025 * chore: Update generation configuration at Wed Sep 24 02:31:26 UTC 2025 --- .github/workflows/update_generation_config.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 6 +++--- generation_config.yaml | 6 +++--- renovate.json | 4 +++- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index a562a6398..5554627da 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 2257ccce6..108943740 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index a9294de35..5465e5192 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index c9f8d2e12..35188e749 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.66.0 + 26.68.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.4 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.67.0') +implementation platform('com.google.cloud:libraries-bom:26.68.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index f31495741..c49754bbe 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.1 -googleapis_commitish: 2585041b27d424ed4496d163671a95a7e1af4c31 -libraries_bom_version: 26.67.0 +gapic_generator_version: 2.62.2 +googleapis_commitish: d4a9eb5869a1698d8887a68dd17e5bda9ec802d3 +libraries_bom_version: 26.68.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/renovate.json b/renovate.json index 2f2c18108..7d5a289e6 100644 --- a/renovate.json +++ b/renovate.json @@ -92,5 +92,7 @@ } ], "semanticCommits": true, - "dependencyDashboard": true + "dependencyDashboard": true, + "prConcurrentLimit": 0, + "prHourlyLimit": 0 } From 7978b1a6ee9a826bbca5e257ea8c036863aa50f4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 16:49:12 -0400 Subject: [PATCH 593/656] chore(main): release 1.141.5 (#2552) * chore(main): release 1.141.5 * chore: generate libraries at Wed Sep 24 17:49:42 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 19 +++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 40 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cee972fa9..f314a1985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.141.5](https://github.com/googleapis/java-pubsub/compare/v1.141.4...v1.141.5) (2025-09-24) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.2 ([c02d304](https://github.com/googleapis/java-pubsub/commit/c02d304f5213410eda5f26fe98c96a5c1d4bf9d8)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2539](https://github.com/googleapis/java-pubsub/issues/2539)) ([83144e6](https://github.com/googleapis/java-pubsub/commit/83144e6d4110fbe15f4357270a292cfcbcc35dd6)) +* Update actions/github-script action to v8 ([#2542](https://github.com/googleapis/java-pubsub/issues/2542)) ([0e6f0da](https://github.com/googleapis/java-pubsub/commit/0e6f0daccfdca248b3b80ef7dfb0bd7a4baa607c)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.0 ([#2553](https://github.com/googleapis/java-pubsub/issues/2553)) ([15b9e66](https://github.com/googleapis/java-pubsub/commit/15b9e66f27cd6e57b808b96f3e15f08b1f0d7727)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.1 ([#2543](https://github.com/googleapis/java-pubsub/issues/2543)) ([fbb45ce](https://github.com/googleapis/java-pubsub/commit/fbb45cee9e3740f8ac94b5fbaa65b97b8db09b1e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.57.0 ([#2547](https://github.com/googleapis/java-pubsub/issues/2547)) ([133f8c7](https://github.com/googleapis/java-pubsub/commit/133f8c7995880c2d1e75b69d61c50254d4f9fede)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 ([#2558](https://github.com/googleapis/java-pubsub/issues/2558)) ([0623ac5](https://github.com/googleapis/java-pubsub/commit/0623ac54f735b076ccee165fc59a4a088309766a)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.32.1 ([#2551](https://github.com/googleapis/java-pubsub/issues/2551)) ([49722cb](https://github.com/googleapis/java-pubsub/commit/49722cb65e3b7cad01cf4389e1cf716a6ac1eb03)) +* Update googleapis/sdk-platform-java action to v2.62.2 ([#2559](https://github.com/googleapis/java-pubsub/issues/2559)) ([3f1d901](https://github.com/googleapis/java-pubsub/commit/3f1d90186899efe035179363408979a372e85a56)) + ## [1.141.4](https://github.com/googleapis/java-pubsub/compare/v1.141.3...v1.141.4) (2025-09-11) diff --git a/README.md b/README.md index 35188e749..bb65306ab 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.5" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e077cf283..2f0e77501 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.5-SNAPSHOT + 1.141.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 2cf5cac72..ee7a7a7a7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c1ff71f77..37d8851e6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/pom.xml b/pom.xml index 4ecad7774..48e669018 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.5-SNAPSHOT + 1.141.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index a40babe3b..641554ffe 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 24d6589d9..0021625ae 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/versions.txt b/versions.txt index e52c774a2..fe095e621 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.4:1.141.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT +google-cloud-pubsub:1.141.5:1.141.5 +grpc-google-cloud-pubsub-v1:1.123.5:1.123.5 +proto-google-cloud-pubsub-v1:1.123.5:1.123.5 From c82766a9efb2bb4df01fb7fdcb35259db39e05c7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:06:52 +0100 Subject: [PATCH 594/656] deps: update dependency org.assertj:assertj-core to v3.27.6 (#2560) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 48e669018..9bec0a2fd 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.4 + 3.27.6 test From af8cdd3b04ca8a6ff9b90bb3515694f6cd785c22 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:07:09 -0400 Subject: [PATCH 595/656] chore: Update generation configuration at Sat Sep 27 02:29:08 UTC 2025 (#2565) * chore: Update generation configuration at Thu Sep 25 02:32:59 UTC 2025 * chore: Update generation configuration at Sat Sep 27 02:29:08 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index c49754bbe..7743a7af9 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.2 -googleapis_commitish: d4a9eb5869a1698d8887a68dd17e5bda9ec802d3 +googleapis_commitish: 31b413bc4feb03f6849c718048c2b9998561b5fa libraries_bom_version: 26.68.0 libraries: - api_shortname: pubsub From b7fa49968e85dfeba8a84ea29f8ddf9d33ef22c5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:36 +0100 Subject: [PATCH 596/656] deps: update actions/checkout action to v5 (#2562) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 460bcd9158e7058f710f43200b7b7737eb47839c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:44 +0100 Subject: [PATCH 597/656] deps: update dependency com.google.cloud:google-cloud-core to v2.60.2 (#2557) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7fdd3c558..377f43859 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0021625ae..624aa1545 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 439d0dc65..1387f3270 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests From 6203db21ad7b6d2ba1c105357f547bf15a3cdd5d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:54 +0100 Subject: [PATCH 598/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.5 (#2564) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 377f43859..4dbfc2387 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5 From 66c9ec4a26b76ca384dce71a8ab6bce8cd34b8a3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:11:03 +0100 Subject: [PATCH 599/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 (#2566) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4dbfc2387..e322cb931 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.0 + 2.55.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 624aa1545..8de329de6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.0 + 2.55.1 com.google.cloud From 0189388edb4d618d65f33718922ca1b11f71cb15 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:14:12 +0100 Subject: [PATCH 600/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.58.0 (#2561) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e322cb931..da07fe3c9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.57.0 + 2.58.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8de329de6..ed3ac9108 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.57.0 + 2.58.0 com.google.cloud.opentelemetry From af40810ea0668ce4e8c4d69bdbb4b281073976d0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:40:43 -0400 Subject: [PATCH 601/656] chore: Update generation configuration at Fri Oct 3 02:29:13 UTC 2025 (#2568) * chore: Update generation configuration at Tue Sep 30 02:29:43 UTC 2025 * chore: generate libraries at Tue Sep 30 02:30:17 UTC 2025 * chore: Update generation configuration at Wed Oct 1 02:34:55 UTC 2025 * chore: Update generation configuration at Thu Oct 2 02:29:38 UTC 2025 * chore: Update generation configuration at Fri Oct 3 02:29:13 UTC 2025 * chore: generate libraries at Fri Oct 3 02:29:47 UTC 2025 --- .github/workflows/ci.yaml | 2 +- .../hermetic_library_generation.yaml | 2 +- .../workflows/update_generation_config.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 4 +- generation_config.yaml | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 1 + .../v1/SubscriptionAdminClientTest.java | 2 + .../com/google/pubsub/v1/PubsubProto.java | 285 +++++++++--------- .../pubsub/v1/StreamingPullRequest.java | 105 +++++++ .../v1/StreamingPullRequestOrBuilder.java | 15 + .../main/proto/google/pubsub/v1/pubsub.proto | 5 + 14 files changed, 282 insertions(+), 153 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 10acf46ac..b9b8be0c3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [11, 17, 21, 24] + java: [11, 17, 21, 25] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 640f7bbd5..0e85f8052 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.3 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5554627da..b7567eeb7 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 108943740..c7205f0ab 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 5465e5192..f6ab8976a 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index bb65306ab..8b9d2beff 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.68.0') +implementation platform('com.google.cloud:libraries-bom:26.69.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 7743a7af9..b8c06cfa0 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.2 -googleapis_commitish: 31b413bc4feb03f6849c718048c2b9998561b5fa -libraries_bom_version: 26.68.0 +gapic_generator_version: 2.62.3 +googleapis_commitish: 9070e63a1f574261c153ef6e94afc55677200337 +libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 61b93520f..e0e70beb2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -2406,6 +2406,7 @@ public final UnaryCallable pullCallable() { * .setClientId("clientId908408390") * .setMaxOutstandingMessages(-1315266996) * .setMaxOutstandingBytes(-2103098517) + * .setProtocolVersion(-1161610703) * .build(); * bidiStream.send(request); * for (StreamingPullResponse response : bidiStream) { diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 6df11d0a0..c7d13c720 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1074,6 +1074,7 @@ public void streamingPullTest() throws Exception { .setClientId("clientId908408390") .setMaxOutstandingMessages(-1315266996) .setMaxOutstandingBytes(-2103098517) + .setProtocolVersion(-1161610703) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -1105,6 +1106,7 @@ public void streamingPullExceptionTest() throws Exception { .setClientId("clientId908408390") .setMaxOutstandingMessages(-1315266996) .setMaxOutstandingBytes(-2103098517) + .setProtocolVersion(-1161610703) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 6d51da2db..0a9017c9b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -835,7 +835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022AcknowledgeRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" - + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\346\002\n" + "\024StreamingPullRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -845,16 +845,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n" + "\tclient_id\030\006 \001(\tB\003\340A\001\022%\n" + "\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n" - + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\022\035\n" + + "\020protocol_version\030\n" + + " \001(\003B\003\340A\001\"\236\006\n" + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.Stre" - + "amingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" - + "lResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>." - + "google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005" + + " \001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132" + + "E.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pu" + + "bsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -872,8 +874,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003" - + " \003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 " + + "\003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -886,141 +888,139 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003" - + "(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003(\0132&.goog" + + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" - + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"N\n" - + "\022Get", - "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" - + " \n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Li" - + "stSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespon" - + "se\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1" - + ".SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsho" - + "t\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022/\n\004time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A" - + "\001\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010" - + "\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q" - + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" - + ".google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036" - + "/v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Up" - + "dateTopic\022$.google.pubsub.v1.UpdateTopic" - + "Request\032\027.google.pubsub.v1.Topic\"C\332A\021top" - + "ic,update_mask\202\323\344\223\002)2$/v1/{topic.name=pr" - + "ojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goog" - + "le.pubsub.v1.PublishRequest\032!.google.pub" - + "sub.v1.PublishResponse\"C\332A\016topic,message" - + "s\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}" - + ":publish:\001*\022w\n\010GetTopic\022!.google.pubsub." - + "v1.GetTopicRequest\032\027.google.pubsub.v1.To" - + "pic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects" - + "/*/topics/*}\022\212\001\n\nListTopics\022#.google.pub" - + "sub.v1.ListTopicsRequest\032$.google.pubsub" - + ".v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!" - + "\022\037/v1/{project=projects/*}/topics\022\272\001\n\026Li" - + "stTopicSubscriptions\022/.google.pubsub.v1." - + "ListTopicSubscriptionsRequest\0320.google.p" - + "ubsub.v1.ListTopicSubscriptionsResponse\"" - + "=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/t" - + "opics/*}/subscriptions\022\252\001\n\022ListTopicSnap" - + "shots\022+.google.pubsub.v1.ListTopicSnapsh" - + "otsRequest\032,.google.pubsub.v1.ListTopicS" - + "napshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{t" - + "opic=projects/*/topics/*}/snapshots\022|\n\013D" - + "eleteTopic\022$.google.pubsub.v1.DeleteTopi" - + "cRequest\032\026.google.protobuf.Empty\"/\332A\005top" - + "ic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*" - + "}\022\255\001\n\022DetachSubscription\022+.google.pubsub" - + ".v1.DetachSubscriptionRequest\032,.google.p" - + "ubsub.v1.DetachSubscriptionResponse\"<\202\323\344" - + "\223\0026\"4/v1/{subscription=projects/*/subscr" - + "iptions/*}:detach\032p\312A\025pubsub.googleapis." - + "com\322AUhttps://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSub" - + "scription\022\036.google.pubsub.v1.Subscriptio" - + "n\032\036.google.pubsub.v1.Subscription\"^\332A+na" - + "me,topic,push_config,ack_deadline_second" - + "s\202\323\344\223\002*\032%/v1/{name=projects/*/subscripti" - + "ons/*}:\001*\022\241\001\n\017GetSubscription\022(.google.p" - + "ubsub.v1.GetSubscriptionRequest\032\036.google" - + ".pubsub.v1.Subscription\"D\332A\014subscription" - + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" - + "scriptions/*}\022\273\001\n\022UpdateSubscription\022+.g" - + "oogle.pubsub.v1.UpdateSubscriptionReques" - + "t\032\036.google.pubsub.v1.Subscription\"X\332A\030su" - + "bscription,update_mask\202\323\344\223\002722/v1/{subsc" - + "ription.name=projects/*/subscriptions/*}" - + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" - + "b.v1.ListSubscriptionsRequest\032+.google.p" - + "ubsub.v1.ListSubscriptionsResponse\"8\332A\007p" - + "roject\202\323\344\223\002(\022&/v1/{project=projects/*}/s" - + "ubscriptions\022\237\001\n\022DeleteSubscription\022+.go" - + "ogle.pubsub.v1.DeleteSubscriptionRequest" - + "\032\026.google.protobuf.Empty\"D\332A\014subscriptio" - + "n\202\323\344\223\002/*-/v1/{subscription=projects/*/su" - + "bscriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.g" - + "oogle.pubsub.v1.ModifyAckDeadlineRequest" - + "\032\026.google.protobuf.Empty\"v\332A)subscriptio" - + "n,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge" - + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" - + ".google.protobuf.Empty\"[\332A\024subscription," - + "ack_ids\202\323\344\223\002>\"9/v1/{subscription=project" - + "s/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004" - + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" - + "ogle.pubsub.v1.PullResponse\"\210\001\332A,subscri" - + "ption,return_immediately,max_messages\332A\031" - + "subscription,max_messages\202\323\344\223\0027\"2/v1/{su" - + "bscription=projects/*/subscriptions/*}:p" - + "ull:\001*\022f\n\rStreamingPull\022&.google.pubsub." - + "v1.StreamingPullRequest\032\'.google.pubsub." - + "v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modif" - + "yPushConfig\022).google.pubsub.v1.ModifyPus" - + "hConfigRequest\032\026.google.protobuf.Empty\"d" - + "\332A\030subscription,push_config\202\323\344\223\002C\">/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.g" - + "oogle.pubsub.v1.GetSnapshotRequest\032\032.goo" - + "gle.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002" - + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" - + "\022\226\001\n\rListSnapshots\022&.google.pubsub.v1.Li" - + "stSnapshotsRequest\032\'.google.pubsub.v1.Li" - + "stSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/" - + "v1/{project=projects/*}/snapshots\022\227\001\n\016Cr" - + "eateSnapshot\022\'.google.pubsub.v1.CreateSn" - + "apshotRequest\032\032.google.pubsub.v1.Snapsho" - + "t\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name" - + "=projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSn" - + "apshot\022\'.google.pubsub.v1.UpdateSnapshot" - + "Request\032\032.google.pubsub.v1.Snapshot\"L\332A\024" - + "snapshot,update_mask\202\323\344\223\002/2*/v1/{snapsho" - + "t.name=projects/*/snapshots/*}:\001*\022\213\001\n\016De" - + "leteSnapshot\022\'.google.pubsub.v1.DeleteSn" - + "apshotRequest\032\026.google.protobuf.Empty\"8\332" - + "A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects" - + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" - + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" - + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" - + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsubB\252\001\n\024com.google." - + "pubsub.v1B\013PubsubProtoP\001Z5cloud.google.c" - + "om/go/pubsub/v2/apiv1/pubsubpb;pubsubpb\252" - + "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" - + "PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b\006p" - + "roto3" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapsh", + "ot}*\tsnapshots2\010snapshot\"N\n\022GetSnapshotR" + + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" + + ".googleapis.com/Snapshot\"\215\001\n\024ListSnapsho" + + "tsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " + + "\001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsna" + + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025D" + + "eleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" + + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306" + + "\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\022/\n\004time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pub" + + "sub.googleapis.com/SnapshotH\000B\010\n\006target\"" + + "\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateT" + + "opic\022\027.google.pubsub.v1.Topic\032\027.google.p" + + "ubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name" + + "=projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic" + + "\022$.google.pubsub.v1.UpdateTopicRequest\032\027" + + ".google.pubsub.v1.Topic\"C\332A\021topic,update" + + "_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/" + + "topics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub" + + ".v1.PublishRequest\032!.google.pubsub.v1.Pu" + + "blishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'" + + "/v1/{topic=projects/*/topics/*}:publish:" + + "\001*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTop" + + "icRequest\032\027.google.pubsub.v1.Topic\"/\332A\005t" + + "opic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics" + + "/*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Li" + + "stTopicsRequest\032$.google.pubsub.v1.ListT" + + "opicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pr" + + "oject=projects/*}/topics\022\272\001\n\026ListTopicSu" + + "bscriptions\022/.google.pubsub.v1.ListTopic" + + "SubscriptionsRequest\0320.google.pubsub.v1." + + "ListTopicSubscriptionsResponse\"=\332A\005topic" + + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" + + "subscriptions\022\252\001\n\022ListTopicSnapshots\022+.g" + + "oogle.pubsub.v1.ListTopicSnapshotsReques" + + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" + + "esponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proj" + + "ects/*/topics/*}/snapshots\022|\n\013DeleteTopi" + + "c\022$.google.pubsub.v1.DeleteTopicRequest\032" + + "\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*" + + "\037/v1/{topic=projects/*/topics/*}\022\255\001\n\022Det" + + "achSubscription\022+.google.pubsub.v1.Detac" + + "hSubscriptionRequest\032,.google.pubsub.v1." + + "DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}:detach\032p\312A\025pubsub.googleapis.com\322AUhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/pubs" + + "ub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription" + + "\022\036.google.pubsub.v1.Subscription\032\036.googl" + + "e.pubsub.v1.Subscription\"^\332A+name,topic," + + "push_config,ack_deadline_seconds\202\323\344\223\002*\032%" + + "/v1/{name=projects/*/subscriptions/*}:\001*" + + "\022\241\001\n\017GetSubscription\022(.google.pubsub.v1." + + "GetSubscriptionRequest\032\036.google.pubsub.v" + + "1.Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/" + + "v1/{subscription=projects/*/subscription" + + "s/*}\022\273\001\n\022UpdateSubscription\022+.google.pub" + + "sub.v1.UpdateSubscriptionRequest\032\036.googl" + + "e.pubsub.v1.Subscription\"X\332A\030subscriptio" + + "n,update_mask\202\323\344\223\002722/v1/{subscription.n" + + "ame=projects/*/subscriptions/*}:\001*\022\246\001\n\021L" + + "istSubscriptions\022*.google.pubsub.v1.List" + + "SubscriptionsRequest\032+.google.pubsub.v1." + + "ListSubscriptionsResponse\"8\332A\007project\202\323\344" + + "\223\002(\022&/v1/{project=projects/*}/subscripti" + + "ons\022\237\001\n\022DeleteSubscription\022+.google.pubs" + + "ub.v1.DeleteSubscriptionRequest\032\026.google" + + ".protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pub" + + "sub.v1.ModifyAckDeadlineRequest\032\026.google" + + ".protobuf.Empty\"v\332A)subscription,ack_ids" + + ",ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscr" + + "iption=projects/*/subscriptions/*}:modif" + + "yAckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google" + + ".pubsub.v1.AcknowledgeRequest\032\026.google.p" + + "rotobuf.Empty\"[\332A\024subscription,ack_ids\202\323" + + "\344\223\002>\"9/v1/{subscription=projects/*/subsc" + + "riptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.go" + + "ogle.pubsub.v1.PullRequest\032\036.google.pubs" + + "ub.v1.PullResponse\"\210\001\332A,subscription,ret" + + "urn_immediately,max_messages\332A\031subscript" + + "ion,max_messages\202\323\344\223\0027\"2/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" + + "\rStreamingPull\022&.google.pubsub.v1.Stream" + + "ingPullRequest\032\'.google.pubsub.v1.Stream" + + "ingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConf" + + "ig\022).google.pubsub.v1.ModifyPushConfigRe" + + "quest\032\026.google.protobuf.Empty\"d\332A\030subscr" + + "iption,push_config\202\323\344\223\002C\">/v1/{subscript" + + "ion=projects/*/subscriptions/*}:modifyPu" + + "shConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pub" + + "sub.v1.GetSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{s" + + "napshot=projects/*/snapshots/*}\022\226\001\n\rList" + + "Snapshots\022&.google.pubsub.v1.ListSnapsho" + + "tsRequest\032\'.google.pubsub.v1.ListSnapsho" + + "tsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{proje" + + "ct=projects/*}/snapshots\022\227\001\n\016CreateSnaps" + + "hot\022\'.google.pubsub.v1.CreateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"@\332A\021nam" + + "e,subscription\202\323\344\223\002&\032!/v1/{name=projects" + + "/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'." + + "google.pubsub.v1.UpdateSnapshotRequest\032\032" + + ".google.pubsub.v1.Snapshot\"L\332A\024snapshot," + + "update_mask\202\323\344\223\002/2*/v1/{snapshot.name=pr" + + "ojects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnaps" + + "hot\022\'.google.pubsub.v1.DeleteSnapshotReq" + + "uest\032\026.google.protobuf.Empty\"8\332A\010snapsho" + + "t\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekR" + + "equest\032\036.google.pubsub.v1.SeekResponse\"=" + + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + + "scriptions/*}:seek:\001*\032p\312A\025pubsub.googlea" + + "pis.com\322AUhttps://www.googleapis.com/aut" + + "h/cloud-platform,https://www.googleapis." + + "com/auth/pubsubB\252\001\n\024com.google.pubsub.v1" + + "B\013PubsubProtoP\001Z5cloud.google.com/go/pub" + + "sub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Google." + + "Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1" + + "\352\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1699,6 +1699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientId", "MaxOutstandingMessages", "MaxOutstandingBytes", + "ProtocolVersion", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = getDescriptor().getMessageTypes().get(41); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 9a68de42d..b24d3d922 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -531,6 +531,27 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 10; + private long protocolVersion_ = 0L; + + /** + * + * + *
    +   * Optional. The protocol version used by the client. This property can only
    +   * be set on the initial StreamingPullRequest. If it is set on a subsequent
    +   * request, the stream will be aborted with status `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -575,6 +596,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxOutstandingBytes_ != 0L) { output.writeInt64(8, maxOutstandingBytes_); } + if (protocolVersion_ != 0L) { + output.writeInt64(10, protocolVersion_); + } getUnknownFields().writeTo(output); } @@ -629,6 +653,9 @@ public int getSerializedSize() { if (maxOutstandingBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_); } + if (protocolVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, protocolVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +680,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClientId().equals(other.getClientId())) return false; if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false; if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false; + if (getProtocolVersion() != other.getProtocolVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -686,6 +714,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages()); hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes()); + hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProtocolVersion()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -836,6 +866,7 @@ public Builder clear() { clientId_ = ""; maxOutstandingMessages_ = 0L; maxOutstandingBytes_ = 0L; + protocolVersion_ = 0L; return this; } @@ -899,6 +930,9 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.maxOutstandingBytes_ = maxOutstandingBytes_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.protocolVersion_ = protocolVersion_; + } } @java.lang.Override @@ -996,6 +1030,9 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other.getMaxOutstandingBytes() != 0L) { setMaxOutstandingBytes(other.getMaxOutstandingBytes()); } + if (other.getProtocolVersion() != 0L) { + setProtocolVersion(other.getProtocolVersion()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1084,6 +1121,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 64 + case 80: + { + protocolVersion_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2262,6 +2305,68 @@ public Builder clearMaxOutstandingBytes() { return this; } + private long protocolVersion_; + + /** + * + * + *
    +     * Optional. The protocol version used by the client. This property can only
    +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
    +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + + /** + * + * + *
    +     * Optional. The protocol version used by the client. This property can only
    +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
    +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(long value) { + + protocolVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The protocol version used by the client. This property can only
    +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
    +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + bitField0_ = (bitField0_ & ~0x00000100); + protocolVersion_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 0e7f069b4..d23cb626e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -370,4 +370,19 @@ public interface StreamingPullRequestOrBuilder * @return The maxOutstandingBytes. */ long getMaxOutstandingBytes(); + + /** + * + * + *
    +   * Optional. The protocol version used by the client. This property can only
    +   * be set on the initial StreamingPullRequest. If it is set on a subsequent
    +   * request, the stream will be aborted with status `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + long getProtocolVersion(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 5a8bb0768..125b907f6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -2124,6 +2124,11 @@ message StreamingPullRequest { // set on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. int64 max_outstanding_bytes = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The protocol version used by the client. This property can only + // be set on the initial StreamingPullRequest. If it is set on a subsequent + // request, the stream will be aborted with status `INVALID_ARGUMENT`. + int64 protocol_version = 10 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `StreamingPull` method. This response is used to stream From 0785ee490e858c104c420046e0098d81154ae273 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 5 Oct 2025 23:48:04 +0100 Subject: [PATCH 602/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 (#2572) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index e170e888e..8d2d29b64 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.3 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2f0e77501..2f70055f9 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.2 + 3.52.3 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 9bec0a2fd..658be89f8 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.2 + 3.52.3 From 4153dbacb386b130780c8d1e5596e3502af8e32b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:17:59 +0100 Subject: [PATCH 603/656] deps: update actions/checkout action to v5 (#2573) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From ac2c85ad62525aee236af54f6b5c9b1eacf4d22a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:18:31 +0100 Subject: [PATCH 604/656] deps: update dependency com.google.cloud:google-cloud-core to v2.60.3 (#2571) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index da07fe3c9..5ed3a7985 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ed3ac9108..063c92cd5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1387f3270..64bcfe149 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests From 9f71c0913dfaee6260b9fd537c76bb1e02e248dd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:18:52 +0100 Subject: [PATCH 605/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.69.0 (#2567) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 64bcfe149..305bbc16e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.68.0 + 26.69.0 pom import From f195b94080f0a728ee6528c159af758be9be9215 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:28:56 -0400 Subject: [PATCH 606/656] chore(main): release 1.141.6-SNAPSHOT (#2563) * chore(main): release 1.141.6-SNAPSHOT * chore: generate libraries at Mon Oct 6 16:19:48 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .github/workflows/update_generation_config.yaml | 2 +- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/README.md b/README.md index 8b9d2beff..8af5bb6a5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.68.0 + 26.69.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 2f70055f9..fb3c0cd5d 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.5 + 1.141.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT
    diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index ee7a7a7a7..d2af88f0f 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 37d8851e6..1c7e7a614 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 658be89f8..b8ca52dfd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.5 + 1.141.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 641554ffe..749caccd4 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 063c92cd5..e021e56cd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index fe095e621..6e98820a1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.5:1.141.5 -grpc-google-cloud-pubsub-v1:1.123.5:1.123.5 -proto-google-cloud-pubsub-v1:1.123.5:1.123.5 +google-cloud-pubsub:1.141.5:1.141.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT From 588e06183c89d7df78cdb8e82f37c8c24f9d4ff6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:29:10 -0400 Subject: [PATCH 607/656] chore: Update generation configuration at Sat Oct 4 02:28:33 UTC 2025 (#2574) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index b8c06cfa0..8073cf549 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.3 -googleapis_commitish: 9070e63a1f574261c153ef6e94afc55677200337 +googleapis_commitish: 2193a2bfcecb92b92aad7a4d81baa428cafd7dfd libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub From ba261e6f8f82ac121bca0cd55814db75c1ce0c28 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 6 Oct 2025 23:20:22 -0400 Subject: [PATCH 608/656] chore: Update generation configuration at Tue Oct 7 02:30:12 UTC 2025 (#2577) --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 8073cf549..b70e279e6 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.3 -googleapis_commitish: 2193a2bfcecb92b92aad7a4d81baa428cafd7dfd +googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub From 73f6c42e03784d49bbd279faac5ecc040c2174ec Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 03:38:30 +0000 Subject: [PATCH 609/656] chore(main): release 1.142.0 (#2575) :robot: I have created a release *beep* *boop* --- ## [1.142.0](https://togithub.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) ### Features * Support the protocol version in StreamingPullRequest ([af40810](https://togithub.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.62.3 ([af40810](https://togithub.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) ### Dependencies * Update actions/checkout action to v5 ([#2562](https://togithub.com/googleapis/java-pubsub/issues/2562)) ([b7fa499](https://togithub.com/googleapis/java-pubsub/commit/b7fa49968e85dfeba8a84ea29f8ddf9d33ef22c5)) * Update actions/checkout action to v5 ([#2573](https://togithub.com/googleapis/java-pubsub/issues/2573)) ([4153dba](https://togithub.com/googleapis/java-pubsub/commit/4153dbacb386b130780c8d1e5596e3502af8e32b)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 ([#2566](https://togithub.com/googleapis/java-pubsub/issues/2566)) ([66c9ec4](https://togithub.com/googleapis/java-pubsub/commit/66c9ec4a26b76ca384dce71a8ab6bce8cd34b8a3)) * Update dependency com.google.cloud:google-cloud-core to v2.60.2 ([#2557](https://togithub.com/googleapis/java-pubsub/issues/2557)) ([460bcd9](https://togithub.com/googleapis/java-pubsub/commit/460bcd9158e7058f710f43200b7b7737eb47839c)) * Update dependency com.google.cloud:google-cloud-core to v2.60.3 ([#2571](https://togithub.com/googleapis/java-pubsub/issues/2571)) ([ac2c85a](https://togithub.com/googleapis/java-pubsub/commit/ac2c85ad62525aee236af54f6b5c9b1eacf4d22a)) * Update dependency com.google.cloud:google-cloud-storage to v2.58.0 ([#2561](https://togithub.com/googleapis/java-pubsub/issues/2561)) ([0189388](https://togithub.com/googleapis/java-pubsub/commit/0189388edb4d618d65f33718922ca1b11f71cb15)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#2572](https://togithub.com/googleapis/java-pubsub/issues/2572)) ([0785ee4](https://togithub.com/googleapis/java-pubsub/commit/0785ee490e858c104c420046e0098d81154ae273)) * Update dependency org.assertj:assertj-core to v3.27.6 ([#2560](https://togithub.com/googleapis/java-pubsub/issues/2560)) ([c82766a](https://togithub.com/googleapis/java-pubsub/commit/c82766a9efb2bb4df01fb7fdcb35259db39e05c7)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 24 ++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 45 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f314a1985..bb63149ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.142.0](https://github.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) + + +### Features + +* Support the protocol version in StreamingPullRequest ([af40810](https://github.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.3 ([af40810](https://github.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2562](https://github.com/googleapis/java-pubsub/issues/2562)) ([b7fa499](https://github.com/googleapis/java-pubsub/commit/b7fa49968e85dfeba8a84ea29f8ddf9d33ef22c5)) +* Update actions/checkout action to v5 ([#2573](https://github.com/googleapis/java-pubsub/issues/2573)) ([4153dba](https://github.com/googleapis/java-pubsub/commit/4153dbacb386b130780c8d1e5596e3502af8e32b)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 ([#2566](https://github.com/googleapis/java-pubsub/issues/2566)) ([66c9ec4](https://github.com/googleapis/java-pubsub/commit/66c9ec4a26b76ca384dce71a8ab6bce8cd34b8a3)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.2 ([#2557](https://github.com/googleapis/java-pubsub/issues/2557)) ([460bcd9](https://github.com/googleapis/java-pubsub/commit/460bcd9158e7058f710f43200b7b7737eb47839c)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.3 ([#2571](https://github.com/googleapis/java-pubsub/issues/2571)) ([ac2c85a](https://github.com/googleapis/java-pubsub/commit/ac2c85ad62525aee236af54f6b5c9b1eacf4d22a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.58.0 ([#2561](https://github.com/googleapis/java-pubsub/issues/2561)) ([0189388](https://github.com/googleapis/java-pubsub/commit/0189388edb4d618d65f33718922ca1b11f71cb15)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#2572](https://github.com/googleapis/java-pubsub/issues/2572)) ([0785ee4](https://github.com/googleapis/java-pubsub/commit/0785ee490e858c104c420046e0098d81154ae273)) +* Update dependency org.assertj:assertj-core to v3.27.6 ([#2560](https://github.com/googleapis/java-pubsub/issues/2560)) ([c82766a](https://github.com/googleapis/java-pubsub/commit/c82766a9efb2bb4df01fb7fdcb35259db39e05c7)) + ## [1.141.5](https://github.com/googleapis/java-pubsub/compare/v1.141.4...v1.141.5) (2025-09-24) diff --git a/README.md b/README.md index 8af5bb6a5..5e43686c1 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.142.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.142.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.142.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index fb3c0cd5d..99a617251 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.6-SNAPSHOT + 1.142.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index d2af88f0f..381bf7cda 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 1c7e7a614..9c877b80c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/pom.xml b/pom.xml index b8ca52dfd..3493ec8a6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.6-SNAPSHOT + 1.142.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 749caccd4..dd40d7622 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e021e56cd..8e1b4df9a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/versions.txt b/versions.txt index 6e98820a1..dc8172577 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.5:1.141.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT +google-cloud-pubsub:1.142.0:1.142.0 +grpc-google-cloud-pubsub-v1:1.124.0:1.124.0 +proto-google-cloud-pubsub-v1:1.124.0:1.124.0 From 8195f6fd3bbd33a178535994a94a79822ae2d4d6 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 7 Oct 2025 14:32:43 -0400 Subject: [PATCH 610/656] feat: Implement SubscriberShutdownSettings (#2569) * feat: Implement SubscriberShutdownSettings chore: Format and cleanup sample chore: Remove hardcoded version from samples pom.xml * fix: Fix typo in Subscriber class comments --- .../cloud/pubsub/v1/MessageDispatcher.java | 91 ++++++- .../v1/StreamingSubscriberConnection.java | 42 +++- .../google/cloud/pubsub/v1/Subscriber.java | 51 +++- .../pubsub/v1/SubscriberShutdownSettings.java | 102 ++++++++ .../com/google/cloud/pubsub/v1/Waiter.java | 27 ++ .../pubsub/v1/FakeSubscriberServiceImpl.java | 23 +- .../pubsub/v1/MessageDispatcherTest.java | 232 ++++++++++++++++++ .../v1/StreamingSubscriberConnectionTest.java | 129 ++++++++++ .../v1/SubscriberShutdownSettingsTest.java | 100 ++++++++ .../cloud/pubsub/v1/SubscriberTest.java | 98 ++++++++ .../google/cloud/pubsub/v1/WaiterTest.java | 46 ++++ 11 files changed, 916 insertions(+), 25 deletions(-) create mode 100644 google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java create mode 100644 google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 983844a62..1a6dab2b2 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -62,6 +62,7 @@ class MessageDispatcher { @InternalApi static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100); + @InternalApi static final long FINAL_NACK_TIMEOUT = Duration.ofSeconds(1).toMillis(); private final Executor executor; private final SequentialExecutorService.AutoExecutor sequentialExecutor; @@ -108,6 +109,8 @@ class MessageDispatcher { private final SubscriptionName subscriptionNameObject; private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; + private final AtomicBoolean nackImmediatelyShutdownInProgress = new AtomicBoolean(false); /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { @@ -170,12 +173,18 @@ public void onFailure(Throwable t) { public void onSuccess(AckReply reply) { switch (reply) { case ACK: - pendingAcks.add(this.ackRequestData); - // Record the latency rounded to the next closest integer. - ackLatencyDistribution.record( - Ints.saturatedCast( - (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); - tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); + if (nackImmediatelyShutdownInProgress.get() && exactlyOnceDeliveryEnabled.get()) { + this.ackRequestData.setResponse(AckResponse.OTHER, true); + tracer.endSubscribeProcessSpan( + this.ackRequestData.getMessageWrapper(), "ack failed_with_nack_immediately"); + } else { + pendingAcks.add(this.ackRequestData); + // Record the latency rounded to the next closest integer. + ackLatencyDistribution.record( + Ints.saturatedCast( + (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); + } break; case NACK: pendingNacks.add(this.ackRequestData); @@ -231,6 +240,7 @@ private MessageDispatcher(Builder builder) { if (builder.tracer != null) { tracer = builder.tracer; } + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; } private boolean shouldSetMessageFuture() { @@ -294,8 +304,60 @@ public void run() { } } + private void nackAllOutstandingMessages() { + nackImmediatelyShutdownInProgress.set(true); + List handlersToNack = new ArrayList<>(pendingMessages.values()); + for (AckHandler ackHandler : handlersToNack) { + pendingNacks.add(ackHandler.getAckRequestData()); + ackHandler.forget(); // This removes from pendingMessages, releases flow control, etc. + } + } + void stop() { - messagesWaiter.waitComplete(); + switch (subscriberShutdownSettings.getMode()) { + case WAIT_FOR_PROCESSING: + logger.log( + Level.FINE, + "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete processing."); + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + if (timeout.isNegative()) { + // Indefinite wait use existing blocking wait + messagesWaiter.waitComplete(); + } else { + // Wait for (timeout - 1 second) for messages to complete + long gracePeriodMillis = Math.max(0, timeout.toMillis() - FINAL_NACK_TIMEOUT); + boolean completedWait = messagesWaiter.tryWait(gracePeriodMillis, clock); + if (!completedWait) { + logger.log( + Level.WARNING, + "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining messages."); + // Switch to NACK_IMMEDIATELY behavior for remaining messages + nackAllOutstandingMessages(); + } + } + cancelBackgroundJob(); + processOutstandingOperations(); // Send any remaining acks/nacks. + break; + + case NACK_IMMEDIATELY: + logger.log(Level.FINE, "NACK_IMMEDIATELY shutdown mode: Nacking all outstanding messages."); + // Stop extending deadlines immediately. + cancelBackgroundJob(); + nackAllOutstandingMessages(); + processOutstandingOperations(); // Send all pending nacks. + break; + + default: + logger.log(Level.WARNING, "Unknown shutdown mode: " + subscriberShutdownSettings.getMode()); + // Default to WAIT_FOR_PROCESSING behavior + messagesWaiter.waitComplete(); + cancelBackgroundJob(); + processOutstandingOperations(); + break; + } + } + + private void cancelBackgroundJob() { jobLock.lock(); try { if (backgroundJob != null) { @@ -309,7 +371,6 @@ void stop() { } finally { jobLock.unlock(); } - processOutstandingOperations(); } @InternalApi @@ -364,6 +425,11 @@ void setMessageOrderingEnabled(boolean messageOrderingEnabled) { this.messageOrderingEnabled.set(messageOrderingEnabled); } + @InternalApi + boolean getNackImmediatelyShutdownInProgress() { + return nackImmediatelyShutdownInProgress.get(); + } + private static class OutstandingMessage { private final AckHandler ackHandler; @@ -661,7 +727,7 @@ void processOutstandingOperations() { List ackRequestDataReceipts = new ArrayList(); pendingReceipts.drainTo(ackRequestDataReceipts); - if (!ackRequestDataReceipts.isEmpty()) { + if (!ackRequestDataReceipts.isEmpty() && !getNackImmediatelyShutdownInProgress()) { ModackRequestData receiptModack = new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts); receiptModack.setIsReceiptModack(true); @@ -705,6 +771,7 @@ public static final class Builder { private String subscriptionName; private boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer; + private SubscriberShutdownSettings subscriberShutdownSettings; protected Builder(MessageReceiver receiver) { this.receiver = receiver; @@ -791,6 +858,12 @@ public Builder setTracer(OpenTelemetryPubsubTracer tracer) { return this; } + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = subscriberShutdownSettings; + return this; + } + public MessageDispatcher build() { return new MessageDispatcher(this); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index baf96f385..319dd31f5 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -98,6 +98,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; + private final ApiClock clock; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -124,11 +125,13 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; + clock = builder.clock; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -163,6 +166,7 @@ private StreamingSubscriberConnection(Builder builder) { if (builder.tracer != null) { tracer = builder.tracer; } + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; messageDispatcher = messageDispatcherBuilder @@ -181,6 +185,7 @@ private StreamingSubscriberConnection(Builder builder) { .setSubscriptionName(subscription) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) + .setSubscriberShutdownSettings(subscriberShutdownSettings) .build(); flowControlSettings = builder.flowControlSettings; @@ -218,8 +223,21 @@ protected void doStop() { } private void runShutdown() { + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + if (timeout.isZero()) { + return; + } + messageDispatcher.stop(); - ackOperationsWaiter.waitComplete(); + if (timeout.isNegative()) { + ackOperationsWaiter.waitComplete(); + } else { + boolean completedWait = ackOperationsWaiter.tryWait(timeout.toMillis(), clock); + if (!completedWait) { + logger.log( + Level.WARNING, "Timeout exceeded while waiting for ACK/NACK operations to complete."); + } + } } private class StreamingPullResponseObserver implements ResponseObserver { @@ -554,9 +572,18 @@ public void onSuccess(Empty empty) { tracer.endSubscribeRpcSpan(rpcSpan); for (AckRequestData ackRequestData : ackRequestDataList) { - // This will check if a response is needed, and if it has already been set - ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); - messageDispatcher.notifyAckSuccess(ackRequestData); + // If we are in NACK_IMMEDIATELY shutdown mode, we will set failures on acks/nack so that + // an error is surfaced if the user + // manually acks or nacks in their callback. + if (setResponseOnSuccess + && getExactlyOnceDeliveryEnabled() + && messageDispatcher.getNackImmediatelyShutdownInProgress()) { + ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + } else { + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); + } // Remove from our pending operations pendingRequests.remove(ackRequestData); tracer.addEndRpcEvent( @@ -751,6 +778,7 @@ public static final class Builder { private boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer; + private SubscriberShutdownSettings subscriberShutdownSettings; protected Builder(MessageReceiver receiver) { this.receiver = receiver; @@ -852,6 +880,12 @@ public Builder setTracer(OpenTelemetryPubsubTracer tracer) { return this; } + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = subscriberShutdownSettings; + return this; + } + public StreamingSubscriberConnection build() { return new StreamingSubscriberConnection(this); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index b149bed37..28ba62d8e 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -168,6 +168,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean enableOpenTelemetryTracing; private final OpenTelemetry openTelemetry; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; private Subscriber(Builder builder) { receiver = builder.receiver; @@ -223,6 +224,7 @@ private Subscriber(Builder builder) { this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; this.openTelemetry = builder.openTelemetry; + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); if (openTelemetryTracer != null) { @@ -366,7 +368,6 @@ protected void doStop() { @Override public void run() { try { - // stop connection is no-op if connections haven't been started. runShutdown(); notifyStopped(); } catch (Exception e) { @@ -378,7 +379,13 @@ public void run() { } private void runShutdown() { - stopAllStreamingConnections(); + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + long deadlineMillis = -1; + if (!timeout.isNegative()) { + deadlineMillis = clock.millisTime() + timeout.toMillis(); + } + + stopAllStreamingConnections(deadlineMillis); shutdownBackgroundResources(); subscriberStub.shutdownNow(); } @@ -420,6 +427,7 @@ private void startStreamingConnections() { .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) + .setSubscriberShutdownSettings(subscriberShutdownSettings) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -445,8 +453,8 @@ public void failed(State from, Throwable failure) { } } - private void stopAllStreamingConnections() { - stopConnections(streamingSubscriberConnections); + private void stopAllStreamingConnections(long deadlineMillis) { + stopConnections(streamingSubscriberConnections, deadlineMillis); } private void shutdownBackgroundResources() { @@ -466,7 +474,7 @@ private void startConnections( } } - private void stopConnections(List connections) { + private void stopConnections(List connections, long deadlineMillis) { ArrayList liveConnections; synchronized (connections) { liveConnections = new ArrayList(connections); @@ -477,11 +485,19 @@ private void stopConnections(List connections) { } for (ApiService subscriber : liveConnections) { try { - subscriber.awaitTerminated(); - } catch (IllegalStateException e) { - // If the service fails, awaitTerminated will throw an exception. - // However, we could be stopping services because at least one - // has already failed, so we just ignore this exception. + if (deadlineMillis < 0) { + // Wait indefinitely + subscriber.awaitTerminated(); + } else { + long remaining = deadlineMillis - clock.millisTime(); + if (remaining < 0) { + remaining = 0; + } + subscriber.awaitTerminated(remaining, java.util.concurrent.TimeUnit.MILLISECONDS); + } + } catch (Exception e) { + logger.log(Level.FINE, "Exception while waiting for a connection to terminate", e); + break; // Stop waiting for other connections. } } } @@ -532,6 +548,9 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; + private SubscriberShutdownSettings subscriberShutdownSettings = + SubscriberShutdownSettings.newBuilder().build(); + Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; this.receiver = receiver; @@ -772,6 +791,18 @@ public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { return this; } + /** + * Sets the shutdown settings for the subscriber. Defaults to {@link + * SubscriberShutdownSettings#newBuilder() default settings}. + */ + @BetaApi( + "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the future.") + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = Preconditions.checkNotNull(subscriberShutdownSettings); + return this; + } + /** Returns the default FlowControlSettings used by the client if settings are not provided. */ public static FlowControlSettings getDefaultFlowControlSettings() { return DEFAULT_FLOW_CONTROL_SETTINGS; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java new file mode 100644 index 000000000..efd8e10db --- /dev/null +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.common.base.Preconditions; +import java.time.Duration; + +/** + * Settings for configuring the shutdown behavior of a {@link Subscriber}. + * + *

    This class allows customization of how the subscriber handles outstanding messages during + * shutdown, including whether to wait for processing to complete or to immediately nack messages, + * and an optional timeout for the shutdown process. + */ +public final class SubscriberShutdownSettings { + + /** Defines the behavior for handling outstanding messages during subscriber shutdown. */ + public enum ShutdownMode { + /** + * The subscriber will wait for all outstanding messages to be processed (acked or nacked by the + * user's message receiver) before completing the shutdown. + */ + WAIT_FOR_PROCESSING, + /** + * The subscriber will immediately nack all outstanding messages and attempt to shut down as + * quickly as possible. Messages delivered to the user callback but not yet acked/nacked will + * also be nacked. + */ + NACK_IMMEDIATELY + } + + private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(-1); // Indicates no timeout + private static final ShutdownMode DEFAULT_MODE = ShutdownMode.WAIT_FOR_PROCESSING; + + private final ShutdownMode mode; + private final Duration timeout; + + private SubscriberShutdownSettings(Builder builder) { + this.mode = builder.mode; + this.timeout = builder.timeout; + } + + /** Returns the configured shutdown mode. */ + public ShutdownMode getMode() { + return mode; + } + + /** Returns the configured shutdown timeout. A negative duration indicates no timeout. */ + public Duration getTimeout() { + return timeout; + } + + /** Returns a new builder for {@code SubscriberShutdownSettings}. */ + public static Builder newBuilder() { + return new Builder(); + } + + /** Builder for {@code SubscriberShutdownSettings}. */ + public static final class Builder { + private ShutdownMode mode = DEFAULT_MODE; + private Duration timeout = DEFAULT_TIMEOUT; + + private Builder() {} + + /** Sets the shutdown mode. Defaults to {@link ShutdownMode#WAIT_FOR_PROCESSING}. */ + public Builder setMode(ShutdownMode mode) { + this.mode = Preconditions.checkNotNull(mode); + return this; + } + + /** + * Sets the shutdown timeout. Defaults to a negative duration, indicating no timeout. + * + *

    A positive duration specifies the maximum time to wait for shutdown to complete. A + * duration of zero indicates an immediate, forceful shutdown. A negative duration indicates an + * indefinite wait. + */ + public Builder setTimeout(Duration timeout) { + this.timeout = Preconditions.checkNotNull(timeout); + return this; + } + + /** Builds an instance of {@code SubscriberShutdownSettings}. */ + public SubscriberShutdownSettings build() { + return new SubscriberShutdownSettings(this); + } + } +} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java index e22125fee..7221d5144 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiClock; import com.google.api.core.InternalApi; /** @@ -54,6 +55,32 @@ public synchronized void waitComplete() { } } + public synchronized boolean tryWait(long timeoutMilliseconds, ApiClock clock) { + long startTime = clock.millisTime(); + long remainingMilliseconds = timeoutMilliseconds; + boolean interrupted = false; + boolean completedWait = true; + try { + while (pendingCount > 0) { + if (remainingMilliseconds <= 0) { + completedWait = false; + break; + } + try { + wait(remainingMilliseconds); + } catch (InterruptedException e) { + interrupted = true; + } + remainingMilliseconds = timeoutMilliseconds - (clock.millisTime() - startTime); + } + } finally { + if (interrupted) { + Thread.currentThread().interrupt(); + } + } + return completedWait; + } + @InternalApi public int pendingCount() { return pendingCount; diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java index 173248041..3b2bd2f5d 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -24,6 +24,7 @@ import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.ReceivedMessage; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.SubscriberGrpc.SubscriberImplBase; @@ -247,8 +248,26 @@ public void modifyAckDeadline( responseObserver.onCompleted(); } + public void sendMessages(int numMessages) throws InterruptedException { + waitForRegisteredSubscription(); + synchronized (openedStreams) { + waitForOpenedStreams(1); + Stream stream = openedStreams.get(getAndAdvanceCurrentStream()); + StreamingPullResponse.Builder response = StreamingPullResponse.newBuilder(); + for (int i = 0; i < numMessages; i++) { + response.addReceivedMessages( + ReceivedMessage.newBuilder() + .setAckId("ackid" + i) + .setMessage( + com.google.pubsub.v1.PubsubMessage.newBuilder().setMessageId("id" + i).build()) + .build()); + } + stream.responseObserver.onNext(response.build()); + } + } + public void sendError(Throwable error) throws InterruptedException { - waitForRegistedSubscription(); + waitForRegisteredSubscription(); synchronized (openedStreams) { waitForOpenedStreams(1); Stream stream = openedStreams.get(getAndAdvanceCurrentStream()); @@ -257,7 +276,7 @@ public void sendError(Throwable error) throws InterruptedException { } } - public String waitForRegistedSubscription() throws InterruptedException { + public String waitForRegisteredSubscription() throws InterruptedException { synchronized (subscriptionInitialized) { while (!subscriptionInitialized.get()) { subscriptionInitialized.wait(); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 1de156939..1285fadd5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -18,6 +18,9 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.argThat; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.*; import com.google.api.gax.batching.FlowController; @@ -713,9 +716,238 @@ private MessageDispatcher getMessageDispatcherFromBuilder( .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .setSystemExecutor(systemExecutor) .setApiClock(clock) + .setSubscriberShutdownSettings(SubscriberShutdownSettings.newBuilder().build()) .build(); messageDispatcher.setMessageDeadlineSeconds(MIN_ACK_DEADLINE_SECONDS); return messageDispatcher; } + + private MessageDispatcher getMessageDispatcherFromBuilder( + MessageDispatcher.Builder builder, SubscriberShutdownSettings shutdownSettings) { + MessageDispatcher messageDispatcher = + builder + .setAckProcessor(mockAckProcessor) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setMaxAckExtensionPeriod(MAX_ACK_EXTENSION_PERIOD) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setAckLatencyDistribution(mock(Distribution.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(MoreExecutors.newDirectExecutorService()) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) + .setSystemExecutor(systemExecutor) + .setApiClock(clock) + .setSubscriberShutdownSettings(shutdownSettings) + .build(); + + messageDispatcher.setMessageDeadlineSeconds(MIN_ACK_DEADLINE_SECONDS); + return messageDispatcher; + } + + @Test + public void testStop_waitForProcessing_indefinite() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(-1)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Wait for the stop thread to block on the waiter. + Thread.sleep(100); + assertTrue(stopThread.isAlive()); + + // Ack the message, which should allow the stop thread to complete. + consumers.take().ack(); + + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + stopThread.join(); + assertFalse(stopThread.isAlive()); + + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); + } + + @Test + public void testStop_waitForProcessing_withTimeout_success() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(5)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Ack the message before the timeout expires. + try { + consumers.take().ack(); + } catch (InterruptedException e) { + fail("Interrupted while taking consumer"); + } + + try { + stopThread.join(1000); + } catch (InterruptedException e) { + fail("Interrupted while joining stop thread"); + } + + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); + assertFalse(stopThread.isAlive()); + } + + @Test + public void testStop_waitForProcessing_withTimeout_nackWithOneSecondLeft() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(2)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Wait for the stop thread to block on the waiter. + try { + Thread.sleep(100); + } catch (InterruptedException e) { + fail("Interrupted while sleeping"); + } + + clock.advance(1500, TimeUnit.MILLISECONDS); + + try { + stopThread.join(); + } catch (InterruptedException e) { + fail("Interrupted while joining stop thread"); + } + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } + + @Test + public void testStop_nackImmediately() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + dispatcher.stop(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } + + @Test + public void testAckDuringNackImmediatelyShutdown() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiverWithAckResponse), shutdownSettings); + dispatcher.setExactlyOnceDeliveryEnabled(true); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + dispatcher.processOutstandingOperations(); + + List receiptModackRequestDataList = new ArrayList(); + AckRequestData receiptModackRequestData = + AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + receiptModackRequestDataList.add( + new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, receiptModackRequestData)); + dispatcher.notifyAckSuccess(receiptModackRequestData); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher( + receiptModackRequestDataList))); + + Thread stopThread = + new Thread( + () -> { + dispatcher.stop(); + }); + stopThread.start(); + + // Wait for the stop process to start. + while (!dispatcher.getNackImmediatelyShutdownInProgress()) { + Thread.sleep(1); + } + + // Try to ack the message. + AckResponse reply = consumersWithResponse.take().ack().get(); + assertThat(reply.equals(AckResponse.OTHER)); + + stopThread.join(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + // The message should have been nacked, not acked. + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(2)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } } diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 335ccbdc3..f79825d85 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -17,6 +17,7 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.argThat; import static org.mockito.Mockito.*; @@ -41,6 +42,8 @@ import java.time.Duration; import java.util.*; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -106,6 +109,110 @@ public void testSetupAndTeardown() { streamingSubscriberConnection.awaitTerminated(); } + @Test + public void testRunShutdown_TimeoutMet() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder().setTimeout(Duration.ofSeconds(10)).build(); + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + builder.setSubscriberShutdownSettings(shutdownSettings); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder); + + streamingSubscriberConnection.startAsync().awaitRunning(); + streamingSubscriberConnection.stopAsync(); + + // Should terminate quickly as there are no outstanding messages. + streamingSubscriberConnection.awaitTerminated(1, TimeUnit.SECONDS); + } + + @Test + public void testRunShutdown_TimeoutExceeded() throws Exception { + final SettableApiFuture ackFuture = SettableApiFuture.create(); + when(mockSubscriberStub.acknowledgeCallable().futureCall(any(AcknowledgeRequest.class))) + .thenReturn(ackFuture); + + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder().setTimeout(Duration.ofSeconds(2)).build(); + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder, shutdownSettings); + streamingSubscriberConnection.setExactlyOnceDeliveryEnabled(true); + + streamingSubscriberConnection.startAsync().awaitRunning(); + + // Send an ACK that will not complete. + SettableApiFuture messageFuture = SettableApiFuture.create(); + streamingSubscriberConnection.sendAckOperations( + Collections.singletonList( + AckRequestData.newBuilder("ack1").setMessageFuture(messageFuture).build())); + + Thread t = + new Thread( + () -> { + streamingSubscriberConnection.stopAsync(); + }); + t.start(); + + Thread t2 = + new Thread( + () -> { + try { + streamingSubscriberConnection.awaitTerminated(1, TimeUnit.SECONDS); + fail("Should have timed out"); + } catch (TimeoutException e) { + // expected + } + }); + t2.start(); + t2.join(); + + // Advance the clock past the shutdown timeout. + clock.advance(3, TimeUnit.SECONDS); + t.join(); + + // Now it should terminate. + streamingSubscriberConnection.awaitTerminated(); + assertFalse(streamingSubscriberConnection.isRunning()); + assertFalse(messageFuture.isDone()); + } + + @Test + public void testAckDuringNackImmediatelyShutdown() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + + MessageDispatcher mockMessageDispatcher = mock(MessageDispatcher.class); + when(mockMessageDispatcher.getNackImmediatelyShutdownInProgress()).thenReturn(true); + + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder, shutdownSettings); + + // Use reflection to set the mock message dispatcher + java.lang.reflect.Field dispatcherField = + StreamingSubscriberConnection.class.getDeclaredField("messageDispatcher"); + dispatcherField.setAccessible(true); + dispatcherField.set(streamingSubscriberConnection, mockMessageDispatcher); + + streamingSubscriberConnection.setExactlyOnceDeliveryEnabled(true); + + SettableApiFuture messageFuture = SettableApiFuture.create(); + AckRequestData ackRequestData = + AckRequestData.newBuilder("ack1").setMessageFuture(messageFuture).build(); + + when(mockSubscriberStub.acknowledgeCallable().futureCall(any())) + .thenReturn(ApiFutures.immediateFuture(null)); + streamingSubscriberConnection.sendAckOperations(Collections.singletonList(ackRequestData)); + + verify(mockMessageDispatcher, times(1)).notifyAckFailed(ackRequestData); + assertEquals(AckResponse.OTHER, messageFuture.get()); + } + @Test public void testSendAckOperationsExactlyOnceDisabledNoMessageFutures() { // Setup mocks @@ -592,6 +699,28 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriberShutdownSettings(SubscriberShutdownSettings.newBuilder().build()) + .build(); + } + + private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.Builder builder, SubscriberShutdownSettings shutdownSettings) { + return builder + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT_DURATION) + .setAckLatencyDistribution(mock(Distribution.class)) + .setSubscriberStub(mockSubscriberStub) + .setChannelAffinity(0) + .setFlowControlSettings(mock(FlowControlSettings.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(executor) + .setSystemExecutor(systemExecutor) + .setClock(clock) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriberShutdownSettings(shutdownSettings) .build(); } diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java new file mode 100644 index 000000000..f82937582 --- /dev/null +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java @@ -0,0 +1,100 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + +import com.google.cloud.pubsub.v1.SubscriberShutdownSettings.ShutdownMode; +import java.time.Duration; +import org.junit.Test; + +public class SubscriberShutdownSettingsTest { + + @Test + public void testDefaultSettings() { + SubscriberShutdownSettings settings = SubscriberShutdownSettings.newBuilder().build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertTrue(settings.getTimeout().isNegative()); // Indefinite timeout + } + + @Test + public void testWaitForProcessingWithCustomTimeout() { + Duration customTimeout = Duration.ofSeconds(30); + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(customTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertEquals(customTimeout, settings.getTimeout()); + } + + @Test + public void testNackImmediatelyWithDefaultTimeout() { + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder().setMode(ShutdownMode.NACK_IMMEDIATELY).build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.NACK_IMMEDIATELY, settings.getMode()); + assertTrue(settings.getTimeout().isNegative()); // Indefinite timeout + } + + @Test + public void testNackImmediatelyWithCustomTimeout() { + Duration customTimeout = Duration.ofSeconds(10); + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.NACK_IMMEDIATELY) + .setTimeout(customTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.NACK_IMMEDIATELY, settings.getMode()); + assertEquals(customTimeout, settings.getTimeout()); + } + + @Test + public void testZeroTimeout() { + Duration zeroTimeout = Duration.ZERO; + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(zeroTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertEquals(zeroTimeout, settings.getTimeout()); + assertTrue(settings.getTimeout().isZero()); + } + + @Test(expected = NullPointerException.class) + public void testNullModeThrowsException() { + SubscriberShutdownSettings.newBuilder().setMode(null).build(); + } + + @Test(expected = NullPointerException.class) + public void testNullTimeoutThrowsException() { + SubscriberShutdownSettings.newBuilder().setTimeout(null).build(); + } +} diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 253a91f73..649769d1c 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -320,6 +320,104 @@ public void testPartialFlowControlSettings() throws Exception { Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.getMaxOutstandingElementCount()); } + @Test + public void testShutdown_waitForProcessing_indefinite() throws Exception { + final CountDownLatch messageReceived = new CountDownLatch(1); + final AckReplyConsumer[] consumer = new AckReplyConsumer[1]; + + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer c) { + consumer[0] = c; + messageReceived.countDown(); + } + }; + + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(receiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(-1)) + .build())); + + // Send a message and wait for it to be received. + fakeSubscriberServiceImpl.sendMessages(1); + messageReceived.await(10, TimeUnit.SECONDS); + + subscriber.stopAsync(); + + try { + subscriber.awaitTerminated(1, TimeUnit.SECONDS); + fail("Subscriber should not have terminated yet."); + } catch (TimeoutException e) { + // Expected + } + + // Now, ack the message, which should allow the subscriber to terminate. + consumer[0].ack(); + subscriber.awaitTerminated(10, TimeUnit.SECONDS); + } + + @Test + public void testShutdown_waitForProcessing_withTimeout_success() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(10)) + .build())); + subscriber.stopAsync(); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate quickly now + } + + @Test + public void testShutdown_waitForProcessing_withTimeout_failure() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(5)) + .build())); + subscriber.stopAsync(); + fakeExecutor.advanceTime(Duration.ofSeconds(6)); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should have timed out and terminated + } + + @Test + public void testShutdown_waitForProcessing_zeroTimeout() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ZERO) + .build())); + subscriber.stopAsync(); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate almost immediately + } + + @Test + public void testShutdown_nackImmediately() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build())); + subscriber.stopAsync(); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate almost immediately + } + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java index ca8618378..c9eed7e16 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java @@ -17,7 +17,10 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import java.util.concurrent.TimeUnit; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -50,4 +53,47 @@ public void run() { assertEquals(0, waiter.pendingCount()); } + + @Test + public void testTryWait_Completes() { + final Waiter waiter = new Waiter(); + waiter.incrementPendingCount(1); + final FakeClock clock = new FakeClock(); + + Thread t = + new Thread( + () -> { + try { + Thread.sleep(100); + } catch (InterruptedException e) { + } + waiter.incrementPendingCount(-1); + }); + t.start(); + + assertTrue(waiter.tryWait(500, clock)); + } + + @Test + public void testTryWait_TimesOut() { + final Waiter waiter = new Waiter(); + waiter.incrementPendingCount(1); + final FakeClock clock = new FakeClock(); + + Thread t = + new Thread( + () -> { + clock.advance(100, TimeUnit.MILLISECONDS); + }); + t.start(); + + assertFalse(waiter.tryWait(100, clock)); + } + + @Test + public void testTryWait_NoPending() { + final Waiter waiter = new Waiter(); + final FakeClock clock = new FakeClock(); + assertTrue(waiter.tryWait(100, clock)); + } } From 1375f6d9a71c78d973a71f1df449640a95bc0bc7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Oct 2025 21:52:09 +0100 Subject: [PATCH 611/656] deps: update actions/checkout action to v5 (#2576) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From f3cf5e725c12173ade0275fd0526885309dc553a Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 9 Oct 2025 11:39:09 -0400 Subject: [PATCH 612/656] fix: Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files (#2583) * fix: Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files * chore: generate libraries at Wed Oct 8 20:58:37 UTC 2025 --------- Co-authored-by: cloud-java-bot --- .github/.OwlBot-hermetic.yaml | 2 ++ .github/workflows/update_generation_config.yaml | 2 +- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 6 ++++-- .../main/java/com/google/cloud/pubsub/v1/Subscriber.java | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot-hermetic.yaml b/.github/.OwlBot-hermetic.yaml index 219163820..d426d10ea 100644 --- a/.github/.OwlBot-hermetic.yaml +++ b/.github/.OwlBot-hermetic.yaml @@ -41,6 +41,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" @@ -64,6 +65,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 1a6dab2b2..5ed36b9cd 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -318,7 +318,8 @@ void stop() { case WAIT_FOR_PROCESSING: logger.log( Level.FINE, - "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete processing."); + "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete" + + " processing."); java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); if (timeout.isNegative()) { // Indefinite wait use existing blocking wait @@ -330,7 +331,8 @@ void stop() { if (!completedWait) { logger.log( Level.WARNING, - "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining messages."); + "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining" + + " messages."); // Switch to NACK_IMMEDIATELY behavior for remaining messages nackAllOutstandingMessages(); } diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 28ba62d8e..c0779ff29 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -796,7 +796,8 @@ public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { * SubscriberShutdownSettings#newBuilder() default settings}. */ @BetaApi( - "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the future.") + "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the" + + " future.") public Builder setSubscriberShutdownSettings( SubscriberShutdownSettings subscriberShutdownSettings) { this.subscriberShutdownSettings = Preconditions.checkNotNull(subscriberShutdownSettings); From 52e38527ae33043e6c2cd2dcd2b6f5de8075aa69 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:27 +0100 Subject: [PATCH 613/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.142.0 (#2579) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5ed3a7985..526ad0895 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.142.0 From d156cdb27a8d68b6fa8c97f558df7088e6634320 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:36 +0100 Subject: [PATCH 614/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.58.1 (#2580) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 526ad0895..b58bc0fd9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.58.0 + 2.58.1 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8e1b4df9a..ca8299b56 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.58.0 + 2.58.1 com.google.cloud.opentelemetry From d0f96737a74453c3db54ee59e98d4b6636cd55d4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:44 +0100 Subject: [PATCH 615/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.2 (#2582) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b58bc0fd9..35331a6b0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.1 + 2.55.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ca8299b56..3a9ab486b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.1 + 2.55.2 com.google.cloud From 25059ce001e3273fcec9d1c40e3b09c89ddf487e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:19:09 +0100 Subject: [PATCH 616/656] deps: update actions/checkout action to v5 (#2584) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 1e080393d0434f6b97fc8432e5ce837c08a33a76 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:19:20 +0100 Subject: [PATCH 617/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.70.0 (#2585) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 305bbc16e..c0b404f69 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.69.0 + 26.70.0 pom import From 815623fd28f1b95d7c911606d95dadd0bb987b82 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:32:28 -0400 Subject: [PATCH 618/656] chore(main): release 1.142.1-SNAPSHOT (#2578) * chore(main): release 1.142.1-SNAPSHOT * chore: generate libraries at Tue Oct 14 22:20:23 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .github/workflows/update_generation_config.yaml | 2 +- README.md | 4 ++-- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/README.md b/README.md index 5e43686c1..4d9a3de62 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.69.0 + 26.70.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.5 + 1.142.0 ``` diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 99a617251..1c6b8a104 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.142.0 + 1.142.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 381bf7cda..adbcb6edb 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 9c877b80c..91701e5ee 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3493ec8a6..129b5b061 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.142.0 + 1.142.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index dd40d7622..89a797056 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3a9ab486b..3893f817c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index dc8172577..f14ecc920 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.142.0:1.142.0 -grpc-google-cloud-pubsub-v1:1.124.0:1.124.0 -proto-google-cloud-pubsub-v1:1.124.0:1.124.0 +google-cloud-pubsub:1.142.0:1.142.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT From ce7cb09ac5e86953815e2ead9ae9202e9b034ba6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 20 Oct 2025 16:00:48 +0100 Subject: [PATCH 619/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 (#2589) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 8d2d29b64..118c3b50f 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.3 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.53.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 1c6b8a104..7074cefc5 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.3 + 3.53.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 129b5b061..b2ddf1f78 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.3 + 3.53.0 From ab60afa012bd3fc81977ba24c416205ce9280943 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:37:30 -0400 Subject: [PATCH 620/656] chore: Update generation configuration at Mon Oct 20 15:25:38 UTC 2025 (#2594) * chore: Update generation configuration at Mon Oct 20 15:25:38 UTC 2025 * chore: generate libraries at Mon Oct 20 15:26:21 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- generation_config.yaml | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 + .../cloud/pubsub/v1/TopicAdminClient.java | 10 +- .../SubscriptionAdminClientHttpJsonTest.java | 9 + .../v1/SubscriptionAdminClientTest.java | 7 + .../v1/TopicAdminClientHttpJsonTest.java | 36 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 26 +- .../pubsub/v1/CreateSnapshotRequest.java | 373 +++++++++++++ .../v1/CreateSnapshotRequestOrBuilder.java | 88 +++ .../com/google/pubsub/v1/CryptoKeyName.java | 261 +++++++++ .../google/pubsub/v1/DeadLetterPolicy.java | 28 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 8 +- .../v1/IngestionDataSourceSettings.java | 36 +- .../pubsub/v1/IngestionFailureEvent.java | 443 ++++++++++++++- .../v1/IngestionFailureEventOrBuilder.java | 8 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 52 +- .../ListTopicSnapshotsResponseOrBuilder.java | 16 +- .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 523 ++++++++++-------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 46 +- .../v1/StreamingPullResponseOrBuilder.java | 10 +- .../com/google/pubsub/v1/Subscription.java | 409 +++++++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 88 +++ .../main/java/com/google/pubsub/v1/Topic.java | 401 +++++++++++++- .../com/google/pubsub/v1/TopicOrBuilder.java | 96 +++- .../main/proto/google/pubsub/v1/pubsub.proto | 80 ++- 34 files changed, 2729 insertions(+), 365 deletions(-) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 0e85f8052..7023350ad 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.3 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index b7567eeb7..55c5543e2 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index c7205f0ab..5c981b984 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index f6ab8976a..f2032499d 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 4d9a3de62..2e7f2aa59 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.69.0') +implementation platform('com.google.cloud:libraries-bom:26.70.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index b70e279e6..0a9e75959 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.3 -googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d -libraries_bom_version: 26.69.0 +gapic_generator_version: 2.63.0 +googleapis_commitish: c288189b43c016dd3cf1ec73ce3cadee8b732f07 +libraries_bom_version: 26.70.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index e0e70beb2..f22e3ec16 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -881,6 +881,7 @@ public final Subscription createSubscription( * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1147,6 +1148,7 @@ public final Subscription createSubscription( * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); @@ -3181,6 +3183,7 @@ public final Snapshot createSnapshot(String name, String subscription) { * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) + * .putAllTags(new HashMap()) * .build(); * Snapshot response = subscriptionAdminClient.createSnapshot(request); * } @@ -3373,6 +3376,7 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSnapshotCallable().futureCall(request); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 2e635ba43..750f4da49 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -511,12 +511,15 @@ public final Topic createTopic(ProjectTopicName name) { * .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .putAllLabels(new HashMap()) * .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - * .setKmsKeyName("kmsKeyName412586233") + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -548,12 +551,15 @@ public final Topic createTopic(Topic request) { * .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .putAllLabels(new HashMap()) * .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - * .setKmsKeyName("kmsKeyName412586233") + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 711c8da98..860eb95ce 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -135,6 +135,7 @@ public void createSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -205,6 +206,7 @@ public void createSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -275,6 +277,7 @@ public void createSubscriptionTest3() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -345,6 +348,7 @@ public void createSubscriptionTest4() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -415,6 +419,7 @@ public void getSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -478,6 +483,7 @@ public void getSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -541,6 +547,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -566,6 +573,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -617,6 +625,7 @@ public void updateSubscriptionExceptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index c7d13c720..480e7ceaa 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -161,6 +161,7 @@ public void createSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -228,6 +229,7 @@ public void createSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -295,6 +297,7 @@ public void createSubscriptionTest3() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -362,6 +365,7 @@ public void createSubscriptionTest4() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -429,6 +433,7 @@ public void getSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -486,6 +491,7 @@ public void getSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -543,6 +549,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 5a1e1e68a..44488abc6 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -43,6 +43,7 @@ import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.CryptoKeyName; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.IngestionDataSourceSettings; @@ -113,12 +114,15 @@ public void createTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -165,12 +169,15 @@ public void createTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -217,12 +224,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -231,12 +241,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -271,12 +284,15 @@ public void updateTopicExceptionTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -381,12 +397,15 @@ public void getTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -433,12 +452,15 @@ public void getTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index d1e05afde..2ad693de3 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -41,6 +41,7 @@ import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.CryptoKeyName; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; @@ -127,12 +128,15 @@ public void createTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -173,12 +177,15 @@ public void createTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -219,12 +226,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -346,12 +356,15 @@ public void getTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -392,12 +405,15 @@ public void getTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 079f3344b..e5d4f651c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -62,6 +62,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 4: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -328,6 +330,133 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int TAGS_FIELD_NUMBER = 4; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *

    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -350,6 +479,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @@ -375,6 +506,16 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -394,6 +535,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getSubscription().equals(other.getSubscription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,6 +555,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -538,6 +684,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 4: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -549,6 +697,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 3: return internalGetMutableLabels(); + case 4: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -578,6 +728,7 @@ public Builder clear() { name_ = ""; subscription_ = ""; internalGetMutableLabels().clear(); + internalGetMutableTags().clear(); return this; } @@ -624,6 +775,10 @@ private void buildPartial0(com.google.pubsub.v1.CreateSnapshotRequest result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } } @java.lang.Override @@ -683,6 +838,8 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -733,6 +890,15 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1238,6 +1404,213 @@ public Builder putAllLabels(java.util.Map va return this; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000008; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 25f5c59d1..80a1f76fc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -177,4 +177,92 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java new file mode 100644 index 000000000..12a4c7312 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CryptoKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String keyRing; + private final String cryptoKey; + + @Deprecated + protected CryptoKeyName() { + project = null; + location = null; + keyRing = null; + cryptoKey = null; + } + + private CryptoKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + keyRing = Preconditions.checkNotNull(builder.getKeyRing()); + cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CryptoKeyName of( + String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build(); + } + + public static String format(String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build() + .toString(); + } + + public static CryptoKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.validatedMatch( + formattedString, "CryptoKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("key_ring"), + matchMap.get("crypto_key")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CryptoKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (keyRing != null) { + fieldMapBuilder.put("key_ring", keyRing); + } + if (cryptoKey != null) { + fieldMapBuilder.put("crypto_key", cryptoKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.instantiate( + "project", project, "location", location, "key_ring", keyRing, "crypto_key", cryptoKey); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CryptoKeyName that = ((CryptoKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.keyRing, that.keyRing) + && Objects.equals(this.cryptoKey, that.cryptoKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(keyRing); + h *= 1000003; + h ^= Objects.hashCode(cryptoKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + */ + public static class Builder { + private String project; + private String location; + private String keyRing; + private String cryptoKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setKeyRing(String keyRing) { + this.keyRing = keyRing; + return this; + } + + public Builder setCryptoKey(String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + private Builder(CryptoKeyName cryptoKeyName) { + this.project = cryptoKeyName.project; + this.location = cryptoKeyName.location; + this.keyRing = cryptoKeyName.keyRing; + this.cryptoKey = cryptoKeyName.cryptoKey; + } + + public CryptoKeyName build() { + return new CryptoKeyName(this); + } + } +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index b9b9f3a19..d809e9d6b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -88,7 +88,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * since messages published to a topic with no subscriptions are lost. *
    * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -120,7 +122,9 @@ public java.lang.String getDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. *
    * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ @@ -551,7 +555,9 @@ public Builder mergeFrom( * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -582,7 +588,9 @@ public java.lang.String getDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ @@ -613,7 +621,9 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The deadLetterTopic to set. * @return This builder for chaining. @@ -643,7 +653,9 @@ public Builder setDeadLetterTopic(java.lang.String value) { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -669,7 +681,9 @@ public Builder clearDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 2978a0510..83159d59d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -39,7 +39,9 @@ public interface DeadLetterPolicyOrBuilder * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -60,7 +62,9 @@ public interface DeadLetterPolicyOrBuilder * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 73f44578d..d2c79575f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -9182,7 +9182,9 @@ public interface AwsMskOrBuilder * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -9196,7 +9198,9 @@ public interface AwsMskOrBuilder * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -9657,7 +9661,9 @@ public com.google.protobuf.ByteString getClusterArnBytes() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -9682,7 +9688,9 @@ public java.lang.String getTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -10499,7 +10507,9 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -10523,7 +10533,9 @@ public java.lang.String getTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -10547,7 +10559,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -10570,7 +10584,9 @@ public Builder setTopic(java.lang.String value) { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -10589,7 +10605,9 @@ public Builder clearTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 640c8f154..6f1455a19 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -11941,6 +11941,56 @@ public interface AwsKinesisFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder getMessageTransformationFailureReasonOrBuilder(); + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } @@ -12002,6 +12052,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEMA_VIOLATION_REASON(4), MESSAGE_TRANSFORMATION_FAILURE_REASON(5), + API_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -12025,6 +12076,8 @@ public static ReasonCase forNumber(int value) { return SCHEMA_VIOLATION_REASON; case 5: return MESSAGE_TRANSFORMATION_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -12331,6 +12384,73 @@ public boolean hasMessageTransformationFailureReason() { .getDefaultInstance(); } + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The message failed to be published due to an API violation.
    +     * This is only set when the size of the data field of the Kinesis record
    +     * is zero.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -12364,6 +12484,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) reason_); } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } getUnknownFields().writeTo(output); } @@ -12394,6 +12518,11 @@ public int getSerializedSize() { (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12422,6 +12551,9 @@ public boolean equals(final java.lang.Object obj) { if (!getMessageTransformationFailureReason() .equals(other.getMessageTransformationFailureReason())) return false; break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; case 0: default: } @@ -12451,6 +12583,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; case 0: default: } @@ -12608,6 +12744,9 @@ public Builder clear() { if (messageTransformationFailureReasonBuilder_ != null) { messageTransformationFailureReasonBuilder_.clear(); } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -12671,6 +12810,9 @@ private void buildPartialOneofs( if (reasonCase_ == 5 && messageTransformationFailureReasonBuilder_ != null) { result.reason_ = messageTransformationFailureReasonBuilder_.build(); } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -12751,6 +12893,11 @@ public Builder mergeFrom( other.getMessageTransformationFailureReason()); break; } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -12815,6 +12962,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13698,6 +13852,267 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The message failed to be published due to an API violation.
    +       * This is only set when the size of the data field of the Kinesis record
    +       * is zero.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13837,7 +14252,9 @@ public FailureCase getFailureCase() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -13862,7 +14279,9 @@ public java.lang.String getTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -14826,7 +15245,9 @@ public Builder clearFailure() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -14850,7 +15271,9 @@ public java.lang.String getTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -14874,7 +15297,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -14897,7 +15322,9 @@ public Builder setTopic(java.lang.String value) { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -14916,7 +15343,9 @@ public Builder clearTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index c7ceeb108..49390d159 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -32,7 +32,9 @@ public interface IngestionFailureEventOrBuilder * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -46,7 +48,9 @@ public interface IngestionFailureEventOrBuilder * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 4536d9f60..387a4ef7e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -93,7 +95,9 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -108,7 +112,9 @@ public int getSnapshotsCount() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -124,7 +130,9 @@ public java.lang.String getSnapshots(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -588,7 +596,9 @@ private void ensureSnapshotsIsMutable() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -604,7 +614,9 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -619,7 +631,9 @@ public int getSnapshotsCount() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -635,7 +649,9 @@ public java.lang.String getSnapshots(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -651,7 +667,9 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The snapshots to set. @@ -675,7 +693,9 @@ public Builder setSnapshots(int index, java.lang.String value) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The snapshots to add. * @return This builder for chaining. @@ -698,7 +718,9 @@ public Builder addSnapshots(java.lang.String value) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param values The snapshots to add. * @return This builder for chaining. @@ -718,7 +740,9 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -737,7 +761,9 @@ public Builder clearSnapshots() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the snapshots to add. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 4623e163f..fd3eca179 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -31,7 +31,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -44,7 +46,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -57,7 +61,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -71,7 +77,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 0456c10b4..573d42c33 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 324cf524a..24c73b06b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 0a9017c9b..1b5e7d634 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -132,6 +132,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PubsubMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -204,6 +208,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_RetryPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -324,6 +332,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -385,7 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034pubsub.googleapis.com/Schema\0221\n" + "\010encoding\030\002 \001(\0162\032.google.pubsub.v1.EncodingB\003\340A\001\022\036\n" + "\021first_revision_id\030\003 \001(\tB\003\340A\001\022\035\n" - + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\310\027\n" + + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\350\027\n" + "\033IngestionDataSourceSettings\022T\n" + "\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n\r" @@ -457,12 +469,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023NAMESPACE_NOT_FOUND\020\004\022\027\n" + "\023EVENT_HUB_NOT_FOUND\020\005\022\032\n" + "\026SUBSCRIPTION_NOT_FOUND\020\006\022\034\n" - + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n" + + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\366\002\n" + "\006AwsMsk\022N\n" + "\005state\030\001 \001(\0162:.google.pubsub.v1.In" + "gestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" - + "\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n" - + "\005topic\030\003 \001(\tB\003\340A\002\022\031\n" + + "\013cluster_arn\030\002 \001(\tB\003\340A\002\0222\n" + + "\005topic\030\003 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\031\n" + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n" + "\005State\022\025\n" @@ -473,8 +486,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CLUSTER_NOT_FOUND\020\004\022\023\n" + "\017TOPIC_NOT_FOUND\020\005\032\266\003\n" + "\016ConfluentCloud\022V\n" - + "\005state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" - + "DataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + + "\005state\030\001 " + + "\001(\0162B.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + "\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\n" + "cluster_id\030\003 \001(\tB\003\340A\002\022\022\n" + "\005topic\030\004 \001(\tB\003\340A\002\022\035\n" @@ -490,28 +503,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017TOPIC_NOT_FOUND\020\006B\010\n" + "\006source\"\277\001\n" + "\024PlatformLogsSettings\022F\n" - + "\010severity\030\001 \001(\0162/.google" - + ".pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + + "\010severity\030\001" + + " \001(\0162/.google.pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + "\010Severity\022\030\n" + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\t\n" + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\270\027\n" - + "\025IngestionFailureEvent\022\022\n" - + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "\005ERROR\020\005\"\271\030\n" + + "\025IngestionFailureEvent\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" - + "\025cloud_storage_failure\030\003" - + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" - + "\017aws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." - + "IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" - + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" - + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" - + "\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" - + "\023aws_kinesis_failure\030\007 \001(\0132?.google.pubsub.v1.Inge" - + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + + "\025cloud_storage_failure\030\003 \001(\0132;.google" + + ".pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" + + "\017aws_msk_failure\030\004" + + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" + + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubs" + + "ub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + + "\027confluent_cloud_failure\030\006 \001(\0132C.google.pubsub.v1.Inges" + + "tionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\013" + + "2?.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" + "\021AvroFailureReason\032\027\n" + "\025SchemaViolationReason\032$\n" @@ -520,62 +534,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005" - + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v" - + "1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\007 \001" - + "(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\010 \001(\013" - + "2J.google.pubsub.v1.IngestionFailureEven" - + "t.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\023avro_failure_reason\030\005 \001(\01329.google." + + "pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007 \001(\0132=.google.pubs" + + "ub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\010 \001(\0132J.google.pubsub" + + ".v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\316\003\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pub" - + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsu" - + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:.google" + + ".pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ingestion" + + "FailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007" + + " \001(\0132J.google.pubsub.v1.IngestionFa" + + "ilureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\322\003\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.g" - + "oogle.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Inge" - + "stionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsub.v1.Ingest" - + "ionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1." + + "IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\013" + + "2=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J" + + ".google.pubsub.v1.IngestionFailureEvent." + + "MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\325\003\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pu" - + "bsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.IngestionFai" - + "lureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007" - + " \001(\0132J.google.pubsub.v1.IngestionFailu" - + "reEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\340\002\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Ingestio" + + "nFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.googl" + + "e.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google." + + "pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\301\003\n" + "\027AwsKinesisFailureReason\022\027\n\n" + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" - + "\027schema_violation_reason\030\004 " - + "\001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\005 \001(" - + "\0132J.google.pubsub.v1.IngestionFailureEve" - + "nt.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\027schema_violation_reason\030\004 \001(\0132=.google.pub" + + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\005 \001(\0132J.google.pubsu" + + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" @@ -586,13 +601,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" - + "\ttransform\"\216\006\n" + + "\ttransform\"\235\007\n" + "\005Topic\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003 \001(\0132&.goog" - + "le.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" - + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + + "\026message_storage_policy\030\003 \001(\0132&.goo" + + "gle.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + + "\014kms_key_name\030\005 \001(\tB)\340A\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022>\n" + "\017schema_settings\030\006 \001(\0132" + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n" @@ -602,20 +618,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ingestion_data_source_settings\030\n" + " \001(\0132-.google.pubsub.v1.IngestionDataSourceSettingsB\003\340A\001\022C\n" + "\022message_transforms\030\r" - + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032-\n" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022:\n" + + "\004tags\030\016 \003(\0132!.google.pubsub.v1.Topic.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"H\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projec" - + "ts/{project}/topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/top" + + "ics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" - + "attributes\030\002 \003(\0132/.g" - + "oogle.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + "attributes\030\002" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -637,8 +658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListTopicsRequest\022D\n" + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + "\022ListTopicsResponse\022,\n" + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" @@ -655,10 +675,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListTopicSnapshotsRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"R\n" - + "\032ListTopicSnapshotsResponse\022\026\n" - + "\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\032ListTopicSnapshotsResponse\0229\n" + + "\tsnapshots\030\001 \003(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/Snapshot\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" + "\022DeleteTopicRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" @@ -666,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\034\n" - + "\032DetachSubscriptionResponse\"\215\013\n" + + "\032DetachSubscriptionResponse\"\245\014\n" + "\014Subscription\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" @@ -675,14 +697,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026 \001(\0132" - + "$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t \003(\0132*." - + "google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t" + + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -690,36 +712,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + "\022dead_letter_policy\030\r" + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" - + "\014retry_policy\030\016" - + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\014retry_policy\030\016 " + + "\001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.S" - + "ubscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;" + + ".google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" - + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" - + "\034AnalyticsHubSubscriptionInfo\022\024\n" - + "\007listing\030\001 \001(\tB\003\340A\001\022\031\n" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032w\n" + + "\034AnalyticsHubSubscriptionInfo\022<\n" + + "\007listing\030\001 \001(\tB+\340A\001\372A%\n" + + "#analyticshub.googleapis.com/Listing\022\031\n" + "\014subscription\030\002 \001(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\">\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub." - + "googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.com/Subscription\022/" + + "projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" - + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"V\n" - + "\020DeadLetterPolicy\022\036\n" - + "\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n" + + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"v\n" + + "\020DeadLetterPolicy\022>\n" + + "\021dead_letter_topic\030\001 \001(\tB#\340A\001\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\"\n" + "\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n" + "\020ExpirationPolicy\022+\n" + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" @@ -727,10 +756,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" + "attributes\030\002" + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003 \001(" - + "\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004 \001(\0132*.googl" - + "e.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "oidc_token\030\003" + + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004 \001(\0132*.go" + + "ogle.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -749,8 +778,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005 \001(\0162&.g" - + "oogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005 \001(\0162" + + "&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -774,8 +803,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" - + "\005state\030\t" - + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\005state\030\t \001(\0162*.google.p" + + "ubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + "TextConfig\032H\n\n" + "AvroConfig\022\033\n" @@ -808,8 +837,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\031ListSubscriptionsResponse\022:\n\r" - + "subscriptions\030\001" - + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "subscriptions\030\001 \003(" + + "\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" + "\031DeleteSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -851,12 +880,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005" - + " \001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132" - + "E.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pu" - + "bsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.StreamingP" + + "ullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google" + + ".pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -868,16 +898,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + "\026SubscriptionProperties\022*\n" + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" + "\025CreateSnapshotRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 " - + "\003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot", + "Request.LabelsEntryB\003\340A\001\022J\n" + + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" + "\025UpdateSnapshotRequest\0221\n" + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n" @@ -888,139 +923,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&.goog" - + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003(\0132&." + + "google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" - + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapsh", - "ot}*\tsnapshots2\010snapshot\"N\n\022GetSnapshotR" - + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" - + ".googleapis.com/Snapshot\"\215\001\n\024ListSnapsho" - + "tsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+clou" - + "dresourcemanager.googleapis.com/Project\022" - + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " - + "\001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsna" - + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025D" - + "eleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" - + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306" - + "\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\022/\n\004time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pub" - + "sub.googleapis.com/SnapshotH\000B\010\n\006target\"" - + "\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateT" - + "opic\022\027.google.pubsub.v1.Topic\032\027.google.p" - + "ubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name" - + "=projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic" - + "\022$.google.pubsub.v1.UpdateTopicRequest\032\027" - + ".google.pubsub.v1.Topic\"C\332A\021topic,update" - + "_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/" - + "topics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub" - + ".v1.PublishRequest\032!.google.pubsub.v1.Pu" - + "blishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'" - + "/v1/{topic=projects/*/topics/*}:publish:" - + "\001*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTop" - + "icRequest\032\027.google.pubsub.v1.Topic\"/\332A\005t" - + "opic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics" - + "/*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Li" - + "stTopicsRequest\032$.google.pubsub.v1.ListT" - + "opicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pr" - + "oject=projects/*}/topics\022\272\001\n\026ListTopicSu" - + "bscriptions\022/.google.pubsub.v1.ListTopic" - + "SubscriptionsRequest\0320.google.pubsub.v1." - + "ListTopicSubscriptionsResponse\"=\332A\005topic" - + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" - + "subscriptions\022\252\001\n\022ListTopicSnapshots\022+.g" - + "oogle.pubsub.v1.ListTopicSnapshotsReques" - + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" - + "esponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proj" - + "ects/*/topics/*}/snapshots\022|\n\013DeleteTopi" - + "c\022$.google.pubsub.v1.DeleteTopicRequest\032" - + "\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*" - + "\037/v1/{topic=projects/*/topics/*}\022\255\001\n\022Det" - + "achSubscription\022+.google.pubsub.v1.Detac" - + "hSubscriptionRequest\032,.google.pubsub.v1." - + "DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}:detach\032p\312A\025pubsub.googleapis.com\322AUhtt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/pubs" - + "ub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription" - + "\022\036.google.pubsub.v1.Subscription\032\036.googl" - + "e.pubsub.v1.Subscription\"^\332A+name,topic," - + "push_config,ack_deadline_seconds\202\323\344\223\002*\032%" - + "/v1/{name=projects/*/subscriptions/*}:\001*" - + "\022\241\001\n\017GetSubscription\022(.google.pubsub.v1." - + "GetSubscriptionRequest\032\036.google.pubsub.v" - + "1.Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/" - + "v1/{subscription=projects/*/subscription" - + "s/*}\022\273\001\n\022UpdateSubscription\022+.google.pub" - + "sub.v1.UpdateSubscriptionRequest\032\036.googl" - + "e.pubsub.v1.Subscription\"X\332A\030subscriptio" - + "n,update_mask\202\323\344\223\002722/v1/{subscription.n" - + "ame=projects/*/subscriptions/*}:\001*\022\246\001\n\021L" - + "istSubscriptions\022*.google.pubsub.v1.List" - + "SubscriptionsRequest\032+.google.pubsub.v1." - + "ListSubscriptionsResponse\"8\332A\007project\202\323\344" - + "\223\002(\022&/v1/{project=projects/*}/subscripti" - + "ons\022\237\001\n\022DeleteSubscription\022+.google.pubs" - + "ub.v1.DeleteSubscriptionRequest\032\026.google" - + ".protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + + "\tsnapshots2\010snapshot\"N\n" + + "\022GetSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" + + "\024ListSnapshotsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + + "\025ListSnapshotsResponse\0222\n" + + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" + + "\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + + "\013SeekRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022/\n" + + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" + + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n" + + "\014SeekResponse2\270\013\n" + + "\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.goog" + + "le.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReque" + + "st\032\027.google.pubsub.v1.Topic\"C\332A\021topic,up" + + "date_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v" + + "1.PublishResponse\"C\332A\016topic,messages\202\323\344\223" + + "\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequest\032\027.google.pubsub.v1.Topic\"/" + + "\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.L" + + "istTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListT" + + "opicSubscriptionsRequest\0320.google.pubsub" + + ".v1.ListTopicSubscriptionsResponse\"=\332A\005t" + + "opic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRe" + + "quest\032,.google.pubsub.v1.ListTopicSnapsh" + + "otsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequ" + + "est\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.D" + + "etachSubscriptionRequest\032,.google.pubsub" + + ".v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4" + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pub" - + "sub.v1.ModifyAckDeadlineRequest\032\026.google" - + ".protobuf.Empty\"v\332A)subscription,ack_ids" - + ",ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscr" - + "iption=projects/*/subscriptions/*}:modif" - + "yAckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google" - + ".pubsub.v1.AcknowledgeRequest\032\026.google.p" - + "rotobuf.Empty\"[\332A\024subscription,ack_ids\202\323" - + "\344\223\002>\"9/v1/{subscription=projects/*/subsc" - + "riptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.go" - + "ogle.pubsub.v1.PullRequest\032\036.google.pubs" - + "ub.v1.PullResponse\"\210\001\332A,subscription,ret" - + "urn_immediately,max_messages\332A\031subscript" - + "ion,max_messages\202\323\344\223\0027\"2/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" - + "\rStreamingPull\022&.google.pubsub.v1.Stream" - + "ingPullRequest\032\'.google.pubsub.v1.Stream" - + "ingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConf" - + "ig\022).google.pubsub.v1.ModifyPushConfigRe" - + "quest\032\026.google.protobuf.Empty\"d\332A\030subscr" - + "iption,push_config\202\323\344\223\002C\">/v1/{subscript" - + "ion=projects/*/subscriptions/*}:modifyPu" - + "shConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pub" - + "sub.v1.GetSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{s" - + "napshot=projects/*/snapshots/*}\022\226\001\n\rList" - + "Snapshots\022&.google.pubsub.v1.ListSnapsho" - + "tsRequest\032\'.google.pubsub.v1.ListSnapsho" - + "tsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{proje" - + "ct=projects/*}/snapshots\022\227\001\n\016CreateSnaps" - + "hot\022\'.google.pubsub.v1.CreateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"@\332A\021nam" - + "e,subscription\202\323\344\223\002&\032!/v1/{name=projects" - + "/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'." - + "google.pubsub.v1.UpdateSnapshotRequest\032\032" - + ".google.pubsub.v1.Snapshot\"L\332A\024snapshot," - + "update_mask\202\323\344\223\002/2*/v1/{snapshot.name=pr" - + "ojects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnaps" - + "hot\022\'.google.pubsub.v1.DeleteSnapshotReq" - + "uest\032\026.google.protobuf.Empty\"8\332A\010snapsho" - + "t\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh" - + "ots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekR" - + "equest\032\036.google.pubsub.v1.SeekResponse\"=" - + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" - + "scriptions/*}:seek:\001*\032p\312A\025pubsub.googlea" - + "pis.com\322AUhttps://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/pubsubB\252\001\n\024com.google.pubsub.v1" - + "B\013PubsubProtoP\001Z5cloud.google.com/go/pub" - + "sub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Google." - + "Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1" - + "\352\002\031Google::Cloud::PubSub::V1b\006proto3" + + "ns/*}:detach\032p\312A\025pubsub.googleapis.com\322A" + + "Uhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "Subscriber\022\264\001\n" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.g" + + "oogle.pubsub.v1.Subscription\"^\332A+name,to" + + "pic,push_config,ack_deadline_seconds\202\323\344\223" + + "\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubs" + + "ub.v1.Subscription\"D\332A\014subscription\202\323\344\223\002" + + "/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.g" + + "oogle.pubsub.v1.Subscription\"X\332A\030subscri" + + "ption,update_mask\202\323\344\223\002722/v1/{subscripti" + + "on.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1." + + "ListSubscriptionsRequest\032+.google.pubsub" + + ".v1.ListSubscriptionsResponse\"8\332A\007projec" + + "t\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.go" + + "ogle.protobuf.Empty\"D\332A\014subscription\202\323\344\223" + + "\002/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.go" + + "ogle.protobuf.Empty\"v\332A)subscription,ack" + + "_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{su" + + "bscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.goog" + + "le.protobuf.Empty\"[\332A\024subscription,ack_i" + + "ds\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google." + + "pubsub.v1.PullResponse\"\210\001\332A,subscription" + + ",return_immediately,max_messages\332A\031subsc" + + "ription,max_messages\202\323\344\223\0027\"2/v1/{subscri" + + "ption=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.St" + + "reamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConf" + + "igRequest\032\026.google.protobuf.Empty\"d\332A\030su" + + "bscription,push_config\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSna" + + "pshotsRequest\032\'.google.pubsub.v1.ListSna" + + "pshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapsho" + + "tRequest\032\032.google.pubsub.v1.Snapshot\"@\332A" + + "\021name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReque" + + "st\032\032.google.pubsub.v1.Snapshot\"L\332A\024snaps" + + "hot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapsho" + + "tRequest\032\026.google.protobuf.Empty\"8\332A\010sna" + + "pshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespon" + + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" + + "/subscriptions/*}:seek:\001*\032p\312A\025pubsub.goo" + + "gleapis.com\322AUhttps://www.googleapis.com" + + "/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go" + + "/pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goo" + + "gle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects" + + "/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/dat" + + "aExchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1279,6 +1302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SequenceNumber", "SchemaViolationReason", "MessageTransformationFailureReason", + "ApiViolationReason", "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = @@ -1312,6 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "IngestionDataSourceSettings", "MessageTransforms", + "Tags", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -1321,6 +1346,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor = + internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = @@ -1465,6 +1498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "AnalyticsHubSubscriptionInfo", "MessageTransforms", + "Tags", }); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -1482,6 +1516,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = @@ -1742,7 +1784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, new java.lang.String[] { - "Name", "Subscription", "Labels", + "Name", "Subscription", "Labels", "Tags", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); @@ -1752,6 +1794,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor = + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = @@ -1829,6 +1879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 330b0ece6..c6dbf3f12 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4f1cb824e..15b70709e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 677345113..bf36bc06f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -4214,7 +4214,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -4230,7 +4230,7 @@ public java.util.List getReceivedMessagesL * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -4247,7 +4247,7 @@ public java.util.List getReceivedMessagesL * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -4263,7 +4263,7 @@ public int getReceivedMessagesCount() { * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -4279,7 +4279,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -5023,7 +5023,7 @@ private void ensureReceivedMessagesIsMutable() { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5042,7 +5042,7 @@ public java.util.List getReceivedMessagesL * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5061,7 +5061,7 @@ public int getReceivedMessagesCount() { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5080,7 +5080,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5105,7 +5105,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5128,7 +5128,7 @@ public Builder setReceivedMessages( * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5153,7 +5153,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5178,7 +5178,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5201,7 +5201,7 @@ public Builder addReceivedMessages( * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5224,7 +5224,7 @@ public Builder addReceivedMessages( * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5247,7 +5247,7 @@ public Builder addAllReceivedMessages( * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5269,7 +5269,7 @@ public Builder clearReceivedMessages() { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5291,7 +5291,7 @@ public Builder removeReceivedMessages(int index) { * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5306,7 +5306,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5325,7 +5325,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5345,7 +5345,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5361,7 +5361,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * @@ -5377,7 +5377,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
    -     * Optional. Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages.
          * 
    * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 1a6fedfa8..516c56f47 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -41,7 +41,7 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -54,7 +54,7 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -67,7 +67,7 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * @@ -81,7 +81,7 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Optional. Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages.
        * 
    * * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index e70130399..9e637b08e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -67,6 +67,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -259,7 +261,9 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -274,7 +278,9 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -374,7 +380,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -400,7 +408,9 @@ public java.lang.String getListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -862,7 +872,9 @@ public Builder mergeFrom( * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -887,7 +899,9 @@ public java.lang.String getListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -912,7 +926,9 @@ public com.google.protobuf.ByteString getListingBytes() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The listing to set. * @return This builder for chaining. @@ -936,7 +952,9 @@ public Builder setListing(java.lang.String value) { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -956,7 +974,9 @@ public Builder clearListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for listing to set. * @return This builder for chaining. @@ -2351,6 +2371,133 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransforms_.get(index); } + public static final int TAGS_FIELD_NUMBER = 26; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2424,6 +2571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(25, messageTransforms_.get(i)); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 26); getUnknownFields().writeTo(output); } @@ -2507,6 +2656,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, messageTransforms_.get(i)); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2572,6 +2731,7 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2645,6 +2805,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformsList().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2771,6 +2935,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2782,6 +2948,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 9: return internalGetMutableLabels(); + case 26: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2888,6 +3056,7 @@ public Builder clear() { messageTransformsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableTags().clear(); return this; } @@ -3020,6 +3189,10 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { : analyticsHubSubscriptionInfoBuilder_.build(); to_bitField0_ |= 0x00000100; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -3157,6 +3330,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } } } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00100000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3322,6 +3497,15 @@ public Builder mergeFrom( } break; } // case 202 + case 210: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00100000; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7065,6 +7249,213 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return messageTransformsBuilder_; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00100000; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00100000); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00100000; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00100000; + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00100000; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 40c9a735d..585c95c3e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -886,4 +886,92 @@ java.lang.String getLabelsOrDefault( *
    */ com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 234faa309..3719e7280 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -63,6 +63,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 2: return internalGetLabels(); + case 14: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -495,7 +497,9 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -522,7 +526,9 @@ public java.lang.String getKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -890,6 +896,133 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransforms_.get(index); } + public static final int TAGS_FIELD_NUMBER = 14; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -933,6 +1066,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(13, messageTransforms_.get(i)); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 14); getUnknownFields().writeTo(output); } @@ -985,6 +1120,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, messageTransforms_.get(i)); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1023,6 +1168,7 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1066,6 +1212,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformsList().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1189,6 +1339,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 2: return internalGetLabels(); + case 14: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1200,6 +1352,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 2: return internalGetMutableLabels(); + case 14: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1270,6 +1424,7 @@ public Builder clear() { messageTransformsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableTags().clear(); return this; } @@ -1360,6 +1515,10 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { : ingestionDataSourceSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1465,6 +1624,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { } } } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1567,6 +1728,15 @@ public Builder mergeFrom( } break; } // case 106 + case 114: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2145,7 +2315,9 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -2171,7 +2343,9 @@ public java.lang.String getKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -2197,7 +2371,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The kmsKeyName to set. * @return This builder for chaining. @@ -2222,7 +2398,9 @@ public Builder setKmsKeyName(java.lang.String value) { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2243,7 +2421,9 @@ public Builder clearKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. @@ -3557,6 +3737,213 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return messageTransformsBuilder_; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000400; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 875b6e81a..ea55bec4e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -187,7 +187,9 @@ java.lang.String getLabelsOrDefault( * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -203,7 +205,9 @@ java.lang.String getLabelsOrDefault( * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -475,4 +479,92 @@ java.lang.String getLabelsOrDefault( *
    */ com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 125b907f6..b542351d9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -33,6 +33,14 @@ option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; option php_namespace = "Google\\Cloud\\PubSub\\V1"; option ruby_package = "Google::Cloud::PubSub::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "analyticshub.googleapis.com/Listing" + pattern: "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" +}; // The service that an application uses to manipulate topics, and to send // messages to a topic. @@ -415,7 +423,10 @@ message IngestionDataSourceSettings { // Required. The name of the topic in the Amazon MSK cluster that Pub/Sub // will import from. - string topic = 3 [(google.api.field_behavior) = REQUIRED]; + string topic = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Required. AWS role ARN to be used for Federated Identity authentication // with Amazon MSK. Check the Pub/Sub docs for how to set up this role and @@ -712,12 +723,21 @@ message IngestionFailureEvent { // the Pub/Sub message. MessageTransformationFailureReason message_transformation_failure_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The message failed to be published due to an API violation. + // This is only set when the size of the data field of the Kinesis record + // is zero. + ApiViolationReason api_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } // Required. Name of the import topic. Format is: // projects/{project_name}/topics/{topic_name}. - string topic = 1 [(google.api.field_behavior) = REQUIRED]; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Required. Error details explaining why ingestion to Pub/Sub has failed. string error_message = 2 [(google.api.field_behavior) = REQUIRED]; @@ -849,7 +869,12 @@ message Topic { // protect access to messages published on this topic. // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - string kms_key_name = 5 [(google.api.field_behavior) = OPTIONAL]; + string kms_key_name = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; // Optional. Settings for validating messages published against a schema. SchemaSettings schema_settings = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -881,6 +906,16 @@ message Topic { // Transforms are applied in the order specified. repeated MessageTransform message_transforms = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 14 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A message that is published by publishers and consumed by subscribers. The @@ -1054,7 +1089,10 @@ message ListTopicSnapshotsRequest { // Response for the `ListTopicSnapshots` method. message ListTopicSnapshotsResponse { // Optional. The names of the snapshots that match the request. - repeated string snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; + repeated string snapshots = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } + ]; // Optional. If not empty, indicates that there may be more snapshots that // match the request; this value should be passed in a new @@ -1348,7 +1386,12 @@ message Subscription { // Optional. The name of the associated Analytics Hub listing resource. // Pattern: // "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" - string listing = 1 [(google.api.field_behavior) = OPTIONAL]; + string listing = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/Listing" + } + ]; // Optional. The name of the associated Analytics Hub subscription resource. // Pattern: @@ -1514,6 +1557,16 @@ message Subscription { // subscribers. Transforms are applied in the order specified. repeated MessageTransform message_transforms = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 26 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A policy that specifies how Pub/Sub retries message delivery. @@ -1555,7 +1608,10 @@ message DeadLetterPolicy { // The operation will fail if the topic does not exist. // Users should ensure that there is a subscription attached to this topic // since messages published to a topic with no subscriptions are lost. - string dead_letter_topic = 1 [(google.api.field_behavior) = OPTIONAL]; + string dead_letter_topic = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Optional. The maximum number of delivery attempts for any message. The // value must be between 5 and 100. @@ -2183,7 +2239,7 @@ message StreamingPullResponse { bool message_ordering_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Optional. Received Pub/Sub messages. This will not be empty. + // Optional. Received Pub/Sub messages. repeated ReceivedMessage received_messages = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -2234,6 +2290,16 @@ message CreateSnapshotRequest { // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 4 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // Request for the UpdateSnapshot method. From ba72c8b7f2d39204ef5995fcf4d6dcf601243891 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:18:35 -0400 Subject: [PATCH 621/656] chore(main): release 1.143.0 (#2591) * chore(main): release 1.143.0 * chore: generate libraries at Mon Oct 20 17:38:19 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 23 +++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb63149ef..2df2a6eb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.143.0](https://github.com/googleapis/java-pubsub/compare/v1.142.0...v1.143.0) (2025-10-20) + + +### Features + +* Annotate some resource fields with their corresponding API types ([ab60afa](https://github.com/googleapis/java-pubsub/commit/ab60afa012bd3fc81977ba24c416205ce9280943)) +* Implement SubscriberShutdownSettings ([#2569](https://github.com/googleapis/java-pubsub/issues/2569)) ([8195f6f](https://github.com/googleapis/java-pubsub/commit/8195f6fd3bbd33a178535994a94a79822ae2d4d6)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.63.0 ([ab60afa](https://github.com/googleapis/java-pubsub/commit/ab60afa012bd3fc81977ba24c416205ce9280943)) +* Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files ([#2583](https://github.com/googleapis/java-pubsub/issues/2583)) ([f3cf5e7](https://github.com/googleapis/java-pubsub/commit/f3cf5e725c12173ade0275fd0526885309dc553a)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2576](https://github.com/googleapis/java-pubsub/issues/2576)) ([1375f6d](https://github.com/googleapis/java-pubsub/commit/1375f6d9a71c78d973a71f1df449640a95bc0bc7)) +* Update actions/checkout action to v5 ([#2584](https://github.com/googleapis/java-pubsub/issues/2584)) ([25059ce](https://github.com/googleapis/java-pubsub/commit/25059ce001e3273fcec9d1c40e3b09c89ddf487e)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.2 ([#2582](https://github.com/googleapis/java-pubsub/issues/2582)) ([d0f9673](https://github.com/googleapis/java-pubsub/commit/d0f96737a74453c3db54ee59e98d4b6636cd55d4)) +* Update dependency com.google.cloud:google-cloud-storage to v2.58.1 ([#2580](https://github.com/googleapis/java-pubsub/issues/2580)) ([d156cdb](https://github.com/googleapis/java-pubsub/commit/d156cdb27a8d68b6fa8c97f558df7088e6634320)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 ([#2589](https://github.com/googleapis/java-pubsub/issues/2589)) ([ce7cb09](https://github.com/googleapis/java-pubsub/commit/ce7cb09ac5e86953815e2ead9ae9202e9b034ba6)) + ## [1.142.0](https://github.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) diff --git a/README.md b/README.md index 2e7f2aa59..615b42ea6 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.142.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.143.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.142.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.142.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7074cefc5..39ad7f874 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.142.1-SNAPSHOT + 1.143.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index adbcb6edb..35f337209 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 91701e5ee..7cb6e8fe2 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/pom.xml b/pom.xml index b2ddf1f78..8c63f6dc9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.142.1-SNAPSHOT + 1.143.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 89a797056..ee3d27b32 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3893f817c..99a343181 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/versions.txt b/versions.txt index f14ecc920..7092d2e59 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.142.0:1.142.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT +google-cloud-pubsub:1.143.0:1.143.0 +grpc-google-cloud-pubsub-v1:1.125.0:1.125.0 +proto-google-cloud-pubsub-v1:1.125.0:1.125.0 From 12ec6aebc9466fdf9d7324e9246b4a0923a2d52b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:39:34 -0400 Subject: [PATCH 622/656] chore(main): release 1.143.1-SNAPSHOT (#2597) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 39ad7f874..860224290 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.0 + 1.143.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 35f337209..f168157af 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 7cb6e8fe2..f03dd6cd4 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8c63f6dc9..6cb487d01 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.0 + 1.143.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index ee3d27b32..aba3441c9 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 99a343181..74d6d4cc6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 7092d2e59..b4c02f8d6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.0:1.143.0 -grpc-google-cloud-pubsub-v1:1.125.0:1.125.0 -proto-google-cloud-pubsub-v1:1.125.0:1.125.0 +google-cloud-pubsub:1.143.0:1.143.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT From 298c8db04616341da040935636b1a04ce5f022a0 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 21 Oct 2025 16:03:25 -0400 Subject: [PATCH 623/656] fix: Deflake WaiterTest (#2600) * chore: Deflake WaiterTest * chore: Update test * chore: Test specific case * fix: Update WaiterTest * fix: Fix flaky test * fix: Try more fixes * fix: Simplify WaiterTest logic and removing special testing on Kokoro config --- .../google/cloud/pubsub/v1/WaiterTest.java | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java index c9eed7e16..aaa396690 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java @@ -55,39 +55,61 @@ public void run() { } @Test - public void testTryWait_Completes() { + public void testTryWait_Completes() throws Exception { final Waiter waiter = new Waiter(); waiter.incrementPendingCount(1); final FakeClock clock = new FakeClock(); + final Thread mainThread = Thread.currentThread(); Thread t = new Thread( - () -> { - try { - Thread.sleep(100); - } catch (InterruptedException e) { + new Runnable() { + @Override + public void run() { + while (mainThread.getState() == Thread.State.NEW) { + Thread.yield(); + } + waiter.incrementPendingCount(-1); } - waiter.incrementPendingCount(-1); }); t.start(); assertTrue(waiter.tryWait(500, clock)); + t.join(); + + assertEquals(0, waiter.pendingCount()); } @Test - public void testTryWait_TimesOut() { + public void testTryWait_TimesOut() throws Exception { final Waiter waiter = new Waiter(); waiter.incrementPendingCount(1); final FakeClock clock = new FakeClock(); + final Thread mainThread = Thread.currentThread(); Thread t = new Thread( - () -> { - clock.advance(100, TimeUnit.MILLISECONDS); + new Runnable() { + @Override + public void run() { + while (mainThread.getState() == Thread.State.NEW) { + Thread.yield(); + } + try { + // Waits some additional time to ensure that the waiter is actually waiting. + Thread.sleep(100); + clock.advance(200, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + // Ignored. + } + } }); t.start(); assertFalse(waiter.tryWait(100, clock)); + t.join(); + + assertEquals(1, waiter.pendingCount()); } @Test From d9d05bfa18580cdacdfa9378d30b56ce0ae0d4d2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:50:44 +0000 Subject: [PATCH 624/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.59.0 (#2603) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 35331a6b0..f0e276c68 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.58.1 + 2.59.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 74d6d4cc6..fbd68b5c4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.58.1 + 2.59.0 com.google.cloud.opentelemetry From cb7c534612166365bfb2d9f5c0c13ebf95692a20 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:51:15 -0400 Subject: [PATCH 625/656] chore: Update generation configuration at Tue Oct 28 02:33:34 UTC 2025 (#2599) * chore: Update generation configuration at Tue Oct 21 02:34:51 UTC 2025 * chore: Update generation configuration at Wed Oct 22 02:34:52 UTC 2025 * chore: Update generation configuration at Thu Oct 23 02:32:41 UTC 2025 * chore: Update generation configuration at Fri Oct 24 02:31:09 UTC 2025 * chore: Update generation configuration at Sat Oct 25 02:33:27 UTC 2025 * chore: Update generation configuration at Tue Oct 28 02:33:34 UTC 2025 * chore: generate libraries at Tue Oct 28 02:34:04 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 615b42ea6..6f8ac9068 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.70.0') +implementation platform('com.google.cloud:libraries-bom:26.71.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 0a9e75959..626e36d32 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.63.0 -googleapis_commitish: c288189b43c016dd3cf1ec73ce3cadee8b732f07 -libraries_bom_version: 26.70.0 +googleapis_commitish: b1a9eefc2e1021fb9465bdac5e2984499451ae34 +libraries_bom_version: 26.71.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 6ca466d382ddde9780ae1c8627092d731e314f90 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:58:55 +0000 Subject: [PATCH 626/656] deps: update actions/checkout action to v5 (#2592) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From d14106cc278c98d3f954f959e2dd3764ebd20fc2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:59:00 +0000 Subject: [PATCH 627/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.3 (#2602) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f0e276c68..13ddb7c07 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.2 + 2.55.3 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fbd68b5c4..3269fdc68 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.2 + 2.55.3 com.google.cloud From 244cf758bf46f8431a17b1d8e76d1d90c494fc76 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:00:07 +0000 Subject: [PATCH 628/656] deps: update dependency com.google.cloud:google-cloud-core to v2.61.0 (#2588) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 13ddb7c07..4099250e8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3269fdc68..94861b773 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c0b404f69..6952fd2de 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests From 33724cef79e3f7e798c5ef222ee7dff3565555f8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:06:41 +0000 Subject: [PATCH 629/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.0 (#2587) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4099250e8..90a69b9e5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 94861b773..5627d8080 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6952fd2de..4123a7ad3 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 From 0330c666d91fb58e808eaf5af5bd9fd96487a01d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:06:50 +0000 Subject: [PATCH 630/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.71.0 (#2604) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4123a7ad3..40d7fb828 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import From 42ad2d09be974f266063e688670311c6450a4a8d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:12:03 +0000 Subject: [PATCH 631/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.143.0 (#2598) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 90a69b9e5..e9b2ee2b8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.143.0 From 240fc3784db3860eb2668946fbf861beed2647d7 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 13 Nov 2025 11:58:52 -0500 Subject: [PATCH 632/656] deps: Remove OpenTelemetry semconv dependency (#2611) * deps: Remove OpenTelemetry semconv dependency * chore: Fix formatting --- google-cloud-pubsub/pom.xml | 4 -- .../pubsub/v1/OpenTelemetryPubsubTracer.java | 29 ++++---- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 4 +- .../cloud/pubsub/v1/OpenTelemetryTest.java | 69 ++++++++++--------- 4 files changed, 55 insertions(+), 51 deletions(-) diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index f168157af..6fb9d2473 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -108,10 +108,6 @@ io.opentelemetry opentelemetry-context - - io.opentelemetry - opentelemetry-semconv - diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java index 9ee751135..3de448458 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -27,7 +27,6 @@ import io.opentelemetry.api.trace.StatusCode; import io.opentelemetry.api.trace.Tracer; import io.opentelemetry.context.Context; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; import java.util.List; public class OpenTelemetryPubsubTracer { @@ -40,6 +39,13 @@ public class OpenTelemetryPubsubTracer { "subscriber concurrency control"; private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + private static final String MESSAGING_SYSTEM_ATTR_KEY = "messaging.system"; + private static final String MESSAGING_DESTINATION_NAME_ATTR_KEY = "messaging.destination.name"; + private static final String CODE_FUNCTION_ATTR_KEY = "code.function"; + private static final String MESSAGING_OPERATION_ATTR_KEY = "messaging.operation"; + private static final String MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY = + "messaging.batch.message_count"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; @@ -66,12 +72,12 @@ private static final AttributesBuilder createCommonSpanAttributesBuilder( String destinationName, String projectName, String codeFunction, String operation) { AttributesBuilder attributesBuilder = Attributes.builder() - .put(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .put(SemanticAttributes.MESSAGING_DESTINATION_NAME, destinationName) + .put(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .put(MESSAGING_DESTINATION_NAME_ATTR_KEY, destinationName) .put(PROJECT_ATTR_KEY, projectName) - .put(SemanticAttributes.CODE_FUNCTION, codeFunction); + .put(CODE_FUNCTION_ATTR_KEY, codeFunction); if (operation != null) { - attributesBuilder.put(SemanticAttributes.MESSAGING_OPERATION, operation); + attributesBuilder.put(MESSAGING_OPERATION_ATTR_KEY, operation); } return attributesBuilder; @@ -179,7 +185,7 @@ Span startPublishRpcSpan(TopicName topicName, List message Attributes attributes = createCommonSpanAttributesBuilder( topicName.getTopic(), topicName.getProject(), "publishCall", "publish") - .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()) + .put(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messages.size()) .build(); SpanBuilder publishRpcSpanBuilder = tracer @@ -187,7 +193,7 @@ Span startPublishRpcSpan(TopicName topicName, List message .setSpanKind(SpanKind.CLIENT) .setAllAttributes(attributes); Attributes linkAttributes = - Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, "publish").build(); + Attributes.builder().put(MESSAGING_OPERATION_ATTR_KEY, "publish").build(); for (PubsubMessageWrapper message : messages) { if (message.getPublisherSpan().getSpanContext().isSampled()) publishRpcSpanBuilder.addLink(message.getPublisherSpan().getSpanContext(), linkAttributes); @@ -237,7 +243,7 @@ void startSubscriberSpan(PubsubMessageWrapper message, boolean exactlyOnceDelive message.getSubscriptionName(), message.getSubscriptionProject(), "onResponse", null); attributesBuilder - .put(SemanticAttributes.MESSAGING_MESSAGE_ID, message.getMessageId()) + .put(MESSAGING_MESSAGE_ID_ATTR_KEY, message.getMessageId()) .put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()) .put(MESSAGE_ACK_ID_ATTR_KEY, message.getAckId()) .put(MESSAGE_EXACTLY_ONCE_ATTR_KEY, exactlyOnceDeliveryEnabled); @@ -336,8 +342,7 @@ void startSubscribeProcessSpan(PubsubMessageWrapper message) { if (subscriberSpan != null) { Span subscribeProcessSpan = startChildSpan(message.getSubscriptionName() + " process", subscriberSpan); - subscribeProcessSpan.setAttribute( - SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE); + subscribeProcessSpan.setAttribute(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE); Span publisherSpan = message.getPublisherSpan(); if (publisherSpan != null) { subscribeProcessSpan.addLink(publisherSpan.getSpanContext()); @@ -373,7 +378,7 @@ Span startSubscribeRpcSpan( subscriptionName.getProject(), codeFunction, rpcOperation) - .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()); + .put(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messages.size()); // Ack deadline and receipt modack are specific to the modack operation if (rpcOperation == "modack") { @@ -388,7 +393,7 @@ Span startSubscribeRpcSpan( .setSpanKind(SpanKind.CLIENT) .setAllAttributes(attributesBuilder.build()); Attributes linkAttributes = - Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, rpcOperation).build(); + Attributes.builder().put(MESSAGING_OPERATION_ATTR_KEY, rpcOperation).build(); for (PubsubMessageWrapper message : messages) { if (message.getSubscriberSpan().getSpanContext().isSampled()) { rpcSpanBuilder.addLink(message.getSubscriberSpan().getSpanContext(), linkAttributes); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 7067b0c1a..19864a26f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -26,7 +26,6 @@ import io.opentelemetry.context.Context; import io.opentelemetry.context.propagation.TextMapGetter; import io.opentelemetry.context.propagation.TextMapSetter; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; /** * A wrapper class for a {@link PubsubMessage} object that handles creation and tracking of @@ -54,6 +53,7 @@ public class PubsubMessageWrapper { private static final String GOOGCLIENT_PREFIX = "googclient_"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; private Span publisherSpan; @@ -194,7 +194,7 @@ void addPublishStartEvent() { */ void setPublisherMessageIdSpanAttribute(String messageId) { if (publisherSpan != null) { - publisherSpan.setAttribute(SemanticAttributes.MESSAGING_MESSAGE_ID, messageId); + publisherSpan.setAttribute(MESSAGING_MESSAGE_ID_ATTR_KEY, messageId); } } diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java index 2297f84bf..52351ddef 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -35,7 +35,6 @@ import io.opentelemetry.sdk.trace.data.LinkData; import io.opentelemetry.sdk.trace.data.SpanData; import io.opentelemetry.sdk.trace.data.StatusData; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; import java.util.Arrays; import java.util.List; import org.junit.Test; @@ -82,6 +81,13 @@ public class OpenTelemetryTest { private static final String ACK_START_EVENT = "ack start"; private static final String ACK_END_EVENT = "ack end"; + private static final String MESSAGING_SYSTEM_ATTR_KEY = "messaging.system"; + private static final String MESSAGING_DESTINATION_NAME_ATTR_KEY = "messaging.destination.name"; + private static final String CODE_FUNCTION_ATTR_KEY = "code.function"; + private static final String MESSAGING_OPERATION_ATTR_KEY = "messaging.operation"; + private static final String MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY = + "messaging.batch.message_count"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; private static final String PROJECT_ATTR_KEY = "gcp.project_id"; private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; @@ -159,12 +165,12 @@ public void testPublishSpansSuccess() { AttributesAssert publishRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(publishRpcSpanData.getAttributes()); publishRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_TOPIC_NAME.getTopic()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "publishCall") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "publish") - .containsEntry(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "publishCall") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "publish") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messageWrappers.size()); // Check span data, events, links, and attributes for the publisher create span SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); @@ -190,14 +196,14 @@ public void testPublishSpansSuccess() { AttributesAssert publisherSpanAttributesAssert = OpenTelemetryAssertions.assertThat(publisherSpanData.getAttributes()); publisherSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_TOPIC_NAME.getTopic()) .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "publish") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "create") + .containsEntry(CODE_FUNCTION_ATTR_KEY, "publish") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "create") .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) - .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + .containsEntry(MESSAGING_MESSAGE_ID_ATTR_KEY, MESSAGE_ID); // Check that the message has the attribute containing the trace context. PubsubMessage message = messageWrapper.getPubsubMessage(); @@ -393,14 +399,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert modackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(modackRpcSpanData.getAttributes()); modackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "modack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()) + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendModAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "modack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()) .containsEntry(ACK_DEADLINE_ATTR_KEY, 10) .containsEntry(RECEIPT_MODACK_ATTR_KEY, true); @@ -420,14 +425,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert ackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(ackRpcSpanData.getAttributes()); ackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "ack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "ack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()); // Check span data, links, and attributes for the nack RPC span SpanDataAssert nackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData); @@ -445,14 +449,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert nackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData.getAttributes()); nackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "nack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendModAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "nack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()); // Check span data, events, links, and attributes for the publisher create span SpanDataAssert subscriberSpanDataAssert = @@ -493,18 +496,18 @@ public void testSubscribeSpansSuccess() { AttributesAssert subscriberSpanAttributesAssert = OpenTelemetryAssertions.assertThat(subscriberSpanData.getAttributes()); subscriberSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "onResponse") + .containsEntry(CODE_FUNCTION_ATTR_KEY, "onResponse") .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) .containsEntry(MESSAGE_ACK_ID_ATTR_KEY, ACK_ID) .containsEntry(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, DELIVERY_ATTEMPT) .containsEntry(MESSAGE_EXACTLY_ONCE_ATTR_KEY, EXACTLY_ONCE_ENABLED) .containsEntry(MESSAGE_RESULT_ATTR_KEY, PROCESS_ACTION) - .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + .containsEntry(MESSAGING_MESSAGE_ID_ATTR_KEY, MESSAGE_ID); } @Test From c99373f2d25c6b9f1bcb6aace3c6625375310a16 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 17:27:44 +0000 Subject: [PATCH 633/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.54.1 (#2609) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 118c3b50f..ba9ae7cf5 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.53.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 860224290..8cada16c8 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.53.0 + 3.54.1 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 6cb487d01..7338700d4 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.53.0 + 3.54.1 From b2102516bf833c2704c85cb348b67bb7cbfdb3a6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 13 Nov 2025 13:19:13 -0500 Subject: [PATCH 634/656] chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025 (#2606) * chore: Update generation configuration at Wed Oct 29 02:36:04 UTC 2025 * chore: generate libraries at Wed Oct 29 02:36:40 UTC 2025 * chore: Update generation configuration at Thu Oct 30 02:35:08 UTC 2025 * chore: Update generation configuration at Fri Oct 31 02:36:01 UTC 2025 * chore: Update generation configuration at Sat Nov 1 02:35:35 UTC 2025 * chore: Update generation configuration at Tue Nov 4 02:36:23 UTC 2025 * chore: Update generation configuration at Wed Nov 5 02:35:14 UTC 2025 * chore: generate libraries at Wed Nov 5 02:35:46 UTC 2025 * chore: Update generation configuration at Thu Nov 6 02:35:50 UTC 2025 * chore: Update generation configuration at Fri Nov 7 02:34:52 UTC 2025 * chore: Update generation configuration at Sat Nov 8 02:31:55 UTC 2025 * chore: generate libraries at Sat Nov 8 02:32:23 UTC 2025 * chore: Update generation configuration at Tue Nov 11 02:35:53 UTC 2025 * chore: Update generation configuration at Wed Nov 12 02:34:52 UTC 2025 * chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025 --------- Co-authored-by: Diego Marquez --- .../hermetic_library_generation.yaml | 2 +- .../workflows/update_generation_config.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 4 +- generation_config.yaml | 4 +- .../com/google/pubsub/v1/PublisherGrpc.java | 45 ++++++------- .../google/pubsub/v1/SchemaServiceGrpc.java | 46 +++++++------ .../com/google/pubsub/v1/SubscriberGrpc.java | 66 +++++++++---------- 10 files changed, 87 insertions(+), 88 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7023350ad..f61e4eb85 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 55c5543e2..b772eac66 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index 5c981b984..baf136cf8 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index f2032499d..2fb2fc87c 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index 6f8ac9068..f0b5c24b3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.142.0 + 1.143.0 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 626e36d32..744688ac1 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.63.0 -googleapis_commitish: b1a9eefc2e1021fb9465bdac5e2984499451ae34 +gapic_generator_version: 2.64.1 +googleapis_commitish: 5342712986262b93211b136eb4bd6fb79b3764af libraries_bom_version: 26.71.0 libraries: - api_shortname: pubsub diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index a1b0a2b1c..8ee09f14e 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -25,9 +25,6 @@ * messages to a topic. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/pubsub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PublisherGrpc { @@ -832,8 +829,9 @@ protected PublisherBlockingV2Stub build( * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * */ - public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTopicMethod(), getCallOptions(), request); } @@ -845,8 +843,9 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request * mask. Note that certain properties of a topic are not modifiable. * */ - public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTopicMethod(), getCallOptions(), request); } @@ -858,9 +857,9 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe * does not exist. * */ - public com.google.pubsub.v1.PublishResponse publish( - com.google.pubsub.v1.PublishRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPublishMethod(), getCallOptions(), request); } @@ -871,8 +870,9 @@ public com.google.pubsub.v1.PublishResponse publish( * Gets the configuration of a topic. * */ - public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTopicMethod(), getCallOptions(), request); } @@ -884,8 +884,8 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest * */ public com.google.pubsub.v1.ListTopicsResponse listTopics( - com.google.pubsub.v1.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicsMethod(), getCallOptions(), request); } @@ -897,8 +897,8 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics( * */ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } @@ -914,8 +914,8 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription * */ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } @@ -930,8 +930,9 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( * not deleted, but their `topic` field is set to `_deleted-topic_`. * */ - public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } @@ -946,8 +947,8 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq * */ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DetachSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); } } diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 35c281c88..59fbec01b 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -24,9 +24,6 @@ * Service for doing schema-related operations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/schema.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { @@ -881,8 +878,8 @@ protected SchemaServiceBlockingV2Stub build( * */ public com.google.pubsub.v1.Schema createSchema( - com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CreateSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } @@ -893,8 +890,9 @@ public com.google.pubsub.v1.Schema createSchema( * Gets a schema. * */ - public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } @@ -906,8 +904,8 @@ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaReque * */ public com.google.pubsub.v1.ListSchemasResponse listSchemas( - com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSchemasRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } @@ -919,8 +917,8 @@ public com.google.pubsub.v1.ListSchemasResponse listSchemas( * */ public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( - com.google.pubsub.v1.ListSchemaRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); } @@ -932,8 +930,8 @@ public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( * */ public com.google.pubsub.v1.Schema commitSchema( - com.google.pubsub.v1.CommitSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CommitSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitSchemaMethod(), getCallOptions(), request); } @@ -945,8 +943,8 @@ public com.google.pubsub.v1.Schema commitSchema( * */ public com.google.pubsub.v1.Schema rollbackSchema( - com.google.pubsub.v1.RollbackSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.RollbackSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); } @@ -958,8 +956,8 @@ public com.google.pubsub.v1.Schema rollbackSchema( * */ public com.google.pubsub.v1.Schema deleteSchemaRevision( - com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); } @@ -970,9 +968,9 @@ public com.google.pubsub.v1.Schema deleteSchemaRevision( * Deletes a schema. * */ - public com.google.protobuf.Empty deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } @@ -984,8 +982,8 @@ public com.google.protobuf.Empty deleteSchema( * */ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ValidateSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateSchemaMethod(), getCallOptions(), request); } @@ -997,8 +995,8 @@ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( * */ public com.google.pubsub.v1.ValidateMessageResponse validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ValidateMessageRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateMessageMethod(), getCallOptions(), request); } } diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 2a8fc9299..26003fb0e 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -26,9 +26,6 @@ * establishing a bi-directional stream using the `StreamingPull` method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/pubsub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SubscriberGrpc { @@ -1450,8 +1447,8 @@ protected SubscriberBlockingV2Stub build( * */ public com.google.pubsub.v1.Subscription createSubscription( - com.google.pubsub.v1.Subscription request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.Subscription request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } @@ -1463,8 +1460,8 @@ public com.google.pubsub.v1.Subscription createSubscription( * */ public com.google.pubsub.v1.Subscription getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.GetSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } @@ -1478,8 +1475,8 @@ public com.google.pubsub.v1.Subscription getSubscription( * */ public com.google.pubsub.v1.Subscription updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.UpdateSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } @@ -1491,8 +1488,8 @@ public com.google.pubsub.v1.Subscription updateSubscription( * */ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSubscriptionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -1508,8 +1505,8 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( * */ public com.google.protobuf.Empty deleteSubscription( - com.google.pubsub.v1.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -1525,8 +1522,8 @@ public com.google.protobuf.Empty deleteSubscription( * */ public com.google.protobuf.Empty modifyAckDeadline( - com.google.pubsub.v1.ModifyAckDeadlineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } @@ -1542,8 +1539,9 @@ public com.google.protobuf.Empty modifyAckDeadline( * than once will not result in an error. * */ - public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeMethod(), getCallOptions(), request); } @@ -1554,8 +1552,9 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq * Pulls messages from the server. * */ - public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPullMethod(), getCallOptions(), request); } @@ -1592,8 +1591,8 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r * */ public com.google.protobuf.Empty modifyPushConfig( - com.google.pubsub.v1.ModifyPushConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ModifyPushConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } @@ -1609,8 +1608,8 @@ public com.google.protobuf.Empty modifyPushConfig( * */ public com.google.pubsub.v1.Snapshot getSnapshot( - com.google.pubsub.v1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.GetSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -1626,8 +1625,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot( * */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( - com.google.pubsub.v1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } @@ -1654,8 +1653,8 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * */ public com.google.pubsub.v1.Snapshot createSnapshot( - com.google.pubsub.v1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CreateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } @@ -1672,8 +1671,8 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * */ public com.google.pubsub.v1.Snapshot updateSnapshot( - com.google.pubsub.v1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.UpdateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } @@ -1693,8 +1692,8 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( * */ public com.google.protobuf.Empty deleteSnapshot( - com.google.pubsub.v1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -1711,8 +1710,9 @@ public com.google.protobuf.Empty deleteSnapshot( * snapshot must be on the same topic. * */ - public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSeekMethod(), getCallOptions(), request); } } From 1550b9fbbb3a192cc69dd285ab8bf9636866ea9e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:00:27 -0500 Subject: [PATCH 635/656] chore(main): release 1.143.1 (#2601) * chore(main): release 1.143.1 * chore: generate libraries at Thu Nov 13 18:20:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 19 +++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 40 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df2a6eb3..d16543734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.143.1](https://github.com/googleapis/java-pubsub/compare/v1.143.0...v1.143.1) (2025-11-13) + + +### Bug Fixes + +* Deflake WaiterTest ([#2600](https://github.com/googleapis/java-pubsub/issues/2600)) ([298c8db](https://github.com/googleapis/java-pubsub/commit/298c8db04616341da040935636b1a04ce5f022a0)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.1 ([b210251](https://github.com/googleapis/java-pubsub/commit/b2102516bf833c2704c85cb348b67bb7cbfdb3a6)) + + +### Dependencies + +* Remove OpenTelemetry semconv dependency ([#2611](https://github.com/googleapis/java-pubsub/issues/2611)) ([240fc37](https://github.com/googleapis/java-pubsub/commit/240fc3784db3860eb2668946fbf861beed2647d7)) +* Update actions/checkout action to v5 ([#2592](https://github.com/googleapis/java-pubsub/issues/2592)) ([6ca466d](https://github.com/googleapis/java-pubsub/commit/6ca466d382ddde9780ae1c8627092d731e314f90)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.3 ([#2602](https://github.com/googleapis/java-pubsub/issues/2602)) ([d14106c](https://github.com/googleapis/java-pubsub/commit/d14106cc278c98d3f954f959e2dd3764ebd20fc2)) +* Update dependency com.google.cloud:google-cloud-core to v2.61.0 ([#2588](https://github.com/googleapis/java-pubsub/issues/2588)) ([244cf75](https://github.com/googleapis/java-pubsub/commit/244cf758bf46f8431a17b1d8e76d1d90c494fc76)) +* Update dependency com.google.cloud:google-cloud-storage to v2.59.0 ([#2603](https://github.com/googleapis/java-pubsub/issues/2603)) ([d9d05bf](https://github.com/googleapis/java-pubsub/commit/d9d05bfa18580cdacdfa9378d30b56ce0ae0d4d2)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.1 ([#2609](https://github.com/googleapis/java-pubsub/issues/2609)) ([c99373f](https://github.com/googleapis/java-pubsub/commit/c99373f2d25c6b9f1bcb6aace3c6625375310a16)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.0 ([#2587](https://github.com/googleapis/java-pubsub/issues/2587)) ([33724ce](https://github.com/googleapis/java-pubsub/commit/33724cef79e3f7e798c5ef222ee7dff3565555f8)) + ## [1.143.0](https://github.com/googleapis/java-pubsub/compare/v1.142.0...v1.143.0) (2025-10-20) diff --git a/README.md b/README.md index f0b5c24b3..b0672bc00 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.143.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.143.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 8cada16c8..5281720c5 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.1-SNAPSHOT + 1.143.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 6fb9d2473..8d31ef029 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index f03dd6cd4..fd03db4db 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/pom.xml b/pom.xml index 7338700d4..f5fd9874d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.1-SNAPSHOT + 1.143.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index aba3441c9..012ad1784 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5627d8080..95a05609c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/versions.txt b/versions.txt index b4c02f8d6..e51f1f34a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.0:1.143.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT +google-cloud-pubsub:1.143.1:1.143.1 +grpc-google-cloud-pubsub-v1:1.125.1:1.125.1 +proto-google-cloud-pubsub-v1:1.125.1:1.125.1 From a69ffdd9ecb5dae557a847ae7ec5c1a06431bef7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:17 +0000 Subject: [PATCH 636/656] deps: update actions/checkout action to v5 (#2613) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..59e39834d 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 1cae247322fff1b6588a4b523e601e41a4284c64 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:23 +0000 Subject: [PATCH 637/656] deps: update dependency com.google.cloud:google-cloud-storage to v2.60.0 (#2610) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e9b2ee2b8..4671d63bb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.59.0 + 2.60.0 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95a05609c..0591861bb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.59.0 + 2.60.0 com.google.cloud.opentelemetry From fee0500bf6a0e309ca5f162810e22a2ca4c5b7eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:27 +0000 Subject: [PATCH 638/656] deps: update dependency com.google.cloud:google-cloud-core to v2.62.1 (#2608) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4671d63bb..bba13db02 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0591861bb..426e5d5d3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 40d7fb828..dc4c66250 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests From 26cb618d4c707ecb6329425988a33ab3ab92d52b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:46:30 +0000 Subject: [PATCH 639/656] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.143.1 (#2615) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bba13db02..050ed8d2b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1 From e92debccf9e87971c2d9fee34baffb4b534f24a3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 22:49:46 +0000 Subject: [PATCH 640/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.1 (#2612) Co-authored-by: Mike Prieto --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 050ed8d2b..ed71217f5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 426e5d5d3..addbfc8a2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index dc4c66250..6441845bd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 From 99aca4f3fd1792b02da78320bed39e53dc8af23c Mon Sep 17 00:00:00 2001 From: Samuel Schaub <40373331+SamuelSchaub@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:56:53 -0500 Subject: [PATCH 641/656] feat: add keepalive feature to tear down streams in their absence (#2605) * feat: add keepalive feature to tear down streams in their absence * fix: reset timer each time stream is opened * fix: update timings for server monitor to meet stream close time policy * fix: update initial delay vs period in fake scheduled executor and fix test cases --- .../v1/StreamingSubscriberConnection.java | 147 +++++++++++++++ .../google/cloud/pubsub/v1/Subscriber.java | 11 ++ .../v1/FakeScheduledExecutorService.java | 17 +- .../v1/StreamingSubscriberConnectionTest.java | 171 ++++++++++++++++++ 4 files changed, 342 insertions(+), 4 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 319dd31f5..5c9f9e171 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -63,6 +63,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; @@ -95,6 +96,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final SubscriberStub subscriberStub; private final int channelAffinity; + private final long protocolVersion; private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; @@ -127,6 +129,17 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); private final SubscriberShutdownSettings subscriberShutdownSettings; + private final boolean enableKeepalive; + private static final long KEEP_ALIVE_SUPPORT_VERSION = 1; + private static final Duration CLIENT_PING_INTERVAL = Duration.ofSeconds(30); + private ScheduledFuture pingSchedulerHandle; + + private static final Duration SERVER_MONITOR_INTERVAL = Duration.ofSeconds(10); + private static final Duration SERVER_PING_TIMEOUT_DURATION = Duration.ofSeconds(15); + private final AtomicLong lastServerResponseTime; + private final AtomicLong lastClientPingTime; + private ScheduledFuture serverMonitorHandle; + private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); @@ -154,6 +167,7 @@ private StreamingSubscriberConnection(Builder builder) { subscriberStub = builder.subscriberStub; channelAffinity = builder.channelAffinity; + protocolVersion = builder.protocolVersion; MessageDispatcher.Builder messageDispatcherBuilder; if (builder.receiver != null) { @@ -190,6 +204,9 @@ private StreamingSubscriberConnection(Builder builder) { flowControlSettings = builder.flowControlSettings; useLegacyFlowControl = builder.useLegacyFlowControl; + enableKeepalive = protocolVersion >= KEEP_ALIVE_SUPPORT_VERSION; + lastServerResponseTime = new AtomicLong(clock.nanoTime()); + lastClientPingTime = new AtomicLong(-1L); } public StreamingSubscriberConnection setExactlyOnceDeliveryEnabled( @@ -218,6 +235,12 @@ protected void doStop() { } finally { lock.unlock(); } + + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } + runShutdown(); notifyStopped(); } @@ -266,6 +289,10 @@ public void onStart(StreamController controller) { @Override public void onResponse(StreamingPullResponse response) { + if (enableKeepalive) { + lastServerResponseTime.set(clock.nanoTime()); + } + channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); boolean exactlyOnceDeliveryEnabledResponse = @@ -295,11 +322,19 @@ public void onResponse(StreamingPullResponse response) { @Override public void onError(Throwable t) { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } errorFuture.setException(t); } @Override public void onComplete() { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } logger.fine("Streaming pull terminated successfully!"); errorFuture.set(null); } @@ -336,6 +371,7 @@ private void initialize() { this.useLegacyFlowControl ? 0 : valueOrZero(flowControlSettings.getMaxOutstandingRequestBytes())) + .setProtocolVersion(protocolVersion) .build()); /** @@ -350,6 +386,13 @@ private void initialize() { lock.unlock(); } + if (enableKeepalive) { + lastServerResponseTime.set(clock.nanoTime()); + lastClientPingTime.set(-1L); + startClientPinger(); + startServerMonitor(); + } + ApiFutures.addCallback( errorFuture, new ApiFutureCallback() { @@ -366,6 +409,10 @@ public void onSuccess(@Nullable Void result) { @Override public void onFailure(Throwable cause) { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } if (!isAlive()) { // we don't care about subscription failures when we're no longer running. logger.log(Level.FINE, "pull failure after service no longer running", cause); @@ -410,6 +457,100 @@ private boolean isAlive() { return state == State.RUNNING || state == State.STARTING; } + private void startClientPinger() { + if (pingSchedulerHandle != null) { + pingSchedulerHandle.cancel(false); + } + + pingSchedulerHandle = + systemExecutor.scheduleAtFixedRate( + () -> { + try { + lock.lock(); + try { + if (clientStream != null && isAlive()) { + clientStream.send(StreamingPullRequest.newBuilder().build()); + lastClientPingTime.set(clock.nanoTime()); + logger.log(Level.FINEST, "Sent client keepalive ping"); + } + } finally { + lock.unlock(); + } + } catch (Exception e) { + logger.log(Level.FINE, "Error sending client keepalive ping", e); + } + }, + 0, + CLIENT_PING_INTERVAL.getSeconds(), + TimeUnit.SECONDS); + } + + private void stopClientPinger() { + if (pingSchedulerHandle != null) { + pingSchedulerHandle.cancel(false); + pingSchedulerHandle = null; + } + } + + private void startServerMonitor() { + if (serverMonitorHandle != null) { + serverMonitorHandle.cancel(false); + } + + serverMonitorHandle = + systemExecutor.scheduleAtFixedRate( + () -> { + try { + if (!isAlive()) { + return; + } + + long now = clock.nanoTime(); + long lastResponse = lastServerResponseTime.get(); + long lastPing = lastClientPingTime.get(); + + if (lastPing <= lastResponse) { + return; + } + + Duration elapsedSincePing = Duration.ofNanos(now - lastPing); + if (elapsedSincePing.compareTo(SERVER_PING_TIMEOUT_DURATION) < 0) { + return; + } + + logger.log( + Level.WARNING, + "No response from server for {0} seconds since last ping. Closing stream.", + elapsedSincePing.getSeconds()); + + lock.lock(); + try { + if (clientStream != null) { + clientStream.closeSendWithError( + Status.UNAVAILABLE + .withDescription("Keepalive timeout with server") + .asException()); + } + } finally { + lock.unlock(); + } + stopServerMonitor(); + } catch (Exception e) { + logger.log(Level.FINE, "Error in server keepalive monitor", e); + } + }, + SERVER_MONITOR_INTERVAL.getSeconds(), + SERVER_MONITOR_INTERVAL.getSeconds(), + TimeUnit.SECONDS); + } + + private void stopServerMonitor() { + if (serverMonitorHandle != null) { + serverMonitorHandle.cancel(false); + serverMonitorHandle = null; + } + } + public void setResponseOutstandingMessages(AckResponse ackResponse) { // We will close the futures with ackResponse - if there are multiple references to the same // future they will be handled appropriately @@ -769,6 +910,7 @@ public static final class Builder { private Distribution ackLatencyDistribution; private SubscriberStub subscriberStub; private int channelAffinity; + private long protocolVersion; private FlowController flowController; private FlowControlSettings flowControlSettings; private boolean useLegacyFlowControl; @@ -840,6 +982,11 @@ public Builder setChannelAffinity(int channelAffinity) { return this; } + public Builder setProtocolVersion(long protocolVersion) { + this.protocolVersion = protocolVersion; + return this; + } + public Builder setFlowController(FlowController flowController) { this.flowController = flowController; return this; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index c0779ff29..ce9bc6f15 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,6 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; + private final long protocolVersion; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; @@ -182,6 +183,7 @@ private Subscriber(Builder builder) { maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; minDurationPerAckExtension = builder.minDurationPerAckExtension; minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; + protocolVersion = builder.protocolVersion; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); @@ -428,6 +430,7 @@ private void startStreamingConnections() { .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) .setSubscriberShutdownSettings(subscriberShutdownSettings) + .setProtocolVersion(protocolVersion) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -548,6 +551,8 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; + private long protocolVersion = 0L; + private SubscriberShutdownSettings subscriberShutdownSettings = SubscriberShutdownSettings.newBuilder().build(); @@ -771,6 +776,12 @@ Builder setClock(ApiClock clock) { return this; } + /** Gives the ability to override the protocol version */ + public Builder setProtocolVersion(long protocolVersion) { + this.protocolVersion = protocolVersion; + return this; + } + /** * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of * OpenTelemetry has been provied. Warning: traces are subject to change. The name and diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index 65e199e92..b17eaddb0 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -55,14 +55,14 @@ public FakeClock getClock() { public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(delay)), command, PendingCallableType.NORMAL)); + Duration.ofMillis(unit.toMillis(delay)), command, null, PendingCallableType.NORMAL)); } @Override public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(delay)), callable, PendingCallableType.NORMAL)); + Duration.ofMillis(unit.toMillis(delay)), callable, null, PendingCallableType.NORMAL)); } @Override @@ -72,6 +72,7 @@ public ScheduledFuture scheduleAtFixedRate( new PendingCallable<>( Duration.ofMillis(unit.toMillis(initialDelay)), command, + Duration.ofMillis(unit.toMillis(period)), PendingCallableType.FIXED_RATE)); } @@ -82,6 +83,7 @@ public ScheduledFuture scheduleWithFixedDelay( new PendingCallable<>( Duration.ofMillis(unit.toMillis(initialDelay)), command, + Duration.ofMillis(unit.toMillis(delay)), PendingCallableType.FIXED_DELAY)); } @@ -212,13 +214,15 @@ enum PendingCallableType { class PendingCallable implements Comparable> { Instant creationTime = Instant.ofEpochMilli(clock.millisTime()); Duration delay; + Duration period; Callable pendingCallable; SettableFuture future = SettableFuture.create(); AtomicBoolean cancelled = new AtomicBoolean(false); AtomicBoolean done = new AtomicBoolean(false); PendingCallableType type; - PendingCallable(Duration delay, final Runnable runnable, PendingCallableType type) { + PendingCallable( + Duration delay, final Runnable runnable, Duration period, PendingCallableType type) { pendingCallable = new Callable() { @Override @@ -229,12 +233,15 @@ public T call() { }; this.type = type; this.delay = delay; + this.period = period; } - PendingCallable(Duration delay, Callable callable, PendingCallableType type) { + PendingCallable( + Duration delay, Callable callable, Duration period, PendingCallableType type) { pendingCallable = callable; this.type = type; this.delay = delay; + this.period = period; } private Instant getScheduledTime() { @@ -305,10 +312,12 @@ T call() { break; case FIXED_DELAY: this.creationTime = Instant.ofEpochMilli(clock.millisTime()); + this.delay = period; schedulePendingCallable(this); break; case FIXED_RATE: this.creationTime = this.creationTime.plus(delay); + this.delay = period; schedulePendingCallable(this); break; default: diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index f79825d85..6979963a5 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -28,12 +28,18 @@ import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientStream; +import com.google.api.gax.rpc.ResponseObserver; import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamController; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; import com.google.protobuf.Any; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; import com.google.rpc.ErrorInfo; import com.google.rpc.Status; import io.grpc.Status.Code; @@ -44,11 +50,13 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicInteger; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.mockito.ArgumentCaptor; /** Tests for {@link StreamingSubscriberConnection}. */ public class StreamingSubscriberConnectionTest { @@ -86,6 +94,10 @@ public class StreamingSubscriberConnectionTest { private static Duration ACK_EXPIRATION_PADDING_DEFAULT_DURATION = Duration.ofSeconds(10); private static int MAX_DURATION_PER_ACK_EXTENSION_DEFAULT_SECONDS = 10; + private static final long KEEP_ALIVE_SUPPORT_VERSION = 1; + private static final Duration CLIENT_PING_INTERVAL = Duration.ofSeconds(30); + private static final Duration MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + @Before public void setUp() { systemExecutor = new FakeScheduledExecutorService(); @@ -670,6 +682,155 @@ public void testMaxPerRequestChanges() { } } + @Test + public void testClientPinger_pingSent() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(any(ResponseObserver.class), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + + ArgumentCaptor requestCaptor = + ArgumentCaptor.forClass(StreamingPullRequest.class); + // 1 initial request + 3 pings + verify(mockClientStream, times(4)).send(requestCaptor.capture()); + List requests = requestCaptor.getAllValues(); + + StreamingPullRequest initialRequest = requests.get(0); + assertEquals(MOCK_SUBSCRIPTION_NAME, initialRequest.getSubscription()); + assertEquals(KEEP_ALIVE_SUPPORT_VERSION, initialRequest.getProtocolVersion()); + assertEquals(0, initialRequest.getMaxOutstandingMessages()); + + StreamingPullRequest firstPing = requests.get(1); + assertEquals(StreamingPullRequest.getDefaultInstance(), firstPing); + + StreamingPullRequest secondPing = requests.get(2); + assertEquals(StreamingPullRequest.getDefaultInstance(), secondPing); + + streamingSubscriberConnection.stopAsync(); + streamingSubscriberConnection.awaitTerminated(); + + // No more pings + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + verify(mockClientStream, times(4)).send(any(StreamingPullRequest.class)); + } + + @Test + public void testClientPinger_pingsNotSentWhenDisabled() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(any(ResponseObserver.class), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(false); // keepalive disabled + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + // Initial request. + verify(mockClientStream, times(1)).send(any(StreamingPullRequest.class)); + + // No pings + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + + verify(mockClientStream, times(1)).send(any(StreamingPullRequest.class)); + } + + @Test + public void testServerMonitor_timesOut() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + ArgumentCaptor> observerCaptor = + ArgumentCaptor.forClass(ResponseObserver.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(observerCaptor.capture(), any())) + .thenReturn(mockClientStream); + + // fail pings after the first one to ensure timeout occurs + AtomicInteger pingCount = new AtomicInteger(0); + doAnswer( + (invocation) -> { + StreamingPullRequest req = invocation.getArgument(0); + // Pings are empty requests + if (req.getSubscription().isEmpty()) { + if (pingCount.incrementAndGet() > 2) { // allow first 2 pings + throw new RuntimeException("ping failed"); + } + } + return null; + }) + .when(mockClientStream) + .send(any(StreamingPullRequest.class)); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + ResponseObserver observer = observerCaptor.getValue(); + StreamController mockController = mock(StreamController.class); + observer.onStart(mockController); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + verify(mockClientStream, never()).closeSendWithError(any(Exception.class)); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + ArgumentCaptor exceptionCaptor = ArgumentCaptor.forClass(Exception.class); + verify(mockClientStream, times(1)).closeSendWithError(exceptionCaptor.capture()); + StatusException exception = (StatusException) exceptionCaptor.getValue(); + assertEquals(Code.UNAVAILABLE, exception.getStatus().getCode()); + assertEquals("Keepalive timeout with server", exception.getStatus().getDescription()); + } + + @Test + public void testServerMonitor_doesNotTimeOutIfResponseReceived() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + ArgumentCaptor> observerCaptor = + ArgumentCaptor.forClass(ResponseObserver.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(observerCaptor.capture(), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + ResponseObserver observer = observerCaptor.getValue(); + StreamController mockController = mock(StreamController.class); + observer.onStart(mockController); + + // t=30s: ping sent. + // t=40s: response received. + // t=45s: monitor check. lastPing=30, lastResponse=40. lastPing>lastResponse is false -> no + // timeout. + systemExecutor.advanceTime(Duration.ofSeconds(40)); + observer.onResponse(StreamingPullResponse.getDefaultInstance()); + systemExecutor.advanceTime(Duration.ofSeconds(20)); // to t=60s + observer.onResponse(StreamingPullResponse.getDefaultInstance()); + + verify(mockClientStream, never()).closeSendWithError(any(Exception.class)); + } + private StreamingSubscriberConnection getStreamingSubscriberConnection( boolean exactlyOnceDeliveryEnabled) { StreamingSubscriberConnection streamingSubscriberConnection = @@ -682,11 +843,21 @@ private StreamingSubscriberConnection getStreamingSubscriberConnection( return streamingSubscriberConnection; } + private StreamingSubscriberConnection getKeepaliveStreamingSubscriberConnection() { + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)) + .setProtocolVersion(KEEP_ALIVE_SUPPORT_VERSION)); + + return streamingSubscriberConnection; + } + private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilder( StreamingSubscriberConnection.Builder builder) { return builder .setSubscription(MOCK_SUBSCRIPTION_NAME) .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT_DURATION) + .setMaxAckExtensionPeriod(MAX_ACK_EXTENSION_PERIOD) .setAckLatencyDistribution(mock(Distribution.class)) .setSubscriberStub(mockSubscriberStub) .setChannelAffinity(0) From c73139ea290b160fe7f50fc71ca9bbb6513e9454 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:45:48 -0500 Subject: [PATCH 642/656] chore: Update generation configuration at Thu Dec 4 02:36:21 UTC 2025 (#2616) --- .github/workflows/update_generation_config.yaml | 2 +- README.md | 4 ++-- generation_config.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 59e39834d..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/README.md b/README.md index b0672bc00..a503ceea7 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.71.0') +implementation platform('com.google.cloud:libraries-bom:26.72.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 744688ac1..5963f47a7 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.64.1 -googleapis_commitish: 5342712986262b93211b136eb4bd6fb79b3764af -libraries_bom_version: 26.71.0 +googleapis_commitish: 4667f02b64f2259ef21249b026ced7bb4351c632 +libraries_bom_version: 26.72.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 152702b2bc4ed373196b0988f8a20c64ad7e6b52 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Fri, 5 Dec 2025 11:35:23 -0500 Subject: [PATCH 643/656] chore: add release-please config for protobuf-4.x (#2620) * chore: add release-please config for protobuf-4.x * chore: generate libraries at Wed Dec 3 19:03:35 UTC 2025 * Change release type from java-backport to java-yoshi * Refactor release-please.yml to remove redundancy Removed duplicate bumpMinorPreMajor setting for java-yoshi. --------- Co-authored-by: cloud-java-bot --- .github/release-please.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index c71b9317f..f4a05d1b9 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -50,3 +50,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.140.x + - handleGHRelease: true + releaseType: java-yoshi + branch: protobuf-4.x-rc + manifest: true From 12f014d9030b2472e508fa75a71f43e671a64583 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 5 Dec 2025 12:23:27 -0500 Subject: [PATCH 644/656] feat: Make v1 the default protocolVersion (#2623) --- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index ce9bc6f15..a2d4f3b38 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,7 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; - private final long protocolVersion; + private final long protocolVersion = 1L; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; @@ -183,7 +183,6 @@ private Subscriber(Builder builder) { maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; minDurationPerAckExtension = builder.minDurationPerAckExtension; minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; - protocolVersion = builder.protocolVersion; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); @@ -551,8 +550,6 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; - private long protocolVersion = 0L; - private SubscriberShutdownSettings subscriberShutdownSettings = SubscriberShutdownSettings.newBuilder().build(); @@ -776,12 +773,6 @@ Builder setClock(ApiClock clock) { return this; } - /** Gives the ability to override the protocol version */ - public Builder setProtocolVersion(long protocolVersion) { - this.protocolVersion = protocolVersion; - return this; - } - /** * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of * OpenTelemetry has been provied. Warning: traces are subject to change. The name and From 13d5e3d8e4069a0e94db3cf825eb821d06cc9345 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:00:54 +0000 Subject: [PATCH 645/656] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.56.0 (#2617) Co-authored-by: Mike Prieto --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ed71217f5..ff444f0cc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.3 + 2.56.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index addbfc8a2..0f4bfe7cb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.3 + 2.56.0 com.google.cloud From 9adcef2297fcf38aaec2910658743d801630e70b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:01:26 +0000 Subject: [PATCH 646/656] chore(deps): update dependency com.google.cloud:libraries-bom to v26.72.0 (#2618) Co-authored-by: Mike Prieto --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6441845bd..3dd1de994 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import From b4b7f839b2be1ce003667018a10d9c460e4b63b1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 11 Dec 2025 12:01:58 -0500 Subject: [PATCH 647/656] chore: Update generation configuration at Thu Dec 11 02:39:02 UTC 2025 (#2621) * chore: Update generation configuration at Fri Dec 5 02:36:42 UTC 2025 * chore: Update generation configuration at Sat Dec 6 02:34:10 UTC 2025 * chore: generate libraries at Sat Dec 6 02:34:39 UTC 2025 * chore: Update generation configuration at Tue Dec 9 02:36:52 UTC 2025 * chore: Update generation configuration at Wed Dec 10 02:37:35 UTC 2025 * chore: Update generation configuration at Thu Dec 11 02:39:02 UTC 2025 * chore: generate libraries at Thu Dec 11 02:39:32 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- generation_config.yaml | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 76 ++-- .../cloud/pubsub/v1/TopicAdminClient.java | 24 +- .../pubsub/v1/CreateSnapshotRequest.java | 70 ++-- .../v1/CreateSnapshotRequestOrBuilder.java | 20 +- .../pubsub/v1/DeleteSnapshotRequest.java | 28 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 8 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 28 +- .../DeleteSubscriptionRequestOrBuilder.java | 8 +- .../google/pubsub/v1/DeleteTopicRequest.java | 28 +- .../v1/DeleteTopicRequestOrBuilder.java | 8 +- .../google/pubsub/v1/GetSnapshotRequest.java | 28 +- .../v1/GetSnapshotRequestOrBuilder.java | 8 +- .../pubsub/v1/GetSubscriptionRequest.java | 28 +- .../v1/GetSubscriptionRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/GetTopicRequest.java | 28 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 8 +- .../pubsub/v1/ListSnapshotsRequest.java | 28 +- .../v1/ListSnapshotsRequestOrBuilder.java | 8 +- .../pubsub/v1/ListSubscriptionsRequest.java | 42 +-- .../v1/ListSubscriptionsRequestOrBuilder.java | 12 +- .../google/pubsub/v1/ListTopicsRequest.java | 28 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/PublishRequest.java | 42 +-- .../pubsub/v1/PublishRequestOrBuilder.java | 12 +- .../com/google/pubsub/v1/PubsubProto.java | 349 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 42 ++- .../pubsub/v1/SubscriptionOrBuilder.java | 12 +- .../main/java/com/google/pubsub/v1/Topic.java | 42 ++- .../com/google/pubsub/v1/TopicOrBuilder.java | 12 +- .../main/proto/google/pubsub/v1/pubsub.proto | 57 ++- 37 files changed, 590 insertions(+), 532 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index f61e4eb85..818024030 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index b772eac66..406018c48 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index baf136cf8..60c82d4bf 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 2fb2fc87c..60982adf5 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/generation_config.yaml b/generation_config.yaml index 5963f47a7..9e1744dd2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.64.1 -googleapis_commitish: 4667f02b64f2259ef21249b026ced7bb4351c632 +gapic_generator_version: 2.64.2 +googleapis_commitish: b32495a713a68dd0dff90cf0b24021debfca048a libraries_bom_version: 26.72.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f22e3ec16..828bbea14 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -588,7 +588,7 @@ public SubscriberStub getStub() { * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 @@ -658,7 +658,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 @@ -728,7 +728,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 @@ -798,7 +798,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 @@ -1179,7 +1179,7 @@ public final UnaryCallable createSubscriptionCallabl * } * } * - * @param subscription Required. The name of the subscription to get. Format is + * @param subscription Required. Identifier. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1209,7 +1209,7 @@ public final Subscription getSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. The name of the subscription to get. Format is + * @param subscription Required. Identifier. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1416,8 +1416,8 @@ public final UnaryCallable updateSubscr * } * } * - * @param project Required. The name of the project in which to list subscriptions. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { @@ -1448,8 +1448,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec * } * } * - * @param project Required. The name of the project in which to list subscriptions. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(String project) { @@ -1584,7 +1584,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * } * } * - * @param subscription Required. The subscription to delete. Format is + * @param subscription Required. Identifier. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1617,7 +1617,7 @@ public final void deleteSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. The subscription to delete. Format is + * @param subscription Required. Identifier. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2631,7 +2631,7 @@ public final UnaryCallable modifyPushConfigCalla * } * } * - * @param snapshot Required. The name of the snapshot to get. Format is + * @param snapshot Required. Identifier. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2664,7 +2664,7 @@ public final Snapshot getSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. The name of the snapshot to get. Format is + * @param snapshot Required. Identifier. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2788,8 +2788,8 @@ public final UnaryCallable getSnapshotCallable() { * } * } * - * @param project Required. The name of the project in which to list snapshots. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list snapshots. Format + * is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { @@ -2823,8 +2823,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * } * } * - * @param project Required. The name of the project in which to list snapshots. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list snapshots. Format + * is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(String project) { @@ -2975,10 +2975,11 @@ public final UnaryCallable listSnap * } * } * - * @param name Required. User-provided name for this snapshot. If the name is not provided in the - * request, the server will assign a random name for this snapshot on the same project as the - * subscription. Note that for REST API requests, you must specify a name. See the [resource - * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. User-provided name for this snapshot. If the name is not + * provided in the request, the server will assign a random name for this snapshot on the same + * project as the subscription. Note that for REST API requests, you must specify a name. See + * the [resource name + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3028,10 +3029,11 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * } * } * - * @param name Required. User-provided name for this snapshot. If the name is not provided in the - * request, the server will assign a random name for this snapshot on the same project as the - * subscription. Note that for REST API requests, you must specify a name. See the [resource - * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. User-provided name for this snapshot. If the name is not + * provided in the request, the server will assign a random name for this snapshot on the same + * project as the subscription. Note that for REST API requests, you must specify a name. See + * the [resource name + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3081,10 +3083,11 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * } * } * - * @param name Required. User-provided name for this snapshot. If the name is not provided in the - * request, the server will assign a random name for this snapshot on the same project as the - * subscription. Note that for REST API requests, you must specify a name. See the [resource - * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. User-provided name for this snapshot. If the name is not + * provided in the request, the server will assign a random name for this snapshot on the same + * project as the subscription. Note that for REST API requests, you must specify a name. See + * the [resource name + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3134,10 +3137,11 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * } * } * - * @param name Required. User-provided name for this snapshot. If the name is not provided in the - * request, the server will assign a random name for this snapshot on the same project as the - * subscription. Note that for REST API requests, you must specify a name. See the [resource - * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. User-provided name for this snapshot. If the name is not + * provided in the request, the server will assign a random name for this snapshot on the same + * project as the subscription. Note that for REST API requests, you must specify a name. See + * the [resource name + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3510,7 +3514,7 @@ public final UnaryCallable updateSnapshotCallab * } * } * - * @param snapshot Required. The name of the snapshot to delete. Format is + * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3546,7 +3550,7 @@ public final void deleteSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. The name of the snapshot to delete. Format is + * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 750f4da49..d5433f8ee 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -420,7 +420,7 @@ public PublisherStub getStub() { * } * } * - * @param name Required. The name of the topic. It must have the format + * @param name Required. Identifier. The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only * letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), * tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in @@ -451,7 +451,7 @@ public final Topic createTopic(TopicName name) { * } * } * - * @param name Required. The name of the topic. It must have the format + * @param name Required. Identifier. The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only * letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), * tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in @@ -682,8 +682,8 @@ public final UnaryCallable updateTopicCallable() { * } * } * - * @param topic Required. The messages in the request will be published on this topic. Format is - * `projects/{project}/topics/{topic}`. + * @param topic Required. Identifier. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -715,8 +715,8 @@ public final PublishResponse publish(TopicName topic, List messag * } * } * - * @param topic Required. The messages in the request will be published on this topic. Format is - * `projects/{project}/topics/{topic}`. + * @param topic Required. Identifier. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -801,7 +801,7 @@ public final UnaryCallable publishCallable() { * } * } * - * @param topic Required. The name of the topic to get. Format is + * @param topic Required. Identifier. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -829,7 +829,7 @@ public final Topic getTopic(TopicName topic) { * } * } * - * @param topic Required. The name of the topic to get. Format is + * @param topic Required. Identifier. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -938,7 +938,7 @@ public final UnaryCallable getTopicCallable() { * } * } * - * @param project Required. The name of the project in which to list topics. Format is + * @param project Required. Identifier. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -970,7 +970,7 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { * } * } * - * @param project Required. The name of the project in which to list topics. Format is + * @param project Required. Identifier. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1481,7 +1481,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * } * } * - * @param topic Required. Name of the topic to delete. Format is + * @param topic Required. Identifier. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1512,7 +1512,7 @@ public final void deleteTopic(TopicName topic) { * } * } * - * @param topic Required. Name of the topic to delete. Format is + * @param topic Required. Identifier. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index e5d4f651c..b8c5201cd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -88,16 +88,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
    -   * Required. User-provided name for this snapshot. If the name is not provided
    -   * in the request, the server will assign a random name for this snapshot on
    -   * the same project as the subscription. Note that for REST API requests, you
    -   * must specify a name.  See the [resource name
    +   * Required. Identifier. User-provided name for this snapshot. If the name is
    +   * not provided in the request, the server will assign a random name for this
    +   * snapshot on the same project as the subscription. Note that for REST API
    +   * requests, you must specify a name.  See the [resource name
        * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -119,16 +119,16 @@ public java.lang.String getName() { * * *
    -   * Required. User-provided name for this snapshot. If the name is not provided
    -   * in the request, the server will assign a random name for this snapshot on
    -   * the same project as the subscription. Note that for REST API requests, you
    -   * must specify a name.  See the [resource name
    +   * Required. Identifier. User-provided name for this snapshot. If the name is
    +   * not provided in the request, the server will assign a random name for this
    +   * snapshot on the same project as the subscription. Note that for REST API
    +   * requests, you must specify a name.  See the [resource name
        * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -924,16 +924,16 @@ public Builder mergeFrom( * * *
    -     * Required. User-provided name for this snapshot. If the name is not provided
    -     * in the request, the server will assign a random name for this snapshot on
    -     * the same project as the subscription. Note that for REST API requests, you
    -     * must specify a name.  See the [resource name
    +     * Required. Identifier. User-provided name for this snapshot. If the name is
    +     * not provided in the request, the server will assign a random name for this
    +     * snapshot on the same project as the subscription. Note that for REST API
    +     * requests, you must specify a name.  See the [resource name
          * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -954,16 +954,16 @@ public java.lang.String getName() { * * *
    -     * Required. User-provided name for this snapshot. If the name is not provided
    -     * in the request, the server will assign a random name for this snapshot on
    -     * the same project as the subscription. Note that for REST API requests, you
    -     * must specify a name.  See the [resource name
    +     * Required. Identifier. User-provided name for this snapshot. If the name is
    +     * not provided in the request, the server will assign a random name for this
    +     * snapshot on the same project as the subscription. Note that for REST API
    +     * requests, you must specify a name.  See the [resource name
          * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -984,16 +984,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Required. User-provided name for this snapshot. If the name is not provided
    -     * in the request, the server will assign a random name for this snapshot on
    -     * the same project as the subscription. Note that for REST API requests, you
    -     * must specify a name.  See the [resource name
    +     * Required. Identifier. User-provided name for this snapshot. If the name is
    +     * not provided in the request, the server will assign a random name for this
    +     * snapshot on the same project as the subscription. Note that for REST API
    +     * requests, you must specify a name.  See the [resource name
          * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1013,16 +1013,16 @@ public Builder setName(java.lang.String value) { * * *
    -     * Required. User-provided name for this snapshot. If the name is not provided
    -     * in the request, the server will assign a random name for this snapshot on
    -     * the same project as the subscription. Note that for REST API requests, you
    -     * must specify a name.  See the [resource name
    +     * Required. Identifier. User-provided name for this snapshot. If the name is
    +     * not provided in the request, the server will assign a random name for this
    +     * snapshot on the same project as the subscription. Note that for REST API
    +     * requests, you must specify a name.  See the [resource name
          * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1038,16 +1038,16 @@ public Builder clearName() { * * *
    -     * Required. User-provided name for this snapshot. If the name is not provided
    -     * in the request, the server will assign a random name for this snapshot on
    -     * the same project as the subscription. Note that for REST API requests, you
    -     * must specify a name.  See the [resource name
    +     * Required. Identifier. User-provided name for this snapshot. If the name is
    +     * not provided in the request, the server will assign a random name for this
    +     * snapshot on the same project as the subscription. Note that for REST API
    +     * requests, you must specify a name.  See the [resource name
          * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 80a1f76fc..0c18c014a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -28,16 +28,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * Required. User-provided name for this snapshot. If the name is not provided
    -   * in the request, the server will assign a random name for this snapshot on
    -   * the same project as the subscription. Note that for REST API requests, you
    -   * must specify a name.  See the [resource name
    +   * Required. Identifier. User-provided name for this snapshot. If the name is
    +   * not provided in the request, the server will assign a random name for this
    +   * snapshot on the same project as the subscription. Note that for REST API
    +   * requests, you must specify a name.  See the [resource name
        * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -48,16 +48,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * Required. User-provided name for this snapshot. If the name is not provided
    -   * in the request, the server will assign a random name for this snapshot on
    -   * the same project as the subscription. Note that for REST API requests, you
    -   * must specify a name.  See the [resource name
    +   * Required. Identifier. User-provided name for this snapshot. If the name is
    +   * not provided in the request, the server will assign a random name for this
    +   * snapshot on the same project as the subscription. Note that for REST API
    +   * requests, you must specify a name.  See the [resource name
        * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index bc2fc7206..47083fed1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the snapshot to delete.
    +   * Required. Identifier. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
    -   * Required. The name of the snapshot to delete.
    +   * Required. Identifier. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the snapshot to delete.
    +     * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -497,12 +497,12 @@ public java.lang.String getSnapshot() { * * *
    -     * Required. The name of the snapshot to delete.
    +     * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
    -     * Required. The name of the snapshot to delete.
    +     * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -548,12 +548,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
    -     * Required. The name of the snapshot to delete.
    +     * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSnapshot() { * * *
    -     * Required. The name of the snapshot to delete.
    +     * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 192a33e82..5a4dd6337 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
    -   * Required. The name of the snapshot to delete.
    +   * Required. Identifier. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
    -   * Required. The name of the snapshot to delete.
    +   * Required. Identifier. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 80800c659..961fdf8a6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The subscription to delete.
    +   * Required. Identifier. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
    -   * Required. The subscription to delete.
    +   * Required. Identifier. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
    -     * Required. The subscription to delete.
    +     * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
    -     * Required. The subscription to delete.
    +     * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * Required. The subscription to delete.
    +     * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * Required. The subscription to delete.
    +     * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
    -     * Required. The subscription to delete.
    +     * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 2eb5138ee..5ab0407d2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
    -   * Required. The subscription to delete.
    +   * Required. Identifier. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
    -   * Required. The subscription to delete.
    +   * Required. Identifier. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index fafde03a2..7171ad93c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. Name of the topic to delete.
    +   * Required. Identifier. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
    -   * Required. Name of the topic to delete.
    +   * Required. Identifier. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
    -     * Required. Name of the topic to delete.
    +     * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -496,12 +496,12 @@ public java.lang.String getTopic() { * * *
    -     * Required. Name of the topic to delete.
    +     * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * Required. Name of the topic to delete.
    +     * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -547,12 +547,12 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * Required. Name of the topic to delete.
    +     * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearTopic() { * * *
    -     * Required. Name of the topic to delete.
    +     * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 065d4a790..a13a646fd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteTopicRequestOrBuilder * * *
    -   * Required. Name of the topic to delete.
    +   * Required. Identifier. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface DeleteTopicRequestOrBuilder * * *
    -   * Required. Name of the topic to delete.
    +   * Required. Identifier. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 401c8cd4c..716559f8b 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the snapshot to get.
    +   * Required. Identifier. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
    -   * Required. The name of the snapshot to get.
    +   * Required. Identifier. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the snapshot to get.
    +     * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -496,12 +496,12 @@ public java.lang.String getSnapshot() { * * *
    -     * Required. The name of the snapshot to get.
    +     * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
    -     * Required. The name of the snapshot to get.
    +     * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -547,12 +547,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
    -     * Required. The name of the snapshot to get.
    +     * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearSnapshot() { * * *
    -     * Required. The name of the snapshot to get.
    +     * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index a4728d85a..343c6867c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetSnapshotRequestOrBuilder * * *
    -   * Required. The name of the snapshot to get.
    +   * Required. Identifier. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface GetSnapshotRequestOrBuilder * * *
    -   * Required. The name of the snapshot to get.
    +   * Required. Identifier. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 0553b1f91..7b7e00da8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the subscription to get.
    +   * Required. Identifier. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
    -   * Required. The name of the subscription to get.
    +   * Required. Identifier. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the subscription to get.
    +     * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
    -     * Required. The name of the subscription to get.
    +     * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * Required. The name of the subscription to get.
    +     * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * Required. The name of the subscription to get.
    +     * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
    -     * Required. The name of the subscription to get.
    +     * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index c51df2737..4513defa8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
    -   * Required. The name of the subscription to get.
    +   * Required. Identifier. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
    -   * Required. The name of the subscription to get.
    +   * Required. Identifier. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index e8e01add6..7d1490c14 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the topic to get.
    +   * Required. Identifier. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
    -   * Required. The name of the topic to get.
    +   * Required. Identifier. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -468,12 +468,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the topic to get.
    +     * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -494,12 +494,12 @@ public java.lang.String getTopic() { * * *
    -     * Required. The name of the topic to get.
    +     * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -520,12 +520,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * Required. The name of the topic to get.
    +     * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -545,12 +545,12 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * Required. The name of the topic to get.
    +     * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -566,12 +566,12 @@ public Builder clearTopic() { * * *
    -     * Required. The name of the topic to get.
    +     * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index e22bc60e3..5b6281637 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetTopicRequestOrBuilder * * *
    -   * Required. The name of the topic to get.
    +   * Required. Identifier. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface GetTopicRequestOrBuilder * * *
    -   * Required. The name of the topic to get.
    +   * Required. Identifier. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 73672588e..869e380db 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the project in which to list snapshots.
    +   * Required. Identifier. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
    -   * Required. The name of the project in which to list snapshots.
    +   * Required. Identifier. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the project in which to list snapshots.
    +     * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
    -     * Required. The name of the project in which to list snapshots.
    +     * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * Required. The name of the project in which to list snapshots.
    +     * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
    -     * Required. The name of the project in which to list snapshots.
    +     * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
    -     * Required. The name of the project in which to list snapshots.
    +     * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 8fff6c2e5..ee2ba020c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list snapshots.
    +   * Required. Identifier. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list snapshots.
    +   * Required. Identifier. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 24fe6dae9..2a3705cd7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the project in which to list subscriptions.
    -   * Format is `projects/{project-id}`.
    +   * Required. Identifier. The name of the project in which to list
    +   * subscriptions. Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
    -   * Required. The name of the project in which to list subscriptions.
    -   * Format is `projects/{project-id}`.
    +   * Required. Identifier. The name of the project in which to list
    +   * subscriptions. Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the project in which to list subscriptions.
    -     * Format is `projects/{project-id}`.
    +     * Required. Identifier. The name of the project in which to list
    +     * subscriptions. Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
    -     * Required. The name of the project in which to list subscriptions.
    -     * Format is `projects/{project-id}`.
    +     * Required. Identifier. The name of the project in which to list
    +     * subscriptions. Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * Required. The name of the project in which to list subscriptions.
    -     * Format is `projects/{project-id}`.
    +     * Required. Identifier. The name of the project in which to list
    +     * subscriptions. Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
    -     * Required. The name of the project in which to list subscriptions.
    -     * Format is `projects/{project-id}`.
    +     * Required. Identifier. The name of the project in which to list
    +     * subscriptions. Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
    -     * Required. The name of the project in which to list subscriptions.
    -     * Format is `projects/{project-id}`.
    +     * Required. Identifier. The name of the project in which to list
    +     * subscriptions. Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index fedfd324d..d07523d10 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list subscriptions.
    -   * Format is `projects/{project-id}`.
    +   * Required. Identifier. The name of the project in which to list
    +   * subscriptions. Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list subscriptions.
    -   * Format is `projects/{project-id}`.
    +   * Required. Identifier. The name of the project in which to list
    +   * subscriptions. Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 99b028c30..873b3f152 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The name of the project in which to list topics.
    +   * Required. Identifier. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
    -   * Required. The name of the project in which to list topics.
    +   * Required. Identifier. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -593,12 +593,12 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the project in which to list topics.
    +     * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -619,12 +619,12 @@ public java.lang.String getProject() { * * *
    -     * Required. The name of the project in which to list topics.
    +     * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -645,12 +645,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * Required. The name of the project in which to list topics.
    +     * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -670,12 +670,12 @@ public Builder setProject(java.lang.String value) { * * *
    -     * Required. The name of the project in which to list topics.
    +     * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -691,12 +691,12 @@ public Builder clearProject() { * * *
    -     * Required. The name of the project in which to list topics.
    +     * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index b39fe3f12..8b134adc0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list topics.
    +   * Required. Identifier. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * Required. The name of the project in which to list topics.
    +   * Required. Identifier. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 9187ab532..6f9f3ecf5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The messages in the request will be published on this topic.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Required. Identifier. The messages in the request will be published on this
    +   * topic. Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -101,12 +101,12 @@ public java.lang.String getTopic() { * * *
    -   * Required. The messages in the request will be published on this topic.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Required. Identifier. The messages in the request will be published on this
    +   * topic. Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -626,12 +626,12 @@ public Builder mergeFrom( * * *
    -     * Required. The messages in the request will be published on this topic.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Required. Identifier. The messages in the request will be published on this
    +     * topic. Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -652,12 +652,12 @@ public java.lang.String getTopic() { * * *
    -     * Required. The messages in the request will be published on this topic.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Required. Identifier. The messages in the request will be published on this
    +     * topic. Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -678,12 +678,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * Required. The messages in the request will be published on this topic.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Required. Identifier. The messages in the request will be published on this
    +     * topic. Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -703,12 +703,12 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * Required. The messages in the request will be published on this topic.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Required. Identifier. The messages in the request will be published on this
    +     * topic. Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -724,12 +724,12 @@ public Builder clearTopic() { * * *
    -     * Required. The messages in the request will be published on this topic.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Required. Identifier. The messages in the request will be published on this
    +     * topic. Format is `projects/{project}/topics/{topic}`.
          * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 1718c594e..c3d8e7a17 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface PublishRequestOrBuilder * * *
    -   * Required. The messages in the request will be published on this topic.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Required. Identifier. The messages in the request will be published on this
    +   * topic. Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface PublishRequestOrBuilder * * *
    -   * Required. The messages in the request will be published on this topic.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Required. Identifier. The messages in the request will be published on this
    +   * topic. Format is `projects/{project}/topics/{topic}`.
        * 
    * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 1b5e7d634..fae7dfbc3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -601,12 +601,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" - + "\ttransform\"\235\007\n" - + "\005Topic\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + + "\ttransform\"\240\007\n" + + "\005Topic\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003 \001(\0132&.goo" - + "gle.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + + "\026message_storage_policy\030\003 \001(\0132&." + + "google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + "\014kms_key_name\030\005 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022>\n" + "\017schema_settings\030\006 \001(\0132" @@ -631,32 +631,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/top" - + "ics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" + + "\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"E\n" - + "\017GetTopicRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\005value\030\002 \001(\t:\0028\001\"H\n" + + "\017GetTopicRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\"w\n" + "\022UpdateTopicRequest\022+\n" + "\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" - + "\016PublishRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\177\n" + + "\016PublishRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\0226\n" + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n" + "\017PublishResponse\022\030\n" - + "\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n" - + "\021ListTopicsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "\013message_ids\030\001 \003(\tB\003\340A\001\"\215\001\n" + + "\021ListTopicsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" @@ -675,36 +676,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListTopicSnapshotsRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\032ListTopicSnapshotsResponse\0229\n" + "\tsnapshots\030\001 \003(\tB&\340A\001\372A \n" + "\036pubsub.googleapis.com/Snapshot\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" - + "\022DeleteTopicRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"K\n" + + "\022DeleteTopicRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\"]\n" + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\034\n" - + "\032DetachSubscriptionResponse\"\245\014\n" - + "\014Subscription\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + + "\032DetachSubscriptionResponse\"\250\014\n" + + "\014Subscription\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0222\n" + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\0226\n" + "\013push_config\030\004" + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026" - + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026 \001(\0132$.g" + + "oogle.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t" - + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t \003(\0132*.goo" + + "gle.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -712,15 +712,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + "\022dead_letter_policy\030\r" + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" - + "\014retry_policy\030\016 " - + "\001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\014retry_policy\030\016" + + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;" - + ".google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.Subs" + + "cription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" @@ -739,8 +739,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/Subscription\022/" - + "projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis." + + "com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -754,12 +754,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002" - + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "attributes\030\002 \003(\0132,.google" + + ".pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + "oidc_token\030\003" + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004 \001(\0132*.go" - + "ogle.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -778,8 +778,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005 \001(\0162" - + "&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005" + + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -795,16 +795,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\0132/.goo" + + "gle.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.google" + + ".pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" - + "\005state\030\t \001(\0162*.google.p" - + "ubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + "TextConfig\032H\n\n" + "AvroConfig\022\033\n" @@ -822,26 +822,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" + "\007message\030\002" + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" - + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" - + "\026GetSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"]\n" + + "\026GetSubscriptionRequest\022C\n" + + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + "\031UpdateSubscriptionRequest\0229\n" + "\014subscription\030\001" + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" - + "\030ListSubscriptionsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\224\001\n" + + "\030ListSubscriptionsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\031ListSubscriptionsResponse\022:\n\r" - + "subscriptions\030\001 \003(" - + "\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" - + "\031DeleteSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "subscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"`\n" + + "\031DeleteSubscriptionRequest\022C\n" + + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\223\001\n" + "\027ModifyPushConfigRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -878,15 +878,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020protocol_version\030\n" + " \001(\003B\003\340A\001\"\236\006\n" + "\025StreamingPullResponse\022A\n" - + "\021received_messages\030\001" - + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.StreamingP" - + "ullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google" - + ".pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\021received_messages\030\001 " + + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?." + + "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.p" + + "ubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.St" + + "reamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -898,18 +897,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + "\026SubscriptionProperties\022*\n" + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" - + "\025CreateSnapshotRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\204\003\n" + + "\025CreateSnapshotRequest\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\340A\010\372A \n" + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot", - "Request.LabelsEntryB\003\340A\001\022J\n" + + "\006labels\030\003 \003(\01323.g", + "oogle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -923,26 +923,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&." - + "google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"N\n" - + "\022GetSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" - + "\024ListSnapshotsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "\tsnapshots2\010snapshot\"Q\n" + + "\022GetSnapshotRequest\022;\n" + + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\220\001\n" + + "\024ListSnapshotsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + "\025ListSnapshotsResponse\0222\n" + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" - + "\025DeleteSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"T\n" + + "\025DeleteSnapshotRequest\022;\n" + + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + "\013SeekRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -953,97 +953,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.goog" - + "le.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReque" - + "st\032\027.google.pubsub.v1.Topic\"C\332A\021topic,up" - + "date_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v" - + "1.PublishResponse\"C\332A\016topic,messages\202\323\344\223" - + "\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequest\032\027.google.pubsub.v1.Topic\"/" - + "\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.L" - + "istTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListT" - + "opicSubscriptionsRequest\0320.google.pubsub" - + ".v1.ListTopicSubscriptionsResponse\"=\332A\005t" - + "opic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRe" - + "quest\032,.google.pubsub.v1.ListTopicSnapsh" - + "otsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" - + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequ" - + "est\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" - + "\022DetachSubscription\022+.google.pubsub.v1.D" - + "etachSubscriptionRequest\032,.google.pubsub" - + ".v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:detach\032p\312A\025pubsub.googleapis.com\322A" - + "Uhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.googl" + + "e.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReques" + + "t\032\027.google.pubsub.v1.Topic\"C\332A\021topic,upd" + + "ate_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1" + + ".PublishResponse\"C\332A\016topic,messages\202\323\344\223\002" + + ",\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.Get" + + "TopicRequest\032\027.google.pubsub.v1.Topic\"/\332" + + "A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.Li" + + "stTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTo" + + "picSubscriptionsRequest\0320.google.pubsub." + + "v1.ListTopicSubscriptionsResponse\"=\332A\005to" + + "pic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsReq" + + "uest\032,.google.pubsub.v1.ListTopicSnapsho" + + "tsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicReque" + + "st\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.De" + + "tachSubscriptionRequest\032,.google.pubsub." + + "v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:detach\032p\312A\025pubsub.googleapis.com\322AU" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + "Subscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.g" - + "oogle.pubsub.v1.Subscription\"^\332A+name,to" - + "pic,push_config,ack_deadline_seconds\202\323\344\223" - + "\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubs" - + "ub.v1.Subscription\"D\332A\014subscription\202\323\344\223\002" - + "/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" - + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.g" - + "oogle.pubsub.v1.Subscription\"X\332A\030subscri" - + "ption,update_mask\202\323\344\223\002722/v1/{subscripti" - + "on.name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1." - + "ListSubscriptionsRequest\032+.google.pubsub" - + ".v1.ListSubscriptionsResponse\"8\332A\007projec" - + "t\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" - + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.go" - + "ogle.protobuf.Empty\"D\332A\014subscription\202\323\344\223" - + "\002/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.go" - + "ogle.protobuf.Empty\"v\332A)subscription,ack" - + "_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{su" - + "bscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.goog" - + "le.protobuf.Empty\"[\332A\024subscription,ack_i" - + "ds\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google." - + "pubsub.v1.PullResponse\"\210\001\332A,subscription" - + ",return_immediately,max_messages\332A\031subsc" - + "ription,max_messages\202\323\344\223\0027\"2/v1/{subscri" - + "ption=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.St" - + "reamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConf" - + "igRequest\032\026.google.protobuf.Empty\"d\332A\030su" - + "bscription,push_config\202\323\344\223\002C\">/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" - + "ListSnapshots\022&.google.pubsub.v1.ListSna" - + "pshotsRequest\032\'.google.pubsub.v1.ListSna" - + "pshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapsho" - + "tRequest\032\032.google.pubsub.v1.Snapshot\"@\332A" - + "\021name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" - + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReque" - + "st\032\032.google.pubsub.v1.Snapshot\"L\332A\024snaps" - + "hot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapsho" - + "tRequest\032\026.google.protobuf.Empty\"8\332A\010sna" - + "pshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" - + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespon" - + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" - + "/subscriptions/*}:seek:\001*\032p\312A\025pubsub.goo" - + "gleapis.com\322AUhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go" - + "/pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goo" - + "gle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects" - + "/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/dat" - + "aExchanges/{data_exchange}/listings/{listing}b\006proto3" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.go" + + "ogle.pubsub.v1.Subscription\"^\332A+name,top" + + "ic,push_config,ack_deadline_seconds\202\323\344\223\002" + + "*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubsu" + + "b.v1.Subscription\"D\332A\014subscription\202\323\344\223\002/" + + "\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.go" + + "ogle.pubsub.v1.Subscription\"X\332A\030subscrip" + + "tion,update_mask\202\323\344\223\002722/v1/{subscriptio" + + "n.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1.L" + + "istSubscriptionsRequest\032+.google.pubsub." + + "v1.ListSubscriptionsResponse\"8\332A\007project" + + "\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.goo" + + "gle.protobuf.Empty\"D\332A\014subscription\202\323\344\223\002" + + "/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.goo" + + "gle.protobuf.Empty\"v\332A)subscription,ack_" + + "ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{sub" + + "scription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.googl" + + "e.protobuf.Empty\"[\332A\024subscription,ack_id" + + "s\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.p" + + "ubsub.v1.PullResponse\"\210\001\332A,subscription," + + "return_immediately,max_messages\332A\031subscr" + + "iption,max_messages\202\323\344\223\0027\"2/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.Str" + + "eamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfi" + + "gRequest\032\026.google.protobuf.Empty\"d\332A\030sub" + + "scription,push_config\202\323\344\223\002C\">/v1/{subscr" + + "iption=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pu" + + "bsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSnap" + + "shotsRequest\032\'.google.pubsub.v1.ListSnap" + + "shotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"@\332A\021" + + "name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReques" + + "t\032\032.google.pubsub.v1.Snapshot\"L\332A\024snapsh" + + "ot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshot" + + "Request\032\026.google.protobuf.Empty\"8\332A\010snap" + + "shot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespons" + + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" + + "subscriptions/*}:seek:\001*\032p\312A\025pubsub.goog" + + "leapis.com\322AUhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/" + + "pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goog" + + "le.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/" + + "{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/data" + + "Exchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index c6dbf3f12..359811a33 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 15b70709e..7c00e35b5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 9e637b08e..b36abdc68 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1190,7 +1190,7 @@ public com.google.protobuf.Parser getParserForType * * *
    -   * Required. The name of the subscription. It must have the format
    +   * Required. Identifier. The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
        * start with a letter, and contain only letters (`[A-Za-z]`), numbers
        * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -1198,7 +1198,9 @@ public com.google.protobuf.Parser getParserForType
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1219,7 +1221,7 @@ public java.lang.String getName() { * * *
    -   * Required. The name of the subscription. It must have the format
    +   * Required. Identifier. The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
        * start with a letter, and contain only letters (`[A-Za-z]`), numbers
        * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -1227,7 +1229,9 @@ public java.lang.String getName() {
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -3531,7 +3535,7 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the subscription. It must have the format
    +     * Required. Identifier. The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
          * start with a letter, and contain only letters (`[A-Za-z]`), numbers
          * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -3539,7 +3543,9 @@ public Builder mergeFrom(
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -3559,7 +3565,7 @@ public java.lang.String getName() { * * *
    -     * Required. The name of the subscription. It must have the format
    +     * Required. Identifier. The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
          * start with a letter, and contain only letters (`[A-Za-z]`), numbers
          * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -3567,7 +3573,9 @@ public java.lang.String getName() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -3587,7 +3595,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Required. The name of the subscription. It must have the format
    +     * Required. Identifier. The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
          * start with a letter, and contain only letters (`[A-Za-z]`), numbers
          * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -3595,7 +3603,9 @@ public com.google.protobuf.ByteString getNameBytes() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -3614,7 +3624,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * Required. The name of the subscription. It must have the format
    +     * Required. Identifier. The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
          * start with a letter, and contain only letters (`[A-Za-z]`), numbers
          * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -3622,7 +3632,9 @@ public Builder setName(java.lang.String value) {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -3637,7 +3649,7 @@ public Builder clearName() { * * *
    -     * Required. The name of the subscription. It must have the format
    +     * Required. Identifier. The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
          * start with a letter, and contain only letters (`[A-Za-z]`), numbers
          * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -3645,7 +3657,9 @@ public Builder clearName() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 585c95c3e..fb8459de7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -28,7 +28,7 @@ public interface SubscriptionOrBuilder * * *
    -   * Required. The name of the subscription. It must have the format
    +   * Required. Identifier. The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
        * start with a letter, and contain only letters (`[A-Za-z]`), numbers
        * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -36,7 +36,9 @@ public interface SubscriptionOrBuilder
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -46,7 +48,7 @@ public interface SubscriptionOrBuilder * * *
    -   * Required. The name of the subscription. It must have the format
    +   * Required. Identifier. The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
        * start with a letter, and contain only letters (`[A-Za-z]`), numbers
        * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
    @@ -54,7 +56,9 @@ public interface SubscriptionOrBuilder
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 3719e7280..c1e75d4e4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -252,7 +252,7 @@ private State(int value) { * * *
    -   * Required. The name of the topic. It must have the format
    +   * Required. Identifier. The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
        * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
        * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -260,7 +260,9 @@ private State(int value) {
        * must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -281,7 +283,7 @@ public java.lang.String getName() { * * *
    -   * Required. The name of the topic. It must have the format
    +   * Required. Identifier. The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
        * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
        * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -289,7 +291,9 @@ public java.lang.String getName() {
        * must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1762,7 +1766,7 @@ public Builder mergeFrom( * * *
    -     * Required. The name of the topic. It must have the format
    +     * Required. Identifier. The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
          * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
          * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -1770,7 +1774,9 @@ public Builder mergeFrom(
          * must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1790,7 +1796,7 @@ public java.lang.String getName() { * * *
    -     * Required. The name of the topic. It must have the format
    +     * Required. Identifier. The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
          * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
          * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -1798,7 +1804,9 @@ public java.lang.String getName() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1818,7 +1826,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Required. The name of the topic. It must have the format
    +     * Required. Identifier. The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
          * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
          * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -1826,7 +1834,9 @@ public com.google.protobuf.ByteString getNameBytes() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1845,7 +1855,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * Required. The name of the topic. It must have the format
    +     * Required. Identifier. The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
          * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
          * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -1853,7 +1863,9 @@ public Builder setName(java.lang.String value) {
          * must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1868,7 +1880,7 @@ public Builder clearName() { * * *
    -     * Required. The name of the topic. It must have the format
    +     * Required. Identifier. The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
          * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
          * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -1876,7 +1888,9 @@ public Builder clearName() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index ea55bec4e..60080e167 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -28,7 +28,7 @@ public interface TopicOrBuilder * * *
    -   * Required. The name of the topic. It must have the format
    +   * Required. Identifier. The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
        * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
        * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -36,7 +36,9 @@ public interface TopicOrBuilder
        * must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -46,7 +48,7 @@ public interface TopicOrBuilder * * *
    -   * Required. The name of the topic. It must have the format
    +   * Required. Identifier. The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
        * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
        * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
    @@ -54,7 +56,9 @@ public interface TopicOrBuilder
        * must not start with `"goog"`.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b542351d9..95dd7f829 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -847,13 +847,16 @@ message Topic { INGESTION_RESOURCE_ERROR = 2; } - // Required. The name of the topic. It must have the format + // Required. Identifier. The name of the topic. It must have the format // `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, // and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), // underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent // signs (`%`). It must be between 3 and 255 characters in length, and it // must not start with `"goog"`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). @@ -960,10 +963,11 @@ message PubsubMessage { // Request for the GetTopic method. message GetTopicRequest { - // Required. The name of the topic to get. + // Required. Identifier. The name of the topic to get. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -984,10 +988,11 @@ message UpdateTopicRequest { // Request for the Publish method. message PublishRequest { - // Required. The messages in the request will be published on this topic. - // Format is `projects/{project}/topics/{topic}`. + // Required. Identifier. The messages in the request will be published on this + // topic. Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; @@ -1005,10 +1010,11 @@ message PublishResponse { // Request for the `ListTopics` method. message ListTopicsRequest { - // Required. The name of the project in which to list topics. + // Required. Identifier. The name of the project in which to list topics. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -1102,10 +1108,11 @@ message ListTopicSnapshotsResponse { // Request for the `DeleteTopic` method. message DeleteTopicRequest { - // Required. Name of the topic to delete. + // Required. Identifier. Name of the topic to delete. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -1399,13 +1406,16 @@ message Subscription { string subscription = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Required. The name of the subscription. It must have the format + // Required. Identifier. The name of the subscription. It must have the format // `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must // start with a letter, and contain only letters (`[A-Za-z]`), numbers // (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), // plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters // in length, and it must not start with `"goog"`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The name of the topic from which this subscription is receiving // messages. Format is `projects/{project}/topics/{topic}`. The value of this @@ -1934,10 +1944,11 @@ message ReceivedMessage { // Request for the GetSubscription method. message GetSubscriptionRequest { - // Required. The name of the subscription to get. + // Required. Identifier. The name of the subscription to get. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -1957,10 +1968,11 @@ message UpdateSubscriptionRequest { // Request for the `ListSubscriptions` method. message ListSubscriptionsRequest { - // Required. The name of the project in which to list subscriptions. - // Format is `projects/{project-id}`. + // Required. Identifier. The name of the project in which to list + // subscriptions. Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -1989,10 +2001,11 @@ message ListSubscriptionsResponse { // Request for the DeleteSubscription method. message DeleteSubscriptionRequest { - // Required. The subscription to delete. + // Required. Identifier. The subscription to delete. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -2260,14 +2273,15 @@ message StreamingPullResponse { // Request for the `CreateSnapshot` method. message CreateSnapshotRequest { - // Required. User-provided name for this snapshot. If the name is not provided - // in the request, the server will assign a random name for this snapshot on - // the same project as the subscription. Note that for REST API requests, you - // must specify a name. See the [resource name + // Required. Identifier. User-provided name for this snapshot. If the name is + // not provided in the request, the server will assign a random name for this + // snapshot on the same project as the subscription. Note that for REST API + // requests, you must specify a name. See the [resource name // rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). // Format is `projects/{project}/snapshots/{snap}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; @@ -2356,20 +2370,22 @@ message Snapshot { // Request for the GetSnapshot method. message GetSnapshotRequest { - // Required. The name of the snapshot to get. + // Required. Identifier. The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } // Request for the `ListSnapshots` method. message ListSnapshotsRequest { - // Required. The name of the project in which to list snapshots. + // Required. Identifier. The name of the project in which to list snapshots. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -2397,10 +2413,11 @@ message ListSnapshotsResponse { // Request for the `DeleteSnapshot` method. message DeleteSnapshotRequest { - // Required. The name of the snapshot to delete. + // Required. Identifier. The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } From 900783ff8b135b42088c37b48cdc1a7ee44d4e08 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:07 +0000 Subject: [PATCH 648/656] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.2 (#2625) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ff444f0cc..c6f9b1bca 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0f4bfe7cb..16920c23c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3dd1de994..faf630781 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 From 2d567d16f7f546586156e2e2ee17c433fbec5fc2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:22 +0000 Subject: [PATCH 649/656] deps: update dependency com.google.cloud:google-cloud-core to v2.62.2 (#2632) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c6f9b1bca..f7b7098da 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 16920c23c..1d278aa3d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index faf630781..a80f9af05 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests From 5081aac1fc26fcaca004c730982d0e56ed36e32f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:49 +0000 Subject: [PATCH 650/656] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 (#2633) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index ba9ae7cf5..396a49755 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 5281720c5..e8d28eb83 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.54.1 + 3.54.2 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index f5fd9874d..686c8b484 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.54.1 + 3.54.2 From 6cd2bb6e9c927dd192833efc7c3549dfa9c84f57 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 20:09:52 +0000 Subject: [PATCH 651/656] deps: update actions/checkout action to v6 (#2619) Co-authored-by: Mike Prieto --- .github/workflows/hermetic_library_generation.yaml | 2 +- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .github/workflows/update_generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 818024030..cda7bb36c 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -32,7 +32,7 @@ jobs: else echo "SHOULD_RUN=true" >> $GITHUB_ENV fi - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 396a49755..24c84d214 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-java@v5 with: distribution: temurin diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index a7e14bb48..d343f233b 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 4746abe9ab8f5815c61dc94dcad6c7060cfd9f41 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:29:39 -0500 Subject: [PATCH 652/656] chore(main): release 1.143.2-SNAPSHOT (#2614) * chore(main): release 1.143.2-SNAPSHOT * chore: generate libraries at Thu Dec 11 20:10:46 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .github/workflows/update_generation_config.yaml | 2 +- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index d343f233b..a7e14bb48 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/README.md b/README.md index a503ceea7..32a73a37e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index e8d28eb83..4ee7f8d1a 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.1 + 1.143.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT
    diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 8d31ef029..12330b5e7 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index fd03db4db..7068bf3f2 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 686c8b484..690ae576e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.1 + 1.143.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 012ad1784..5762aa3e3 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1d278aa3d..ab388762c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index e51f1f34a..246517706 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.1:1.143.1 -grpc-google-cloud-pubsub-v1:1.125.1:1.125.1 -proto-google-cloud-pubsub-v1:1.125.1:1.125.1 +google-cloud-pubsub:1.143.1:1.143.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT From 006ce07f1d362b500d0b992499cf35ceb16b0758 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:57:40 -0500 Subject: [PATCH 653/656] chore(main): release 1.144.0 (#2635) * chore(main): release 1.144.0 * chore: generate libraries at Thu Dec 11 22:30:31 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 31 ++++++++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 +++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 +++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 52 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d16543734..2793d5f9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## [1.144.0](https://github.com/googleapis/java-pubsub/compare/v1.143.1...v1.144.0) (2025-12-11) + + +### Features + +* Add keepalive feature to tear down streams in their absence ([#2605](https://github.com/googleapis/java-pubsub/issues/2605)) ([99aca4f](https://github.com/googleapis/java-pubsub/commit/99aca4f3fd1792b02da78320bed39e53dc8af23c)) +* Make v1 the default protocolVersion ([#2623](https://github.com/googleapis/java-pubsub/issues/2623)) ([12f014d](https://github.com/googleapis/java-pubsub/commit/12f014d9030b2472e508fa75a71f43e671a64583)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.2 ([b4b7f83](https://github.com/googleapis/java-pubsub/commit/b4b7f839b2be1ce003667018a10d9c460e4b63b1)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2613](https://github.com/googleapis/java-pubsub/issues/2613)) ([a69ffdd](https://github.com/googleapis/java-pubsub/commit/a69ffdd9ecb5dae557a847ae7ec5c1a06431bef7)) +* Update actions/checkout action to v6 ([#2619](https://github.com/googleapis/java-pubsub/issues/2619)) ([6cd2bb6](https://github.com/googleapis/java-pubsub/commit/6cd2bb6e9c927dd192833efc7c3549dfa9c84f57)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.56.0 ([#2617](https://github.com/googleapis/java-pubsub/issues/2617)) ([13d5e3d](https://github.com/googleapis/java-pubsub/commit/13d5e3d8e4069a0e94db3cf825eb821d06cc9345)) +* Update dependency com.google.cloud:google-cloud-core to v2.62.1 ([#2608](https://github.com/googleapis/java-pubsub/issues/2608)) ([fee0500](https://github.com/googleapis/java-pubsub/commit/fee0500bf6a0e309ca5f162810e22a2ca4c5b7eb)) +* Update dependency com.google.cloud:google-cloud-core to v2.62.2 ([#2632](https://github.com/googleapis/java-pubsub/issues/2632)) ([2d567d1](https://github.com/googleapis/java-pubsub/commit/2d567d16f7f546586156e2e2ee17c433fbec5fc2)) +* Update dependency com.google.cloud:google-cloud-storage to v2.60.0 ([#2610](https://github.com/googleapis/java-pubsub/issues/2610)) ([1cae247](https://github.com/googleapis/java-pubsub/commit/1cae247322fff1b6588a4b523e601e41a4284c64)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 ([#2633](https://github.com/googleapis/java-pubsub/issues/2633)) ([5081aac](https://github.com/googleapis/java-pubsub/commit/5081aac1fc26fcaca004c730982d0e56ed36e32f)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.1 ([#2612](https://github.com/googleapis/java-pubsub/issues/2612)) ([e92debc](https://github.com/googleapis/java-pubsub/commit/e92debccf9e87971c2d9fee34baffb4b534f24a3)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.2 ([#2625](https://github.com/googleapis/java-pubsub/issues/2625)) ([900783f](https://github.com/googleapis/java-pubsub/commit/900783ff8b135b42088c37b48cdc1a7ee44d4e08)) + + +### Documentation + +* Add the IDENTIFIER field behavior annotation to fields of Cloud Pub/Sub methods that represent a specific identity and need to be sourced with additional care ([b4b7f83](https://github.com/googleapis/java-pubsub/commit/b4b7f839b2be1ce003667018a10d9c460e4b63b1)) + ## [1.143.1](https://github.com/googleapis/java-pubsub/compare/v1.143.0...v1.143.1) (2025-11-13) diff --git a/README.md b/README.md index 32a73a37e..ab3b726af 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.143.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.144.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 4ee7f8d1a..7379b0a88 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.2-SNAPSHOT + 1.144.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 12330b5e7..01fabe334 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 7068bf3f2..a4bd081fe 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/pom.xml b/pom.xml index 690ae576e..caf1bba2e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.2-SNAPSHOT + 1.144.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 5762aa3e3..ac3984e73 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ab388762c..75794ce65 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/versions.txt b/versions.txt index 246517706..36b939a61 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.1:1.143.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT +google-cloud-pubsub:1.144.0:1.144.0 +grpc-google-cloud-pubsub-v1:1.126.0:1.126.0 +proto-google-cloud-pubsub-v1:1.126.0:1.126.0 From 4e59581dfd648faf00141cd7f6cc766ce313d4c7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 02:04:28 +0000 Subject: [PATCH 654/656] chore(main): release 1.144.1-SNAPSHOT (#2637) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 7379b0a88..b9c11a692 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.0 + 1.144.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 01fabe334..977a7250e 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index a4bd081fe..29b3dd9e0 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index caf1bba2e..321d61450 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.0 + 1.144.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index ac3984e73..4918ef569 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 75794ce65..34b28a2dc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 36b939a61..7667c2b45 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.0:1.144.0 -grpc-google-cloud-pubsub-v1:1.126.0:1.126.0 -proto-google-cloud-pubsub-v1:1.126.0:1.126.0 +google-cloud-pubsub:1.144.0:1.144.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT From ca99c2a2cea8201ea6f71e7383bd6123ec32ebdc Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 22 Dec 2025 16:33:51 -0500 Subject: [PATCH 655/656] fix: Lower the Subscriber protocol version to disable the streaming pull keepalive feature (#2652) * feat: Make v1 the default protocolVersion * fix: Lower the Subscriber protocol version to disable the streaming pull keepalive feature * fix: Downgrade streaming pull keepalive close stream log from WARNING to FINE * fix: Change from FINE to INFO for ping monitor stream closure log --- .../google/cloud/pubsub/v1/StreamingSubscriberConnection.java | 2 +- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 5c9f9e171..2ee077597 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -519,7 +519,7 @@ private void startServerMonitor() { } logger.log( - Level.WARNING, + Level.INFO, "No response from server for {0} seconds since last ping. Closing stream.", elapsedSincePing.getSeconds()); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index a2d4f3b38..37440ba40 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,7 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; - private final long protocolVersion = 1L; + private final long protocolVersion = 0L; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; From d164024249fc9571cdceadc2f03cf0a021c12ae8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 17:05:19 -0500 Subject: [PATCH 656/656] chore(main): release 1.144.1 (#2654) * chore(main): release 1.144.1 * chore: generate libraries at Mon Dec 22 21:34:41 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2793d5f9e..7019ced0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.144.1](https://github.com/googleapis/java-pubsub/compare/v1.144.0...v1.144.1) (2025-12-22) + + +### Bug Fixes + +* Lower the Subscriber protocol version to disable the streaming pull keepalive feature ([#2652](https://github.com/googleapis/java-pubsub/issues/2652)) ([ca99c2a](https://github.com/googleapis/java-pubsub/commit/ca99c2a2cea8201ea6f71e7383bd6123ec32ebdc)) + ## [1.144.0](https://github.com/googleapis/java-pubsub/compare/v1.143.1...v1.144.0) (2025-12-11) diff --git a/README.md b/README.md index ab3b726af..5a62af019 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.144.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.144.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index b9c11a692..bcb0818c0 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.1-SNAPSHOT + 1.144.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 977a7250e..37c48b77b 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 29b3dd9e0..8ab76948c 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/pom.xml b/pom.xml index 321d61450..11d3514f6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.1-SNAPSHOT + 1.144.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 4918ef569..93bdf6c5a 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 34b28a2dc..59fdadc95 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/versions.txt b/versions.txt index 7667c2b45..c0a0d2f15 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.0:1.144.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT +google-cloud-pubsub:1.144.1:1.144.1 +grpc-google-cloud-pubsub-v1:1.126.1:1.126.1 +proto-google-cloud-pubsub-v1:1.126.1:1.126.1