Skip to content

Commit 740b5e9

Browse files
yoshi-automationPraful Makani
authored andcommitted
Regenerate bigquerystorage client (#5198)
1 parent c17ae27 commit 740b5e9

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ public static class Builder extends StubSettings.Builder<BigQueryStorageStubSett
227227
Lists.<StatusCode.Code>newArrayList(
228228
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
229229
definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
230+
definitions.put(
231+
"unary_streaming",
232+
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
230233
RETRYABLE_CODE_DEFINITIONS = definitions.build();
231234
}
232235

@@ -257,6 +260,17 @@ public static class Builder extends StubSettings.Builder<BigQueryStorageStubSett
257260
.setTotalTimeout(Duration.ofMillis(600000L))
258261
.build();
259262
definitions.put("create_read_session", settings);
263+
settings =
264+
RetrySettings.newBuilder()
265+
.setInitialRetryDelay(Duration.ofMillis(100L))
266+
.setRetryDelayMultiplier(1.3)
267+
.setMaxRetryDelay(Duration.ofMillis(60000L))
268+
.setInitialRpcTimeout(Duration.ofMillis(86400000L))
269+
.setRpcTimeoutMultiplier(1.0)
270+
.setMaxRpcTimeout(Duration.ofMillis(86400000L))
271+
.setTotalTimeout(Duration.ofMillis(86400000L))
272+
.build();
273+
definitions.put("read_rows", settings);
260274
RETRY_PARAM_DEFINITIONS = definitions.build();
261275
}
262276

@@ -305,8 +319,8 @@ private static Builder initDefaults(Builder builder) {
305319

306320
builder
307321
.readRowsSettings()
308-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
309-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
322+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("unary_streaming"))
323+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("read_rows"));
310324

311325
builder
312326
.batchCreateReadSessionStreamsSettings()

google-cloud-clients/google-cloud-bigquerystorage/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-04-04T07:35:31.563852Z",
2+
"updateTime": "2019-05-18T07:35:01.690947Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.23",
8-
"dockerImage": "googleapis/artman@sha256:f3a3f88000dc1cd1b4826104c5574aa5c534f6793fbf66e888d11c0d7ef5762e"
7+
"version": "0.19.0",
8+
"dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "04193ea2f8121388c998ab49c382f2c03417dcce",
16-
"internalRef": "241828309"
15+
"sha": "64f0053af0c24d817ec44278c8b4513f6cfd77ff",
16+
"internalRef": "248810317"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)