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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/scripts/update_generation_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ function get_latest_released_version() {
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}")

# 1. Extract all version tags
# 2. Strip the XML tags to leave just the version numbers
# 3. Filter for strictly numbers.numbers.numbers (e.g., 2.54.0)
# 4. Sort by version (V) and take the last one (tail -n 1)
latest=$(echo "${xml_content}" \
| grep -oE '<version>[0-9]+\.[0-9]+\.[0-9]+</version>' \
| sed -E 's/<[^>]+>//g' \
| 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}"
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-a.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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.2" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-b.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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.2" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-c.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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.2" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.72.0')
implementation platform('com.google.cloud:libraries-bom:26.74.0-rc2')

implementation 'com.google.cloud:google-cloud-pubsub'
```
Expand Down Expand Up @@ -395,29 +395,10 @@ information.

Apache 2.0 - See [LICENSE][license] for more information.

## CI Status

Java Version | Status
------------ | ------
Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]

Java is a registered trademark of Oracle and/or its affiliates.

[product-docs]: https://cloud.google.com/pubsub/docs/
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.html
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.svg
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.html
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.svg
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.html
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.svg
[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.1
Expand Down
6 changes: 3 additions & 3 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.64.2
googleapis_commitish: b32495a713a68dd0dff90cf0b24021debfca048a
libraries_bom_version: 26.72.0
gapic_generator_version: 2.65.1
googleapis_commitish: 615bb9acb1d978c497cf2268450c6e6c3e8be049
libraries_bom_version: 26.74.0-rc2
libraries:
- api_shortname: pubsub
name_pretty: Cloud Pub/Sub
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 Google LLC
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 Google LLC
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -103,8 +103,8 @@
* }</pre>
*
* 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.
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
* retries.
*/
@Generated("by gapic-generator-java")
public class SchemaServiceSettings extends ClientSettings<SchemaServiceSettings> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 Google LLC
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1179,7 +1179,7 @@ public final UnaryCallable<Subscription, Subscription> createSubscriptionCallabl
* }
* }</pre>
*
* @param subscription Required. Identifier. The name of the subscription to get. Format is
* @param subscription Required. 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
*/
Expand Down Expand Up @@ -1209,7 +1209,7 @@ public final Subscription getSubscription(SubscriptionName subscription) {
* }
* }</pre>
*
* @param subscription Required. Identifier. The name of the subscription to get. Format is
* @param subscription Required. 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
*/
Expand Down Expand Up @@ -1416,8 +1416,8 @@ public final UnaryCallable<UpdateSubscriptionRequest, Subscription> updateSubscr
* }
* }</pre>
*
* @param project Required. Identifier. The name of the project in which to list subscriptions.
* Format is `projects/{project-id}`.
* @param project Required. 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) {
Expand Down Expand Up @@ -1448,8 +1448,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
* }
* }</pre>
*
* @param project Required. Identifier. The name of the project in which to list subscriptions.
* Format is `projects/{project-id}`.
* @param project Required. 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) {
Expand Down Expand Up @@ -1584,7 +1584,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
* }
* }</pre>
*
* @param subscription Required. Identifier. The subscription to delete. Format is
* @param subscription Required. The subscription to delete. Format is
* `projects/{project}/subscriptions/{sub}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -1617,7 +1617,7 @@ public final void deleteSubscription(SubscriptionName subscription) {
* }
* }</pre>
*
* @param subscription Required. Identifier. The subscription to delete. Format is
* @param subscription Required. The subscription to delete. Format is
* `projects/{project}/subscriptions/{sub}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -2631,7 +2631,7 @@ public final UnaryCallable<ModifyPushConfigRequest, Empty> modifyPushConfigCalla
* }
* }</pre>
*
* @param snapshot Required. Identifier. The name of the snapshot to get. Format is
* @param snapshot Required. 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
*/
Expand Down Expand Up @@ -2664,7 +2664,7 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
* }
* }</pre>
*
* @param snapshot Required. Identifier. The name of the snapshot to get. Format is
* @param snapshot Required. 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
*/
Expand Down Expand Up @@ -2788,8 +2788,8 @@ public final UnaryCallable<GetSnapshotRequest, Snapshot> getSnapshotCallable() {
* }
* }</pre>
*
* @param project Required. Identifier. The name of the project in which to list snapshots. Format
* is `projects/{project-id}`.
* @param project Required. 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) {
Expand Down Expand Up @@ -2823,8 +2823,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
* }
* }</pre>
*
* @param project Required. Identifier. The name of the project in which to list snapshots. Format
* is `projects/{project-id}`.
* @param project Required. 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) {
Expand Down Expand Up @@ -2975,11 +2975,10 @@ public final UnaryCallable<ListSnapshotsRequest, ListSnapshotsResponse> listSnap
* }
* }</pre>
*
* @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
* @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
* `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
Expand Down Expand Up @@ -3029,11 +3028,10 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
* }
* }</pre>
*
* @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
* @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
* `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
Expand Down Expand Up @@ -3083,11 +3081,10 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
* }
* }</pre>
*
* @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
* @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
* `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
Expand Down Expand Up @@ -3137,11 +3134,10 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
* }
* }</pre>
*
* @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
* @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
* `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
Expand Down Expand Up @@ -3514,7 +3510,7 @@ public final UnaryCallable<UpdateSnapshotRequest, Snapshot> updateSnapshotCallab
* }
* }</pre>
*
* @param snapshot Required. Identifier. The name of the snapshot to delete. Format is
* @param snapshot Required. 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
*/
Expand Down Expand Up @@ -3550,7 +3546,7 @@ public final void deleteSnapshot(SnapshotName snapshot) {
* }
* }</pre>
*
* @param snapshot Required. Identifier. The name of the snapshot to delete. Format is
* @param snapshot Required. 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
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 Google LLC
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -112,8 +112,8 @@
* }</pre>
*
* 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.
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
* retries.
*/
@Generated("by gapic-generator-java")
public class SubscriptionAdminSettings extends ClientSettings<SubscriptionAdminSettings> {
Expand Down
Loading
Loading