diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 641e636ae..8058621d8 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:411589ea6aca20f400adb0291a11fb9f12bf3f968ff7e5ec1d2a2eb1800ea5d1 -# created: 2023-10-11T14:20:39.368918544Z + digest: sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 +# created: 2023-10-24T01:51:42.863726766Z diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index a2907a257..5a95c6828 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -35,3 +35,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg index 58049cc38..6a6ef94ef 100644 --- a/.kokoro/nightly/java11-integration.cfg +++ b/.kokoro/nightly/java11-integration.cfg @@ -35,3 +35,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg index dded67a9d..5864c603e 100644 --- a/.kokoro/presubmit/integration.cfg +++ b/.kokoro/presubmit/integration.cfg @@ -31,3 +31,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 59de49234..c5c11bbe7 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -470,9 +470,9 @@ typing-extensions==4.7.1 \ --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 # via -r requirements.in -urllib3==1.26.17 \ - --hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \ - --hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b +urllib3==1.26.18 \ + --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \ + --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0 # via # google-auth # requests diff --git a/CHANGELOG.md b/CHANGELOG.md index 604e1150a..94be9dbc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [1.125.9](https://github.com/googleapis/java-pubsub/compare/v1.125.8...v1.125.9) (2023-10-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#1795](https://github.com/googleapis/java-pubsub/issues/1795)) ([670daf1](https://github.com/googleapis/java-pubsub/commit/670daf1c74242dfa54e9747924d094cbcaac4d37)) + +## [1.125.8](https://github.com/googleapis/java-pubsub/compare/v1.125.7...v1.125.8) (2023-10-23) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.26.0 ([#1780](https://github.com/googleapis/java-pubsub/issues/1780)) ([2d38175](https://github.com/googleapis/java-pubsub/commit/2d381751b51cb69b6ab248ee56fe9ce5bf7f5cd5)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#1781](https://github.com/googleapis/java-pubsub/issues/1781)) ([5b6cb15](https://github.com/googleapis/java-pubsub/commit/5b6cb15ce9f459061875329ba1fc6d4b84909666)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#1782](https://github.com/googleapis/java-pubsub/issues/1782)) ([c9be478](https://github.com/googleapis/java-pubsub/commit/c9be478c3558928fc603c81fc07c4d8ba6d853b4)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#1783](https://github.com/googleapis/java-pubsub/issues/1783)) ([5e39b79](https://github.com/googleapis/java-pubsub/commit/5e39b799d5d7b41325f9564a6044c0f0b4b05fdc)) + + +### Documentation + +* Modified some descriptions ([#1773](https://github.com/googleapis/java-pubsub/issues/1773)) ([17bd055](https://github.com/googleapis/java-pubsub/commit/17bd05512ba71083eb898a3ff8c5dc53c9bbb08d)) + +## [1.125.7](https://github.com/googleapis/java-pubsub/compare/v1.125.6...v1.125.7) (2023-10-17) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#1770](https://github.com/googleapis/java-pubsub/issues/1770)) ([db73af7](https://github.com/googleapis/java-pubsub/commit/db73af7bca53faae2e135ec9a1899e36ac19025c)) + ## [1.125.6](https://github.com/googleapis/java-pubsub/compare/v1.125.5...v1.125.6) (2023-10-10) diff --git a/README.md b/README.md index 150eb7bd0..5d2060635 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.24.0 + 26.26.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.125.3 + 1.125.9 ``` @@ -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.125.8' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.8" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.9" ``` @@ -248,6 +248,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | 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) | | Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.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/CreateBigQuerySubscriptionExample.java) | +| Create Cloud Storage Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.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/CreateCloudStorageSubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.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/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.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/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.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/CreatePushSubscriptionExample.java) | @@ -408,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.8 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.9 [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 f4137db87..d863af302 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT pom com.google.cloud google-cloud-shared-config - 1.5.8 + 1.6.0 Google Cloud pubsub BOM @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.10-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.10-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 215849078..b643bb33a 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.125.7-SNAPSHOT + 1.125.10-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT google-cloud-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 e040337a4..068970f64 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 @@ -222,15 +222,15 @@ public SubscriberStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -292,15 +292,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -362,15 +362,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -432,15 +432,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -502,15 +502,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -765,15 +765,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (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/admin#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. + * (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. * *

Sample code: * @@ -2609,9 +2609,9 @@ public final UnaryCallable listSnap * 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/admin#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. + * 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. * *

Sample code: * @@ -2631,7 +2631,7 @@ 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/admin#resource_names). Format is + * 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 @@ -2662,9 +2662,9 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * 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/admin#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. + * 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. * *

Sample code: * @@ -2684,7 +2684,7 @@ 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/admin#resource_names). Format is + * 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 @@ -2715,9 +2715,9 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * 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/admin#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. + * 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. * *

Sample code: * @@ -2737,7 +2737,7 @@ 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/admin#resource_names). Format is + * 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 @@ -2768,9 +2768,9 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * 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/admin#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. + * 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. * *

Sample code: * @@ -2790,7 +2790,7 @@ 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/admin#resource_names). Format is + * 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 @@ -2818,9 +2818,9 @@ public final Snapshot createSnapshot(String name, String subscription) { * 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/admin#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. + * 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. * *

Sample code: * @@ -3010,9 +3010,9 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * 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/admin#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. + * 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. * *

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 80a3b3fa4..b1f0dc35f 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 @@ -197,7 +197,7 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

Sample code: * @@ -228,7 +228,7 @@ public final Topic createTopic(TopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

Sample code: * @@ -288,7 +288,7 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

Sample code: * @@ -323,7 +323,7 @@ public final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

Sample code: * diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 7402d8837..56787b13f 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.107.7-SNAPSHOT + 1.107.10-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT 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 004e591c3..020bf6f9d 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 @@ -465,7 +465,7 @@ public interface AsyncService { * *

      * Creates the given topic with the given name. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ default void createTopic( @@ -640,7 +640,7 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * *
      * Creates the given topic with the given name. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ public void createTopic( @@ -816,7 +816,7 @@ protected PublisherBlockingStub build( * *
      * Creates the given topic with the given name. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -963,7 +963,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Creates the given topic with the given name. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture 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 7007b4f21..c90e438e8 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 @@ -742,15 +742,15 @@ public interface AsyncService { * *
      * Creates a subscription to a given topic. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (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/admin#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.
+     * (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.
      * 
*/ default void createSubscription( @@ -962,7 +962,7 @@ default void listSnapshots( * 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/admin#resource_names). The + * (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. * @@ -1075,15 +1075,15 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call * *
      * Creates a subscription to a given topic. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (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/admin#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.
+     * (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 void createSubscription( @@ -1316,7 +1316,7 @@ public void listSnapshots( * 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/admin#resource_names). The + * (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. * @@ -1421,15 +1421,15 @@ protected SubscriberBlockingStub build( * *
      * Creates a subscription to a given topic. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (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/admin#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.
+     * (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( @@ -1609,7 +1609,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * 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/admin#resource_names). The + * (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. * @@ -1702,15 +1702,15 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
      * Creates a subscription to a given topic. See the [resource name rules]
-     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
+     * (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/admin#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.
+     * (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.common.util.concurrent.ListenableFuture @@ -1894,7 +1894,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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/admin#resource_names). The + * (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. * diff --git a/pom.xml b/pom.xml index 5935b98c3..a54c1c478 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.8 + 1.6.0 @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.17.0 + 3.18.0 pom import @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index be06f0558..adac6f13b 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.107.7-SNAPSHOT + 1.107.10-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT 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 58c4a1896..3918f5ca6 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 @@ -86,8 +86,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -116,8 +116,8 @@ public java.lang.String getName() { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -746,8 +746,8 @@ public Builder mergeFrom( * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -775,8 +775,8 @@ public java.lang.String getName() { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -804,8 +804,8 @@ public com.google.protobuf.ByteString getNameBytes() { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -832,8 +832,8 @@ public Builder setName(java.lang.String value) { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -856,8 +856,8 @@ public Builder clearName() { * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * 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 2f24bc123..ee4a6d68f 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 @@ -31,8 +31,8 @@ public interface CreateSnapshotRequestOrBuilder * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * @@ -50,8 +50,8 @@ public interface CreateSnapshotRequestOrBuilder * 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/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. * * * 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 afec846d7..06c6e9aba 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 @@ -71,11 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -89,11 +90,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -107,11 +109,12 @@ public int getAllowedPersistenceRegionsCount() { * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -126,11 +129,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -513,11 +517,12 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -532,11 +537,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -550,11 +556,12 @@ public int getAllowedPersistenceRegionsCount() { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -569,11 +576,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -588,11 +596,12 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -615,11 +624,12 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -641,11 +651,12 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; @@ -664,11 +675,12 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable - * A list of IDs of GCP regions where messages that are published to the topic - * may be persisted in storage. Messages published by publishers running in - * non-allowed GCP regions (or running outside of GCP altogether) will be - * routed for storage in one of the allowed regions. An empty list means that - * no regions are allowed, and is not a valid configuration. + * 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; @@ -686,11 +698,12 @@ public Builder clearAllowedPersistenceRegions() { * * *
-     * A list of IDs of GCP regions where messages that are published to the topic
-     * may be persisted in storage. Messages published by publishers running in
-     * non-allowed GCP regions (or running outside of GCP altogether) will be
-     * routed for storage in one of the allowed regions. An empty list means that
-     * no regions are allowed, and is not a valid configuration.
+     * 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; 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 8edf41faa..5f075aca0 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 @@ -27,11 +27,12 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -43,11 +44,12 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -59,11 +61,12 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; @@ -76,11 +79,12 @@ public interface MessageStoragePolicyOrBuilder * * *
-   * A list of IDs of GCP regions where messages that are published to the topic
-   * may be persisted in storage. Messages published by publishers running in
-   * non-allowed GCP regions (or running outside of GCP altogether) will be
-   * routed for storage in one of the allowed regions. An empty list means that
-   * no regions are allowed, and is not a valid configuration.
+   * 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; 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 8dd269745..476d5384d 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 @@ -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=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @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=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @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=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @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=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @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 963c7f799..740269f4a 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 @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder *
* * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @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 4468de178..700324dc7 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 @@ -44,7 +44,7 @@ service Publisher { "https://www.googleapis.com/auth/pubsub"; // Creates the given topic with the given name. See the [resource name rules] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). + // (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -137,11 +137,12 @@ service Publisher { // A policy constraining the storage of messages published to the topic. message MessageStoragePolicy { - // A list of IDs of GCP regions where messages that are published to the topic - // may be persisted in storage. Messages published by publishers running in - // non-allowed GCP regions (or running outside of GCP altogether) will be - // routed for storage in one of the allowed regions. An empty list means that - // no regions are allowed, and is not a valid configuration. + // 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; } @@ -430,16 +431,16 @@ service Subscriber { "https://www.googleapis.com/auth/pubsub"; // Creates a subscription to a given topic. See the [resource name rules] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). + // (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/admin#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. + // (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. rpc CreateSubscription(Subscription) returns (Subscription) { option (google.api.http) = { put: "/v1/{name=projects/*/subscriptions/*}" @@ -592,7 +593,7 @@ service Subscriber { // 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/admin#resource_names). The + // (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. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { @@ -1429,8 +1430,8 @@ message CreateSnapshotRequest { // 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/admin#resource_names). Format - // is `projects/{project}/snapshots/{snap}`. + // 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) = { type: "pubsub.googleapis.com/Snapshot" } diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e76fdeee0..fc16f18d3 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.3 + 1.125.9 @@ -80,13 +80,18 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests com.google.cloud google-cloud-bigquery - 2.33.1 + 2.34.0 + + + com.google.cloud + google-cloud-storage + 2.29.0
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index cf7da4eff..ec3aa4cd9 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.24.0 + 26.26.0 pom import @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.6.0 + 3.6.1 copy-dependencies @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.27 + 0.9.28 test @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.1.2 + 3.2.1 **/*IT @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.27 + 0.9.28 true pubsub.NativeImagePubSubSample diff --git a/samples/pom.xml b/samples/pom.xml index 10a43a507..678328275 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.3.0 + 3.3.1 checkstyle-suppressions.xml diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4ff513287..eae9a983a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.10-SNAPSHOT @@ -79,13 +79,18 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests com.google.cloud google-cloud-bigquery - 2.33.1 + 2.34.0 + + + com.google.cloud + google-cloud-storage + 2.29.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7ffe9b828..5c1961fe7 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.24.0 + 26.26.0 pom import @@ -63,6 +63,10 @@ com.google.cloud google-cloud-bigquery + + com.google.cloud + google-cloud-storage + org.apache.avro avro @@ -94,7 +98,7 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests diff --git a/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java b/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java new file mode 100644 index 000000000..654ba3857 --- /dev/null +++ b/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java @@ -0,0 +1,78 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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_cloud_storage_subscription] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.CloudStorageConfig; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateCloudStorageSubscriptionExample { + 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"; + String bucket = "your-bucket"; + String filenamePrefix = "log_events_"; + String filenameSuffix = ".text"; + Duration maxDuration = Duration.newBuilder().setSeconds(300).build(); + + createCloudStorageSubscription( + projectId, topicId, subscriptionId, bucket, filenamePrefix, filenameSuffix, maxDuration); + } + + public static void createCloudStorageSubscription( + String projectId, + String topicId, + String subscriptionId, + String bucket, + String filenamePrefix, + String filenameSuffix, + Duration maxDuration) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + CloudStorageConfig cloudStorageConfig = + CloudStorageConfig.newBuilder() + .setBucket(bucket) + .setFilenamePrefix(filenamePrefix) + .setFilenameSuffix(filenameSuffix) + .setMaxDuration(maxDuration) + .build(); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setCloudStorageConfig(cloudStorageConfig) + .build()); + + System.out.println("Created a CloudStorage subscription: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_cloud_storage_subscription] diff --git a/versions.txt b/versions.txt index 4aa1ad271..b938ab00a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.6:1.125.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT +google-cloud-pubsub:1.125.9:1.125.10-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT