Skip to content

Commit 913b4dd

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 20567 b: refs/heads/autosynth-websecurityscanner c: 0aab68a h: refs/heads/master i: 20565: 310e859 20563: a4edef1 20559: fafb720
1 parent dbbc61f commit 913b4dd

4 files changed

Lines changed: 28 additions & 30 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
143143
refs/heads/autosynth-tasks: 5d6a4f686ffef2080506d3b613fc7563a8bba1cb
144144
refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c
145145
refs/heads/autosynth-trace: 8804c46bfe147702ee9c95669f17f42d3790cf23
146-
refs/heads/autosynth-websecurityscanner: c3ebac612a5b41ac3257f75b91d1fbeb111bc6b1
146+
refs/heads/autosynth-websecurityscanner: 0aab68a4068c06fca5c582256b5c2799a8b5f497
147147
refs/heads/bigquerystorage: 06db74d123d7f8a3ef48755c2fcabed09faf8e64
148148
refs/heads/elharo-patch-1: ce159ef828d3c545991ff78e7b6e0d912a9453e9
149149
refs/heads/mrschmidt-numericadd: 96509abadf6190b7886d57fdd9b090da55f5171c

branches/autosynth-websecurityscanner/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,13 @@ public static class Builder extends StubSettings.Builder<PublisherStubSettings,
479479
"idempotent",
480480
ImmutableSet.copyOf(
481481
Lists.<StatusCode.Code>newArrayList(
482-
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
483-
definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
482+
StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN)));
484483
definitions.put(
485-
"one_plus_delivery",
484+
"non_idempotent",
485+
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
486+
definitions.put("none", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
487+
definitions.put(
488+
"publish",
486489
ImmutableSet.copyOf(
487490
Lists.<StatusCode.Code>newArrayList(
488491
StatusCode.Code.ABORTED,
@@ -584,12 +587,12 @@ private static Builder initDefaults(Builder builder) {
584587

585588
builder
586589
.createTopicSettings()
587-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
590+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
588591
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
589592

590593
builder
591594
.updateTopicSettings()
592-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
595+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
593596
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
594597

595598
builder
@@ -606,7 +609,7 @@ private static Builder initDefaults(Builder builder) {
606609
.build());
607610
builder
608611
.publishSettings()
609-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("one_plus_delivery"))
612+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("publish"))
610613
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging"));
611614

612615
builder
@@ -626,7 +629,7 @@ private static Builder initDefaults(Builder builder) {
626629

627630
builder
628631
.deleteTopicSettings()
629-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
632+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
630633
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
631634

632635
builder

branches/autosynth-websecurityscanner/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -479,16 +479,11 @@ public static class Builder extends StubSettings.Builder<SubscriberStubSettings,
479479
"idempotent",
480480
ImmutableSet.copyOf(
481481
Lists.<StatusCode.Code>newArrayList(
482-
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
482+
StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN)));
483483
definitions.put(
484-
"pull",
485-
ImmutableSet.copyOf(
486-
Lists.<StatusCode.Code>newArrayList(
487-
StatusCode.Code.DEADLINE_EXCEEDED,
488-
StatusCode.Code.INTERNAL,
489-
StatusCode.Code.RESOURCE_EXHAUSTED,
490-
StatusCode.Code.UNAVAILABLE)));
491-
definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
484+
"non_idempotent",
485+
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
486+
definitions.put("none", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
492487
RETRYABLE_CODE_DEFINITIONS = definitions.build();
493488
}
494489

@@ -622,7 +617,7 @@ private static Builder initDefaults(Builder builder) {
622617

623618
builder
624619
.updateSubscriptionSettings()
625-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
620+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
626621
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
627622

628623
builder
@@ -632,7 +627,7 @@ private static Builder initDefaults(Builder builder) {
632627

633628
builder
634629
.deleteSubscriptionSettings()
635-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
630+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
636631
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
637632

638633
builder
@@ -642,12 +637,12 @@ private static Builder initDefaults(Builder builder) {
642637

643638
builder
644639
.acknowledgeSettings()
645-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
640+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
646641
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging"));
647642

648643
builder
649644
.pullSettings()
650-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("pull"))
645+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
651646
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging"));
652647

653648
builder
@@ -662,22 +657,22 @@ private static Builder initDefaults(Builder builder) {
662657

663658
builder
664659
.createSnapshotSettings()
665-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
660+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
666661
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
667662

668663
builder
669664
.updateSnapshotSettings()
670-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
665+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
671666
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
672667

673668
builder
674669
.deleteSnapshotSettings()
675-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
670+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
676671
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
677672

678673
builder
679674
.seekSettings()
680-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
675+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
681676
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
682677

683678
builder

branches/autosynth-websecurityscanner/google-cloud-clients/google-cloud-pubsub/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-01-17T08:48:48.620536Z",
2+
"updateTime": "2019-02-13T08:46:41.544485Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.6",
8-
"dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e"
7+
"version": "0.16.13",
8+
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05",
16-
"internalRef": "229626798"
15+
"sha": "ca61898878f0926dd9dcc68ba90764f17133efe4",
16+
"internalRef": "233680013"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)