Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 27, 2023
1 parent fb7371b commit 89a03fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 89a03fb

Please sign in to comment.