Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit f446ff4

Browse files
feat: add location to WriteStream and add WriteStreamView support (#1771)
* chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add location to WriteStream and add WriteStreamView support PiperOrigin-RevId: 472835596 Source-Link: googleapis/googleapis@1cf9407 Source-Link: https://github.com/googleapis/googleapis-gen/commit/59d0f10badec867913ebc2eb4bac021f79904519 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTlkMGYxMGJhZGVjODY3OTEzZWJjMmViNGJhYzAyMWY3OTkwNDUxOSJ9 * 🦉 Updates from OwlBot post-processor 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>
1 parent 5cc96a0 commit f446ff4

29 files changed

Lines changed: 1249 additions & 329 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you are using Maven without BOM, add this to your dependencies:
4949
If you are using Gradle 5.x or later, add this to your dependencies:
5050

5151
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.1.0')
52+
implementation platform('com.google.cloud:libraries-bom:26.1.1')
5353
5454
implementation 'com.google.cloud:google-cloud-bigquerystorage'
5555
```

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java

Lines changed: 50 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
* calls that map to API methods. Sample code to get started:
3636
*
3737
* <pre>{@code
38-
* // This snippet has been automatically generated for illustrative purposes only.
39-
* // It may require modifications to work in your environment.
38+
* // This snippet has been automatically generated and should be regarded as a code template only.
39+
* // It will require modifications to work:
40+
* // - It may require correct/in-range values for request initialization.
41+
* // - It may require specifying regional endpoints when creating the service client as shown in
42+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4043
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
4144
* ProjectName parent = ProjectName.of("[PROJECT]");
4245
* ReadSession readSession = ReadSession.newBuilder().build();
@@ -76,8 +79,11 @@
7679
* <p>To customize credentials:
7780
*
7881
* <pre>{@code
79-
* // This snippet has been automatically generated for illustrative purposes only.
80-
* // It may require modifications to work in your environment.
82+
* // This snippet has been automatically generated and should be regarded as a code template only.
83+
* // It will require modifications to work:
84+
* // - It may require correct/in-range values for request initialization.
85+
* // - It may require specifying regional endpoints when creating the service client as shown in
86+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8187
* BaseBigQueryReadSettings baseBigQueryReadSettings =
8288
* BaseBigQueryReadSettings.newBuilder()
8389
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,8 +95,11 @@
8995
* <p>To customize the endpoint:
9096
*
9197
* <pre>{@code
92-
* // This snippet has been automatically generated for illustrative purposes only.
93-
* // It may require modifications to work in your environment.
98+
* // This snippet has been automatically generated and should be regarded as a code template only.
99+
* // It will require modifications to work:
100+
* // - It may require correct/in-range values for request initialization.
101+
* // - It may require specifying regional endpoints when creating the service client as shown in
102+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
94103
* BaseBigQueryReadSettings baseBigQueryReadSettings =
95104
* BaseBigQueryReadSettings.newBuilder().setEndpoint(myEndpoint).build();
96105
* BaseBigQueryReadClient baseBigQueryReadClient =
@@ -171,8 +180,11 @@ public BigQueryReadStub getStub() {
171180
* <p>Sample code:
172181
*
173182
* <pre>{@code
174-
* // This snippet has been automatically generated for illustrative purposes only.
175-
* // It may require modifications to work in your environment.
183+
* // This snippet has been automatically generated and should be regarded as a code template only.
184+
* // It will require modifications to work:
185+
* // - It may require correct/in-range values for request initialization.
186+
* // - It may require specifying regional endpoints when creating the service client as shown in
187+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
176188
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
177189
* ProjectName parent = ProjectName.of("[PROJECT]");
178190
* ReadSession readSession = ReadSession.newBuilder().build();
@@ -227,8 +239,11 @@ public final ReadSession createReadSession(
227239
* <p>Sample code:
228240
*
229241
* <pre>{@code
230-
* // This snippet has been automatically generated for illustrative purposes only.
231-
* // It may require modifications to work in your environment.
242+
* // This snippet has been automatically generated and should be regarded as a code template only.
243+
* // It will require modifications to work:
244+
* // - It may require correct/in-range values for request initialization.
245+
* // - It may require specifying regional endpoints when creating the service client as shown in
246+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
232247
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
233248
* String parent = ProjectName.of("[PROJECT]").toString();
234249
* ReadSession readSession = ReadSession.newBuilder().build();
@@ -283,8 +298,11 @@ public final ReadSession createReadSession(
283298
* <p>Sample code:
284299
*
285300
* <pre>{@code
286-
* // This snippet has been automatically generated for illustrative purposes only.
287-
* // It may require modifications to work in your environment.
301+
* // This snippet has been automatically generated and should be regarded as a code template only.
302+
* // It will require modifications to work:
303+
* // - It may require correct/in-range values for request initialization.
304+
* // - It may require specifying regional endpoints when creating the service client as shown in
305+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
288306
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
289307
* CreateReadSessionRequest request =
290308
* CreateReadSessionRequest.newBuilder()
@@ -326,8 +344,11 @@ public final ReadSession createReadSession(CreateReadSessionRequest request) {
326344
* <p>Sample code:
327345
*
328346
* <pre>{@code
329-
* // This snippet has been automatically generated for illustrative purposes only.
330-
* // It may require modifications to work in your environment.
347+
* // This snippet has been automatically generated and should be regarded as a code template only.
348+
* // It will require modifications to work:
349+
* // - It may require correct/in-range values for request initialization.
350+
* // - It may require specifying regional endpoints when creating the service client as shown in
351+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
331352
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
332353
* CreateReadSessionRequest request =
333354
* CreateReadSessionRequest.newBuilder()
@@ -359,8 +380,11 @@ public final UnaryCallable<CreateReadSessionRequest, ReadSession> createReadSess
359380
* <p>Sample code:
360381
*
361382
* <pre>{@code
362-
* // This snippet has been automatically generated for illustrative purposes only.
363-
* // It may require modifications to work in your environment.
383+
* // This snippet has been automatically generated and should be regarded as a code template only.
384+
* // It will require modifications to work:
385+
* // - It may require correct/in-range values for request initialization.
386+
* // - It may require specifying regional endpoints when creating the service client as shown in
387+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
364388
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
365389
* ReadRowsRequest request =
366390
* ReadRowsRequest.newBuilder()
@@ -396,8 +420,11 @@ public final ServerStreamingCallable<ReadRowsRequest, ReadRowsResponse> readRows
396420
* <p>Sample code:
397421
*
398422
* <pre>{@code
399-
* // This snippet has been automatically generated for illustrative purposes only.
400-
* // It may require modifications to work in your environment.
423+
* // This snippet has been automatically generated and should be regarded as a code template only.
424+
* // It will require modifications to work:
425+
* // - It may require correct/in-range values for request initialization.
426+
* // - It may require specifying regional endpoints when creating the service client as shown in
427+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
401428
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
402429
* SplitReadStreamRequest request =
403430
* SplitReadStreamRequest.newBuilder()
@@ -432,8 +459,11 @@ public final SplitReadStreamResponse splitReadStream(SplitReadStreamRequest requ
432459
* <p>Sample code:
433460
*
434461
* <pre>{@code
435-
* // This snippet has been automatically generated for illustrative purposes only.
436-
* // It may require modifications to work in your environment.
462+
* // This snippet has been automatically generated and should be regarded as a code template only.
463+
* // It will require modifications to work:
464+
* // - It may require correct/in-range values for request initialization.
465+
* // - It may require specifying regional endpoints when creating the service client as shown in
466+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
437467
* try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
438468
* SplitReadStreamRequest request =
439469
* SplitReadStreamRequest.newBuilder()

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
* <p>For example, to set the total timeout of createReadSession to 30 seconds:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* BaseBigQueryReadSettings.Builder baseBigQueryReadSettingsBuilder =
5760
* BaseBigQueryReadSettings.newBuilder();
5861
* baseBigQueryReadSettingsBuilder

0 commit comments

Comments
 (0)