Skip to content
Permalink
Browse files
docs(regen): update sample code to set total timeout, add API client …
…header test (#66)
  • Loading branch information
yoshi-automation committed Feb 11, 2020
1 parent 3617db9 commit 1178958eaec5aa6ea80938ad91dfb0b1a688463d
@@ -73,8 +73,12 @@
* <code>
* DatabaseAdminSettings.Builder databaseAdminSettingsBuilder =
* DatabaseAdminSettings.newBuilder();
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .setRetrySettings(
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DatabaseAdminSettings databaseAdminSettings = databaseAdminSettingsBuilder.build();
* </code>
* </pre>
@@ -91,8 +91,12 @@
* <code>
* DatabaseAdminStubSettings.Builder databaseAdminSettingsBuilder =
* DatabaseAdminStubSettings.newBuilder();
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .setRetrySettings(
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DatabaseAdminStubSettings databaseAdminSettings = databaseAdminSettingsBuilder.build();
* </code>
* </pre>
@@ -76,8 +76,12 @@
* <code>
* InstanceAdminSettings.Builder instanceAdminSettingsBuilder =
* InstanceAdminSettings.newBuilder();
* instanceAdminSettingsBuilder.getInstanceConfigSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* instanceAdminSettingsBuilder
* .getInstanceConfigSettings()
* .setRetrySettings(
* instanceAdminSettingsBuilder.getInstanceConfigSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* InstanceAdminSettings instanceAdminSettings = instanceAdminSettingsBuilder.build();
* </code>
* </pre>
@@ -94,8 +94,12 @@
* <code>
* InstanceAdminStubSettings.Builder instanceAdminSettingsBuilder =
* InstanceAdminStubSettings.newBuilder();
* instanceAdminSettingsBuilder.getInstanceConfigSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* instanceAdminSettingsBuilder
* .getInstanceConfigSettings()
* .setRetrySettings(
* instanceAdminSettingsBuilder.getInstanceConfigSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* InstanceAdminStubSettings instanceAdminSettings = instanceAdminSettingsBuilder.build();
* </code>
* </pre>
@@ -78,8 +78,12 @@
* <code>
* SpannerSettings.Builder spannerSettingsBuilder =
* SpannerSettings.newBuilder();
* spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* spannerSettingsBuilder
* .createSessionSettings()
* .setRetrySettings(
* spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SpannerSettings spannerSettings = spannerSettingsBuilder.build();
* </code>
* </pre>
@@ -93,8 +93,12 @@
* <code>
* SpannerStubSettings.Builder spannerSettingsBuilder =
* SpannerStubSettings.newBuilder();
* spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30));
* spannerSettingsBuilder
* .createSessionSettings()
* .setRetrySettings(
* spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SpannerStubSettings spannerSettings = spannerSettingsBuilder.build();
* </code>
* </pre>

0 comments on commit 1178958

Please sign in to comment.