Skip to content

Commit

Permalink
fix: removing misspelled field, add correctly spelled field (#1011)
Browse files Browse the repository at this point in the history
* fix!: removing misspelled field, add correctly spelled field

PiperOrigin-RevId: 428023165

Source-Link: googleapis/googleapis@63d374d

Source-Link: googleapis/googleapis-gen@6be9b6c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmJlOWI2YzZiNmM4NWZhY2UxOGFkYmRiZGQzZmMwNjM1NjgxMGI0YSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tomo Suzuki <suztomo@google.com>
  • Loading branch information
3 people committed Feb 28, 2022
1 parent f50f298 commit 2e8b681
Show file tree
Hide file tree
Showing 8 changed files with 4,471 additions and 747 deletions.
Expand Up @@ -488,6 +488,7 @@ public final Subscription createSubscription(
* .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
* .setRetryPolicy(RetryPolicy.newBuilder().build())
* .setDetached(true)
* .setEnableExactlyOnceDelivery(true)
* .setTopicMessageRetentionDuration(Duration.newBuilder().build())
* .build();
* Subscription response = subscriptionAdminClient.createSubscription(request);
Expand Down Expand Up @@ -743,6 +744,7 @@ public final Subscription createSubscription(
* .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
* .setRetryPolicy(RetryPolicy.newBuilder().build())
* .setDetached(true)
* .setEnableExactlyOnceDelivery(true)
* .setTopicMessageRetentionDuration(Duration.newBuilder().build())
* .build();
* ApiFuture<Subscription> future =
Expand Down
Expand Up @@ -149,6 +149,7 @@ public void createSubscriptionTest() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -210,6 +211,7 @@ public void createSubscriptionTest2() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -271,6 +273,7 @@ public void createSubscriptionTest3() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -332,6 +335,7 @@ public void createSubscriptionTest4() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -393,6 +397,7 @@ public void getSubscriptionTest() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -444,6 +449,7 @@ public void getSubscriptionTest2() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -495,6 +501,7 @@ public void updateSubscriptionTest() throws Exception {
.setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
.setRetryPolicy(RetryPolicy.newBuilder().build())
.setDetached(true)
.setEnableExactlyOnceDelivery(true)
.setTopicMessageRetentionDuration(Duration.newBuilder().build())
.build();
mockSubscriber.addResponse(expectedResponse);
Expand Down Expand Up @@ -1015,6 +1022,10 @@ public void streamingPullTest() throws Exception {
StreamingPullResponse expectedResponse =
StreamingPullResponse.newBuilder()
.addAllReceivedMessages(new ArrayList<ReceivedMessage>())
.setAcknowledgeConfirmation(
StreamingPullResponse.AcknowledgeConfirmation.newBuilder().build())
.setModifyAckDeadlineConfirmation(
StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder().build())
.setSubscriptionProperties(
StreamingPullResponse.SubscriptionProperties.newBuilder().build())
.build();
Expand Down

0 comments on commit 2e8b681

Please sign in to comment.