From 89a03fb17121ff2831a98cd180d8d7dad311b73b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 27 Oct 2023 17:35:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 2 +- .../CreateCloudStorageSubscriptionExample.java | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1627f7d6d..7f0e4ad6e 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.25.0') +implementation platform('com.google.cloud:libraries-bom:26.26.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java b/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java index 34d98ae96..654ba3857 100644 --- a/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java +++ b/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java @@ -36,13 +36,19 @@ public static void main(String... args) throws Exception { String filenameSuffix = ".text"; Duration maxDuration = Duration.newBuilder().setSeconds(300).build(); - createCloudStorageSubscription(projectId, topicId, subscriptionId, bucket, filenamePrefix, - filenameSuffix, maxDuration); + 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 { + 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);