Skip to content

Commit 07d98ab

Browse files
docs: mark BigQueryWrite v1beta2 as deprecated (#2421)
* docs: mark BigQueryWrite v1beta2 as deprecated PiperOrigin-RevId: 610968688 Source-Link: googleapis/googleapis@8b91ac4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c742e2bbd6b8379c5e46c593d46ea8829e1a2106 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzc0MmUyYmJkNmI4Mzc5YzVlNDZjNTkzZDQ2ZWE4ODI5ZTFhMjEwNiJ9 * 🦉 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 5b000d0 commit 07d98ab

File tree

9 files changed

+294
-68
lines changed

9 files changed

+294
-68
lines changed

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

+49
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,11 @@
209209
* }</pre>
210210
*
211211
* <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.
212214
*/
213215
@BetaApi
216+
@Deprecated
214217
@Generated("by gapic-generator-java")
215218
public class BigQueryWriteClient implements BackgroundResource {
216219
private final BigQueryWriteSettings settings;
@@ -288,7 +291,9 @@ public BigQueryWriteStub getStub() {
288291
* `projects/{project}/datasets/{dataset}/tables/{table}`.
289292
* @param writeStream Required. Stream to be created.
290293
* @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.
291295
*/
296+
@Deprecated
292297
public final WriteStream createWriteStream(TableName parent, WriteStream writeStream) {
293298
CreateWriteStreamRequest request =
294299
CreateWriteStreamRequest.newBuilder()
@@ -325,7 +330,9 @@ public final WriteStream createWriteStream(TableName parent, WriteStream writeSt
325330
* `projects/{project}/datasets/{dataset}/tables/{table}`.
326331
* @param writeStream Required. Stream to be created.
327332
* @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.
328334
*/
335+
@Deprecated
329336
public final WriteStream createWriteStream(String parent, WriteStream writeStream) {
330337
CreateWriteStreamRequest request =
331338
CreateWriteStreamRequest.newBuilder().setParent(parent).setWriteStream(writeStream).build();
@@ -360,7 +367,9 @@ public final WriteStream createWriteStream(String parent, WriteStream writeStrea
360367
*
361368
* @param request The request object containing all of the parameters for the API call.
362369
* @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.
363371
*/
372+
@Deprecated
364373
public final WriteStream createWriteStream(CreateWriteStreamRequest request) {
365374
return createWriteStreamCallable().call(request);
366375
}
@@ -393,7 +402,10 @@ public final WriteStream createWriteStream(CreateWriteStreamRequest request) {
393402
* WriteStream response = future.get();
394403
* }
395404
* }</pre>
405+
*
406+
* @deprecated This method is deprecated and will be removed in the next major version update.
396407
*/
408+
@Deprecated
397409
public final UnaryCallable<CreateWriteStreamRequest, WriteStream> createWriteStreamCallable() {
398410
return stub.createWriteStreamCallable();
399411
}
@@ -441,7 +453,10 @@ public final UnaryCallable<CreateWriteStreamRequest, WriteStream> createWriteStr
441453
* }
442454
* }
443455
* }</pre>
456+
*
457+
* @deprecated This method is deprecated and will be removed in the next major version update.
444458
*/
459+
@Deprecated
445460
public final BidiStreamingCallable<AppendRowsRequest, AppendRowsResponse> appendRowsCallable() {
446461
return stub.appendRowsCallable();
447462
}
@@ -467,7 +482,9 @@ public final BidiStreamingCallable<AppendRowsRequest, AppendRowsResponse> append
467482
* @param name Required. Name of the stream to get, in the form of
468483
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
469484
* @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.
470486
*/
487+
@Deprecated
471488
public final WriteStream getWriteStream(WriteStreamName name) {
472489
GetWriteStreamRequest request =
473490
GetWriteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build();
@@ -495,7 +512,9 @@ public final WriteStream getWriteStream(WriteStreamName name) {
495512
* @param name Required. Name of the stream to get, in the form of
496513
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
497514
* @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.
498516
*/
517+
@Deprecated
499518
public final WriteStream getWriteStream(String name) {
500519
GetWriteStreamRequest request = GetWriteStreamRequest.newBuilder().setName(name).build();
501520
return getWriteStream(request);
@@ -525,7 +544,9 @@ public final WriteStream getWriteStream(String name) {
525544
*
526545
* @param request The request object containing all of the parameters for the API call.
527546
* @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.
528548
*/
549+
@Deprecated
529550
public final WriteStream getWriteStream(GetWriteStreamRequest request) {
530551
return getWriteStreamCallable().call(request);
531552
}
@@ -554,7 +575,10 @@ public final WriteStream getWriteStream(GetWriteStreamRequest request) {
554575
* WriteStream response = future.get();
555576
* }
556577
* }</pre>
578+
*
579+
* @deprecated This method is deprecated and will be removed in the next major version update.
557580
*/
581+
@Deprecated
558582
public final UnaryCallable<GetWriteStreamRequest, WriteStream> getWriteStreamCallable() {
559583
return stub.getWriteStreamCallable();
560584
}
@@ -581,7 +605,9 @@ public final UnaryCallable<GetWriteStreamRequest, WriteStream> getWriteStreamCal
581605
* @param name Required. Name of the stream to finalize, in the form of
582606
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
583607
* @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.
584609
*/
610+
@Deprecated
585611
public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName name) {
586612
FinalizeWriteStreamRequest request =
587613
FinalizeWriteStreamRequest.newBuilder()
@@ -612,7 +638,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName nam
612638
* @param name Required. Name of the stream to finalize, in the form of
613639
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
614640
* @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.
615642
*/
643+
@Deprecated
616644
public final FinalizeWriteStreamResponse finalizeWriteStream(String name) {
617645
FinalizeWriteStreamRequest request =
618646
FinalizeWriteStreamRequest.newBuilder().setName(name).build();
@@ -644,7 +672,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(String name) {
644672
*
645673
* @param request The request object containing all of the parameters for the API call.
646674
* @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.
647676
*/
677+
@Deprecated
648678
public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStreamRequest request) {
649679
return finalizeWriteStreamCallable().call(request);
650680
}
@@ -674,7 +704,10 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
674704
* FinalizeWriteStreamResponse response = future.get();
675705
* }
676706
* }</pre>
707+
*
708+
* @deprecated This method is deprecated and will be removed in the next major version update.
677709
*/
710+
@Deprecated
678711
public final UnaryCallable<FinalizeWriteStreamRequest, FinalizeWriteStreamResponse>
679712
finalizeWriteStreamCallable() {
680713
return stub.finalizeWriteStreamCallable();
@@ -704,7 +737,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
704737
* @param parent Required. Parent table that all the streams should belong to, in the form of
705738
* `projects/{project}/datasets/{dataset}/tables/{table}`.
706739
* @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.
707741
*/
742+
@Deprecated
708743
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(String parent) {
709744
BatchCommitWriteStreamsRequest request =
710745
BatchCommitWriteStreamsRequest.newBuilder().setParent(parent).build();
@@ -738,7 +773,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(String pare
738773
*
739774
* @param request The request object containing all of the parameters for the API call.
740775
* @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.
741777
*/
778+
@Deprecated
742779
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
743780
BatchCommitWriteStreamsRequest request) {
744781
return batchCommitWriteStreamsCallable().call(request);
@@ -770,7 +807,10 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
770807
* BatchCommitWriteStreamsResponse response = future.get();
771808
* }
772809
* }</pre>
810+
*
811+
* @deprecated This method is deprecated and will be removed in the next major version update.
773812
*/
813+
@Deprecated
774814
public final UnaryCallable<BatchCommitWriteStreamsRequest, BatchCommitWriteStreamsResponse>
775815
batchCommitWriteStreamsCallable() {
776816
return stub.batchCommitWriteStreamsCallable();
@@ -800,7 +840,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
800840
*
801841
* @param writeStream Required. The stream that is the target of the flush operation.
802842
* @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.
803844
*/
845+
@Deprecated
804846
public final FlushRowsResponse flushRows(WriteStreamName writeStream) {
805847
FlushRowsRequest request =
806848
FlushRowsRequest.newBuilder()
@@ -833,7 +875,9 @@ public final FlushRowsResponse flushRows(WriteStreamName writeStream) {
833875
*
834876
* @param writeStream Required. The stream that is the target of the flush operation.
835877
* @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.
836879
*/
880+
@Deprecated
837881
public final FlushRowsResponse flushRows(String writeStream) {
838882
FlushRowsRequest request = FlushRowsRequest.newBuilder().setWriteStream(writeStream).build();
839883
return flushRows(request);
@@ -867,7 +911,9 @@ public final FlushRowsResponse flushRows(String writeStream) {
867911
*
868912
* @param request The request object containing all of the parameters for the API call.
869913
* @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.
870915
*/
916+
@Deprecated
871917
public final FlushRowsResponse flushRows(FlushRowsRequest request) {
872918
return flushRowsCallable().call(request);
873919
}
@@ -900,7 +946,10 @@ public final FlushRowsResponse flushRows(FlushRowsRequest request) {
900946
* FlushRowsResponse response = future.get();
901947
* }
902948
* }</pre>
949+
*
950+
* @deprecated This method is deprecated and will be removed in the next major version update.
903951
*/
952+
@Deprecated
904953
public final UnaryCallable<FlushRowsRequest, FlushRowsResponse> flushRowsCallable() {
905954
return stub.flushRowsCallable();
906955
}

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java

+75-12
Original file line numberDiff line numberDiff line change
@@ -68,39 +68,72 @@
6868
* .build());
6969
* BigQueryWriteSettings bigQueryWriteSettings = bigQueryWriteSettingsBuilder.build();
7070
* }</pre>
71+
*
72+
* @deprecated This class is deprecated and will be removed in the next major version update.
7173
*/
7274
@BetaApi
75+
@Deprecated
7376
@Generated("by gapic-generator-java")
7477
public class BigQueryWriteSettings extends ClientSettings<BigQueryWriteSettings> {
7578

76-
/** Returns the object with the settings used for calls to createWriteStream. */
79+
/**
80+
* Returns the object with the settings used for calls to createWriteStream.
81+
*
82+
* @deprecated This method is deprecated and will be removed in the next major version update.
83+
*/
84+
@Deprecated
7785
public UnaryCallSettings<CreateWriteStreamRequest, WriteStream> createWriteStreamSettings() {
7886
return ((BigQueryWriteStubSettings) getStubSettings()).createWriteStreamSettings();
7987
}
8088

81-
/** Returns the object with the settings used for calls to appendRows. */
89+
/**
90+
* Returns the object with the settings used for calls to appendRows.
91+
*
92+
* @deprecated This method is deprecated and will be removed in the next major version update.
93+
*/
94+
@Deprecated
8295
public StreamingCallSettings<AppendRowsRequest, AppendRowsResponse> appendRowsSettings() {
8396
return ((BigQueryWriteStubSettings) getStubSettings()).appendRowsSettings();
8497
}
8598

86-
/** Returns the object with the settings used for calls to getWriteStream. */
99+
/**
100+
* Returns the object with the settings used for calls to getWriteStream.
101+
*
102+
* @deprecated This method is deprecated and will be removed in the next major version update.
103+
*/
104+
@Deprecated
87105
public UnaryCallSettings<GetWriteStreamRequest, WriteStream> getWriteStreamSettings() {
88106
return ((BigQueryWriteStubSettings) getStubSettings()).getWriteStreamSettings();
89107
}
90108

91-
/** Returns the object with the settings used for calls to finalizeWriteStream. */
109+
/**
110+
* Returns the object with the settings used for calls to finalizeWriteStream.
111+
*
112+
* @deprecated This method is deprecated and will be removed in the next major version update.
113+
*/
114+
@Deprecated
92115
public UnaryCallSettings<FinalizeWriteStreamRequest, FinalizeWriteStreamResponse>
93116
finalizeWriteStreamSettings() {
94117
return ((BigQueryWriteStubSettings) getStubSettings()).finalizeWriteStreamSettings();
95118
}
96119

97-
/** Returns the object with the settings used for calls to batchCommitWriteStreams. */
120+
/**
121+
* Returns the object with the settings used for calls to batchCommitWriteStreams.
122+
*
123+
* @deprecated This method is deprecated and will be removed in the next major version update.
124+
*/
125+
@Deprecated
98126
public UnaryCallSettings<BatchCommitWriteStreamsRequest, BatchCommitWriteStreamsResponse>
99127
batchCommitWriteStreamsSettings() {
100128
return ((BigQueryWriteStubSettings) getStubSettings()).batchCommitWriteStreamsSettings();
101129
}
102130

103-
/** Returns the object with the settings used for calls to flushRows. */
131+
/**
132+
* Returns the object with the settings used for calls to flushRows.
133+
*
134+
* @deprecated This method is deprecated and will be removed in the next major version update.
135+
*/
136+
@Deprecated
104137
public UnaryCallSettings<FlushRowsRequest, FlushRowsResponse> flushRowsSettings() {
105138
return ((BigQueryWriteStubSettings) getStubSettings()).flushRowsSettings();
106139
}
@@ -201,37 +234,67 @@ public Builder applyToAllUnaryMethods(
201234
return this;
202235
}
203236

204-
/** Returns the builder for the settings used for calls to createWriteStream. */
237+
/**
238+
* Returns the builder for the settings used for calls to createWriteStream.
239+
*
240+
* @deprecated This method is deprecated and will be removed in the next major version update.
241+
*/
242+
@Deprecated
205243
public UnaryCallSettings.Builder<CreateWriteStreamRequest, WriteStream>
206244
createWriteStreamSettings() {
207245
return getStubSettingsBuilder().createWriteStreamSettings();
208246
}
209247

210-
/** Returns the builder for the settings used for calls to appendRows. */
248+
/**
249+
* Returns the builder for the settings used for calls to appendRows.
250+
*
251+
* @deprecated This method is deprecated and will be removed in the next major version update.
252+
*/
253+
@Deprecated
211254
public StreamingCallSettings.Builder<AppendRowsRequest, AppendRowsResponse>
212255
appendRowsSettings() {
213256
return getStubSettingsBuilder().appendRowsSettings();
214257
}
215258

216-
/** Returns the builder for the settings used for calls to getWriteStream. */
259+
/**
260+
* Returns the builder for the settings used for calls to getWriteStream.
261+
*
262+
* @deprecated This method is deprecated and will be removed in the next major version update.
263+
*/
264+
@Deprecated
217265
public UnaryCallSettings.Builder<GetWriteStreamRequest, WriteStream> getWriteStreamSettings() {
218266
return getStubSettingsBuilder().getWriteStreamSettings();
219267
}
220268

221-
/** Returns the builder for the settings used for calls to finalizeWriteStream. */
269+
/**
270+
* Returns the builder for the settings used for calls to finalizeWriteStream.
271+
*
272+
* @deprecated This method is deprecated and will be removed in the next major version update.
273+
*/
274+
@Deprecated
222275
public UnaryCallSettings.Builder<FinalizeWriteStreamRequest, FinalizeWriteStreamResponse>
223276
finalizeWriteStreamSettings() {
224277
return getStubSettingsBuilder().finalizeWriteStreamSettings();
225278
}
226279

227-
/** Returns the builder for the settings used for calls to batchCommitWriteStreams. */
280+
/**
281+
* Returns the builder for the settings used for calls to batchCommitWriteStreams.
282+
*
283+
* @deprecated This method is deprecated and will be removed in the next major version update.
284+
*/
285+
@Deprecated
228286
public UnaryCallSettings.Builder<
229287
BatchCommitWriteStreamsRequest, BatchCommitWriteStreamsResponse>
230288
batchCommitWriteStreamsSettings() {
231289
return getStubSettingsBuilder().batchCommitWriteStreamsSettings();
232290
}
233291

234-
/** Returns the builder for the settings used for calls to flushRows. */
292+
/**
293+
* Returns the builder for the settings used for calls to flushRows.
294+
*
295+
* @deprecated This method is deprecated and will be removed in the next major version update.
296+
*/
297+
@Deprecated
235298
public UnaryCallSettings.Builder<FlushRowsRequest, FlushRowsResponse> flushRowsSettings() {
236299
return getStubSettingsBuilder().flushRowsSettings();
237300
}

0 commit comments

Comments
 (0)