Skip to content

Commit 17bfbd8

Browse files
feat: re-generated to pick up changes from googleapis. (#982)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/aa13b61d-ab9b-4c81-9ce0-4b1e2b9fff22/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 366823379 Source-Link: googleapis/googleapis@1a7d764 PiperOrigin-RevId: 366811078 Source-Link: googleapis/googleapis@b1614aa
1 parent 5c8c4e7 commit 17bfbd8

File tree

34 files changed

+1916
-582
lines changed

34 files changed

+1916
-582
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ public BigQueryWriteStub getStub() {
145145

146146
// AUTO-GENERATED DOCUMENTATION AND METHOD.
147147
/**
148-
* Creates a write stream to the given table.
148+
* Creates a write stream to the given table. Additionally, every table has a special COMMITTED
149+
* stream named '_default' to which data can be written. This stream doesn't need to be created
150+
* using CreateWriteStream. It is a stream that can be used simultaneously by any number of
151+
* clients. Data written to this stream is considered committed as soon as an acknowledgement is
152+
* received.
149153
*
150154
* <p>Sample code:
151155
*
@@ -174,7 +178,11 @@ public final Stream.WriteStream createWriteStream(
174178

175179
// AUTO-GENERATED DOCUMENTATION AND METHOD.
176180
/**
177-
* Creates a write stream to the given table.
181+
* Creates a write stream to the given table. Additionally, every table has a special COMMITTED
182+
* stream named '_default' to which data can be written. This stream doesn't need to be created
183+
* using CreateWriteStream. It is a stream that can be used simultaneously by any number of
184+
* clients. Data written to this stream is considered committed as soon as an acknowledgement is
185+
* received.
178186
*
179187
* <p>Sample code:
180188
*
@@ -202,7 +210,11 @@ public final Stream.WriteStream createWriteStream(String parent, Stream.WriteStr
202210

203211
// AUTO-GENERATED DOCUMENTATION AND METHOD.
204212
/**
205-
* Creates a write stream to the given table.
213+
* Creates a write stream to the given table. Additionally, every table has a special COMMITTED
214+
* stream named '_default' to which data can be written. This stream doesn't need to be created
215+
* using CreateWriteStream. It is a stream that can be used simultaneously by any number of
216+
* clients. Data written to this stream is considered committed as soon as an acknowledgement is
217+
* received.
206218
*
207219
* <p>Sample code:
208220
*
@@ -225,7 +237,11 @@ public final Stream.WriteStream createWriteStream(Storage.CreateWriteStreamReque
225237

226238
// AUTO-GENERATED DOCUMENTATION AND METHOD.
227239
/**
228-
* Creates a write stream to the given table.
240+
* Creates a write stream to the given table. Additionally, every table has a special COMMITTED
241+
* stream named '_default' to which data can be written. This stream doesn't need to be created
242+
* using CreateWriteStream. It is a stream that can be used simultaneously by any number of
243+
* clients. Data written to this stream is considered committed as soon as an acknowledgement is
244+
* received.
229245
*
230246
* <p>Sample code:
231247
*
@@ -390,7 +406,8 @@ public final Stream.WriteStream getWriteStream(Storage.GetWriteStreamRequest req
390406

391407
// AUTO-GENERATED DOCUMENTATION AND METHOD.
392408
/**
393-
* Finalize a write stream so that no new data can be appended to the stream.
409+
* Finalize a write stream so that no new data can be appended to the stream. Finalize is not
410+
* supported on the '_default' stream.
394411
*
395412
* <p>Sample code:
396413
*
@@ -415,7 +432,8 @@ public final Storage.FinalizeWriteStreamResponse finalizeWriteStream(WriteStream
415432

416433
// AUTO-GENERATED DOCUMENTATION AND METHOD.
417434
/**
418-
* Finalize a write stream so that no new data can be appended to the stream.
435+
* Finalize a write stream so that no new data can be appended to the stream. Finalize is not
436+
* supported on the '_default' stream.
419437
*
420438
* <p>Sample code:
421439
*
@@ -438,7 +456,8 @@ public final Storage.FinalizeWriteStreamResponse finalizeWriteStream(String name
438456

439457
// AUTO-GENERATED DOCUMENTATION AND METHOD.
440458
/**
441-
* Finalize a write stream so that no new data can be appended to the stream.
459+
* Finalize a write stream so that no new data can be appended to the stream. Finalize is not
460+
* supported on the '_default' stream.
442461
*
443462
* <p>Sample code:
444463
*
@@ -464,7 +483,8 @@ public final Storage.FinalizeWriteStreamResponse finalizeWriteStream(
464483

465484
// AUTO-GENERATED DOCUMENTATION AND METHOD.
466485
/**
467-
* Finalize a write stream so that no new data can be appended to the stream.
486+
* Finalize a write stream so that no new data can be appended to the stream. Finalize is not
487+
* supported on the '_default' stream.
468488
*
469489
* <p>Sample code:
470490
*
@@ -603,7 +623,7 @@ public final Storage.BatchCommitWriteStreamsResponse batchCommitWriteStreams(
603623
* Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush
604624
* operation is required in order for the rows to become available for reading. A Flush operation
605625
* flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in
606-
* the request.
626+
* the request. Flush is not supported on the _default stream, since it is not BUFFERED.
607627
*
608628
* <p>Sample code:
609629
*
@@ -631,7 +651,7 @@ public final Storage.FlushRowsResponse flushRows(WriteStreamName writeStream) {
631651
* Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush
632652
* operation is required in order for the rows to become available for reading. A Flush operation
633653
* flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in
634-
* the request.
654+
* the request. Flush is not supported on the _default stream, since it is not BUFFERED.
635655
*
636656
* <p>Sample code:
637657
*
@@ -657,7 +677,7 @@ public final Storage.FlushRowsResponse flushRows(String writeStream) {
657677
* Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush
658678
* operation is required in order for the rows to become available for reading. A Flush operation
659679
* flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in
660-
* the request.
680+
* the request. Flush is not supported on the _default stream, since it is not BUFFERED.
661681
*
662682
* <p>Sample code:
663683
*
@@ -685,7 +705,7 @@ public final Storage.FlushRowsResponse flushRows(Storage.FlushRowsRequest reques
685705
* Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush
686706
* operation is required in order for the rows to become available for reading. A Flush operation
687707
* flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in
688-
* the request.
708+
* the request. Flush is not supported on the _default stream, since it is not BUFFERED.
689709
*
690710
* <p>Sample code:
691711
*

grpc-google-cloud-bigquerystorage-v1alpha2/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteGrpc.java

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@javax.annotation.Generated(
2929
value = "by gRPC proto compiler",
3030
comments = "Source: google/cloud/bigquery/storage/v1alpha2/storage.proto")
31+
@java.lang.Deprecated
3132
public final class BigQueryWriteGrpc {
3233

3334
private BigQueryWriteGrpc() {}
@@ -378,13 +379,19 @@ public BigQueryWriteFutureStub newStub(
378379
* The Write API can be used to write data to BigQuery.
379380
* </pre>
380381
*/
382+
@java.lang.Deprecated
381383
public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService {
382384

383385
/**
384386
*
385387
*
386388
* <pre>
387389
* Creates a write stream to the given table.
390+
* Additionally, every table has a special COMMITTED stream named '_default'
391+
* to which data can be written. This stream doesn't need to be created using
392+
* CreateWriteStream. It is a stream that can be used simultaneously by any
393+
* number of clients. Data written to this stream is considered committed as
394+
* soon as an acknowledgement is received.
388395
* </pre>
389396
*/
390397
public void createWriteStream(
@@ -447,7 +454,7 @@ public void getWriteStream(
447454
*
448455
* <pre>
449456
* Finalize a write stream so that no new data can be appended to the
450-
* stream.
457+
* stream. Finalize is not supported on the '_default' stream.
451458
* </pre>
452459
*/
453460
public void finalizeWriteStream(
@@ -488,6 +495,7 @@ public void batchCommitWriteStreams(
488495
* required in order for the rows to become available for reading. A
489496
* Flush operation flushes up to any previously flushed offset in a BUFFERED
490497
* stream, to the offset specified in the request.
498+
* Flush is not supported on the _default stream, since it is not BUFFERED.
491499
* </pre>
492500
*/
493501
public void flushRows(
@@ -557,6 +565,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
557565
* The Write API can be used to write data to BigQuery.
558566
* </pre>
559567
*/
568+
@java.lang.Deprecated
560569
public static final class BigQueryWriteStub
561570
extends io.grpc.stub.AbstractAsyncStub<BigQueryWriteStub> {
562571
private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -573,6 +582,11 @@ protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions c
573582
*
574583
* <pre>
575584
* Creates a write stream to the given table.
585+
* Additionally, every table has a special COMMITTED stream named '_default'
586+
* to which data can be written. This stream doesn't need to be created using
587+
* CreateWriteStream. It is a stream that can be used simultaneously by any
588+
* number of clients. Data written to this stream is considered committed as
589+
* soon as an acknowledgement is received.
576590
* </pre>
577591
*/
578592
public void createWriteStream(
@@ -639,7 +653,7 @@ public void getWriteStream(
639653
*
640654
* <pre>
641655
* Finalize a write stream so that no new data can be appended to the
642-
* stream.
656+
* stream. Finalize is not supported on the '_default' stream.
643657
* </pre>
644658
*/
645659
public void finalizeWriteStream(
@@ -684,6 +698,7 @@ public void batchCommitWriteStreams(
684698
* required in order for the rows to become available for reading. A
685699
* Flush operation flushes up to any previously flushed offset in a BUFFERED
686700
* stream, to the offset specified in the request.
701+
* Flush is not supported on the _default stream, since it is not BUFFERED.
687702
* </pre>
688703
*/
689704
public void flushRows(
@@ -704,6 +719,7 @@ public void flushRows(
704719
* The Write API can be used to write data to BigQuery.
705720
* </pre>
706721
*/
722+
@java.lang.Deprecated
707723
public static final class BigQueryWriteBlockingStub
708724
extends io.grpc.stub.AbstractBlockingStub<BigQueryWriteBlockingStub> {
709725
private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -721,6 +737,11 @@ protected BigQueryWriteBlockingStub build(
721737
*
722738
* <pre>
723739
* Creates a write stream to the given table.
740+
* Additionally, every table has a special COMMITTED stream named '_default'
741+
* to which data can be written. This stream doesn't need to be created using
742+
* CreateWriteStream. It is a stream that can be used simultaneously by any
743+
* number of clients. Data written to this stream is considered committed as
744+
* soon as an acknowledgement is received.
724745
* </pre>
725746
*/
726747
public com.google.cloud.bigquery.storage.v1alpha2.Stream.WriteStream createWriteStream(
@@ -747,7 +768,7 @@ public com.google.cloud.bigquery.storage.v1alpha2.Stream.WriteStream getWriteStr
747768
*
748769
* <pre>
749770
* Finalize a write stream so that no new data can be appended to the
750-
* stream.
771+
* stream. Finalize is not supported on the '_default' stream.
751772
* </pre>
752773
*/
753774
public com.google.cloud.bigquery.storage.v1alpha2.Storage.FinalizeWriteStreamResponse
@@ -785,6 +806,7 @@ public com.google.cloud.bigquery.storage.v1alpha2.Stream.WriteStream getWriteStr
785806
* required in order for the rows to become available for reading. A
786807
* Flush operation flushes up to any previously flushed offset in a BUFFERED
787808
* stream, to the offset specified in the request.
809+
* Flush is not supported on the _default stream, since it is not BUFFERED.
788810
* </pre>
789811
*/
790812
public com.google.cloud.bigquery.storage.v1alpha2.Storage.FlushRowsResponse flushRows(
@@ -802,6 +824,7 @@ public com.google.cloud.bigquery.storage.v1alpha2.Storage.FlushRowsResponse flus
802824
* The Write API can be used to write data to BigQuery.
803825
* </pre>
804826
*/
827+
@java.lang.Deprecated
805828
public static final class BigQueryWriteFutureStub
806829
extends io.grpc.stub.AbstractFutureStub<BigQueryWriteFutureStub> {
807830
private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -819,6 +842,11 @@ protected BigQueryWriteFutureStub build(
819842
*
820843
* <pre>
821844
* Creates a write stream to the given table.
845+
* Additionally, every table has a special COMMITTED stream named '_default'
846+
* to which data can be written. This stream doesn't need to be created using
847+
* CreateWriteStream. It is a stream that can be used simultaneously by any
848+
* number of clients. Data written to this stream is considered committed as
849+
* soon as an acknowledgement is received.
822850
* </pre>
823851
*/
824852
public com.google.common.util.concurrent.ListenableFuture<
@@ -849,7 +877,7 @@ protected BigQueryWriteFutureStub build(
849877
*
850878
* <pre>
851879
* Finalize a write stream so that no new data can be appended to the
852-
* stream.
880+
* stream. Finalize is not supported on the '_default' stream.
853881
* </pre>
854882
*/
855883
public com.google.common.util.concurrent.ListenableFuture<
@@ -889,6 +917,7 @@ protected BigQueryWriteFutureStub build(
889917
* required in order for the rows to become available for reading. A
890918
* Flush operation flushes up to any previously flushed offset in a BUFFERED
891919
* stream, to the offset specified in the request.
920+
* Flush is not supported on the _default stream, since it is not BUFFERED.
892921
* </pre>
893922
*/
894923
public com.google.common.util.concurrent.ListenableFuture<

0 commit comments

Comments
 (0)