209
209
* }</pre>
210
210
*
211
211
* <p>Please refer to the GitHub repository's samples for more quickstart code snippets.
212
+ *
213
+ * @deprecated This class is deprecated and will be removed in the next major version update.
212
214
*/
213
215
@ BetaApi
216
+ @ Deprecated
214
217
@ Generated ("by gapic-generator-java" )
215
218
public class BigQueryWriteClient implements BackgroundResource {
216
219
private final BigQueryWriteSettings settings ;
@@ -288,7 +291,9 @@ public BigQueryWriteStub getStub() {
288
291
* `projects/{project}/datasets/{dataset}/tables/{table}`.
289
292
* @param writeStream Required. Stream to be created.
290
293
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
294
+ * @deprecated This method is deprecated and will be removed in the next major version update.
291
295
*/
296
+ @ Deprecated
292
297
public final WriteStream createWriteStream (TableName parent , WriteStream writeStream ) {
293
298
CreateWriteStreamRequest request =
294
299
CreateWriteStreamRequest .newBuilder ()
@@ -325,7 +330,9 @@ public final WriteStream createWriteStream(TableName parent, WriteStream writeSt
325
330
* `projects/{project}/datasets/{dataset}/tables/{table}`.
326
331
* @param writeStream Required. Stream to be created.
327
332
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
333
+ * @deprecated This method is deprecated and will be removed in the next major version update.
328
334
*/
335
+ @ Deprecated
329
336
public final WriteStream createWriteStream (String parent , WriteStream writeStream ) {
330
337
CreateWriteStreamRequest request =
331
338
CreateWriteStreamRequest .newBuilder ().setParent (parent ).setWriteStream (writeStream ).build ();
@@ -360,7 +367,9 @@ public final WriteStream createWriteStream(String parent, WriteStream writeStrea
360
367
*
361
368
* @param request The request object containing all of the parameters for the API call.
362
369
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
370
+ * @deprecated This method is deprecated and will be removed in the next major version update.
363
371
*/
372
+ @ Deprecated
364
373
public final WriteStream createWriteStream (CreateWriteStreamRequest request ) {
365
374
return createWriteStreamCallable ().call (request );
366
375
}
@@ -393,7 +402,10 @@ public final WriteStream createWriteStream(CreateWriteStreamRequest request) {
393
402
* WriteStream response = future.get();
394
403
* }
395
404
* }</pre>
405
+ *
406
+ * @deprecated This method is deprecated and will be removed in the next major version update.
396
407
*/
408
+ @ Deprecated
397
409
public final UnaryCallable <CreateWriteStreamRequest , WriteStream > createWriteStreamCallable () {
398
410
return stub .createWriteStreamCallable ();
399
411
}
@@ -441,7 +453,10 @@ public final UnaryCallable<CreateWriteStreamRequest, WriteStream> createWriteStr
441
453
* }
442
454
* }
443
455
* }</pre>
456
+ *
457
+ * @deprecated This method is deprecated and will be removed in the next major version update.
444
458
*/
459
+ @ Deprecated
445
460
public final BidiStreamingCallable <AppendRowsRequest , AppendRowsResponse > appendRowsCallable () {
446
461
return stub .appendRowsCallable ();
447
462
}
@@ -467,7 +482,9 @@ public final BidiStreamingCallable<AppendRowsRequest, AppendRowsResponse> append
467
482
* @param name Required. Name of the stream to get, in the form of
468
483
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
469
484
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
485
+ * @deprecated This method is deprecated and will be removed in the next major version update.
470
486
*/
487
+ @ Deprecated
471
488
public final WriteStream getWriteStream (WriteStreamName name ) {
472
489
GetWriteStreamRequest request =
473
490
GetWriteStreamRequest .newBuilder ().setName (name == null ? null : name .toString ()).build ();
@@ -495,7 +512,9 @@ public final WriteStream getWriteStream(WriteStreamName name) {
495
512
* @param name Required. Name of the stream to get, in the form of
496
513
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
497
514
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
515
+ * @deprecated This method is deprecated and will be removed in the next major version update.
498
516
*/
517
+ @ Deprecated
499
518
public final WriteStream getWriteStream (String name ) {
500
519
GetWriteStreamRequest request = GetWriteStreamRequest .newBuilder ().setName (name ).build ();
501
520
return getWriteStream (request );
@@ -525,7 +544,9 @@ public final WriteStream getWriteStream(String name) {
525
544
*
526
545
* @param request The request object containing all of the parameters for the API call.
527
546
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
547
+ * @deprecated This method is deprecated and will be removed in the next major version update.
528
548
*/
549
+ @ Deprecated
529
550
public final WriteStream getWriteStream (GetWriteStreamRequest request ) {
530
551
return getWriteStreamCallable ().call (request );
531
552
}
@@ -554,7 +575,10 @@ public final WriteStream getWriteStream(GetWriteStreamRequest request) {
554
575
* WriteStream response = future.get();
555
576
* }
556
577
* }</pre>
578
+ *
579
+ * @deprecated This method is deprecated and will be removed in the next major version update.
557
580
*/
581
+ @ Deprecated
558
582
public final UnaryCallable <GetWriteStreamRequest , WriteStream > getWriteStreamCallable () {
559
583
return stub .getWriteStreamCallable ();
560
584
}
@@ -581,7 +605,9 @@ public final UnaryCallable<GetWriteStreamRequest, WriteStream> getWriteStreamCal
581
605
* @param name Required. Name of the stream to finalize, in the form of
582
606
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
583
607
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
608
+ * @deprecated This method is deprecated and will be removed in the next major version update.
584
609
*/
610
+ @ Deprecated
585
611
public final FinalizeWriteStreamResponse finalizeWriteStream (WriteStreamName name ) {
586
612
FinalizeWriteStreamRequest request =
587
613
FinalizeWriteStreamRequest .newBuilder ()
@@ -612,7 +638,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName nam
612
638
* @param name Required. Name of the stream to finalize, in the form of
613
639
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
614
640
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
641
+ * @deprecated This method is deprecated and will be removed in the next major version update.
615
642
*/
643
+ @ Deprecated
616
644
public final FinalizeWriteStreamResponse finalizeWriteStream (String name ) {
617
645
FinalizeWriteStreamRequest request =
618
646
FinalizeWriteStreamRequest .newBuilder ().setName (name ).build ();
@@ -644,7 +672,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(String name) {
644
672
*
645
673
* @param request The request object containing all of the parameters for the API call.
646
674
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
675
+ * @deprecated This method is deprecated and will be removed in the next major version update.
647
676
*/
677
+ @ Deprecated
648
678
public final FinalizeWriteStreamResponse finalizeWriteStream (FinalizeWriteStreamRequest request ) {
649
679
return finalizeWriteStreamCallable ().call (request );
650
680
}
@@ -674,7 +704,10 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
674
704
* FinalizeWriteStreamResponse response = future.get();
675
705
* }
676
706
* }</pre>
707
+ *
708
+ * @deprecated This method is deprecated and will be removed in the next major version update.
677
709
*/
710
+ @ Deprecated
678
711
public final UnaryCallable <FinalizeWriteStreamRequest , FinalizeWriteStreamResponse >
679
712
finalizeWriteStreamCallable () {
680
713
return stub .finalizeWriteStreamCallable ();
@@ -704,7 +737,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
704
737
* @param parent Required. Parent table that all the streams should belong to, in the form of
705
738
* `projects/{project}/datasets/{dataset}/tables/{table}`.
706
739
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
740
+ * @deprecated This method is deprecated and will be removed in the next major version update.
707
741
*/
742
+ @ Deprecated
708
743
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams (String parent ) {
709
744
BatchCommitWriteStreamsRequest request =
710
745
BatchCommitWriteStreamsRequest .newBuilder ().setParent (parent ).build ();
@@ -738,7 +773,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(String pare
738
773
*
739
774
* @param request The request object containing all of the parameters for the API call.
740
775
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
776
+ * @deprecated This method is deprecated and will be removed in the next major version update.
741
777
*/
778
+ @ Deprecated
742
779
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams (
743
780
BatchCommitWriteStreamsRequest request ) {
744
781
return batchCommitWriteStreamsCallable ().call (request );
@@ -770,7 +807,10 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
770
807
* BatchCommitWriteStreamsResponse response = future.get();
771
808
* }
772
809
* }</pre>
810
+ *
811
+ * @deprecated This method is deprecated and will be removed in the next major version update.
773
812
*/
813
+ @ Deprecated
774
814
public final UnaryCallable <BatchCommitWriteStreamsRequest , BatchCommitWriteStreamsResponse >
775
815
batchCommitWriteStreamsCallable () {
776
816
return stub .batchCommitWriteStreamsCallable ();
@@ -800,7 +840,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
800
840
*
801
841
* @param writeStream Required. The stream that is the target of the flush operation.
802
842
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
843
+ * @deprecated This method is deprecated and will be removed in the next major version update.
803
844
*/
845
+ @ Deprecated
804
846
public final FlushRowsResponse flushRows (WriteStreamName writeStream ) {
805
847
FlushRowsRequest request =
806
848
FlushRowsRequest .newBuilder ()
@@ -833,7 +875,9 @@ public final FlushRowsResponse flushRows(WriteStreamName writeStream) {
833
875
*
834
876
* @param writeStream Required. The stream that is the target of the flush operation.
835
877
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
878
+ * @deprecated This method is deprecated and will be removed in the next major version update.
836
879
*/
880
+ @ Deprecated
837
881
public final FlushRowsResponse flushRows (String writeStream ) {
838
882
FlushRowsRequest request = FlushRowsRequest .newBuilder ().setWriteStream (writeStream ).build ();
839
883
return flushRows (request );
@@ -867,7 +911,9 @@ public final FlushRowsResponse flushRows(String writeStream) {
867
911
*
868
912
* @param request The request object containing all of the parameters for the API call.
869
913
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
914
+ * @deprecated This method is deprecated and will be removed in the next major version update.
870
915
*/
916
+ @ Deprecated
871
917
public final FlushRowsResponse flushRows (FlushRowsRequest request ) {
872
918
return flushRowsCallable ().call (request );
873
919
}
@@ -900,7 +946,10 @@ public final FlushRowsResponse flushRows(FlushRowsRequest request) {
900
946
* FlushRowsResponse response = future.get();
901
947
* }
902
948
* }</pre>
949
+ *
950
+ * @deprecated This method is deprecated and will be removed in the next major version update.
903
951
*/
952
+ @ Deprecated
904
953
public final UnaryCallable <FlushRowsRequest , FlushRowsResponse > flushRowsCallable () {
905
954
return stub .flushRowsCallable ();
906
955
}
0 commit comments