diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java
index 7862cf3241..313f70e1dc 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java
@@ -209,8 +209,11 @@
* }
*
*
Please refer to the GitHub repository's samples for more quickstart code snippets.
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public class BigQueryWriteClient implements BackgroundResource {
private final BigQueryWriteSettings settings;
@@ -288,7 +291,9 @@ public BigQueryWriteStub getStub() {
* `projects/{project}/datasets/{dataset}/tables/{table}`.
* @param writeStream Required. Stream to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream createWriteStream(TableName parent, WriteStream writeStream) {
CreateWriteStreamRequest request =
CreateWriteStreamRequest.newBuilder()
@@ -325,7 +330,9 @@ public final WriteStream createWriteStream(TableName parent, WriteStream writeSt
* `projects/{project}/datasets/{dataset}/tables/{table}`.
* @param writeStream Required. Stream to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream createWriteStream(String parent, WriteStream writeStream) {
CreateWriteStreamRequest request =
CreateWriteStreamRequest.newBuilder().setParent(parent).setWriteStream(writeStream).build();
@@ -360,7 +367,9 @@ public final WriteStream createWriteStream(String parent, WriteStream writeStrea
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream createWriteStream(CreateWriteStreamRequest request) {
return createWriteStreamCallable().call(request);
}
@@ -393,7 +402,10 @@ public final WriteStream createWriteStream(CreateWriteStreamRequest request) {
* WriteStream response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable createWriteStreamCallable() {
return stub.createWriteStreamCallable();
}
@@ -441,7 +453,10 @@ public final UnaryCallable createWriteStr
* }
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final BidiStreamingCallable appendRowsCallable() {
return stub.appendRowsCallable();
}
@@ -467,7 +482,9 @@ public final BidiStreamingCallable append
* @param name Required. Name of the stream to get, in the form of
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream getWriteStream(WriteStreamName name) {
GetWriteStreamRequest request =
GetWriteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build();
@@ -495,7 +512,9 @@ public final WriteStream getWriteStream(WriteStreamName name) {
* @param name Required. Name of the stream to get, in the form of
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream getWriteStream(String name) {
GetWriteStreamRequest request = GetWriteStreamRequest.newBuilder().setName(name).build();
return getWriteStream(request);
@@ -525,7 +544,9 @@ public final WriteStream getWriteStream(String name) {
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final WriteStream getWriteStream(GetWriteStreamRequest request) {
return getWriteStreamCallable().call(request);
}
@@ -554,7 +575,10 @@ public final WriteStream getWriteStream(GetWriteStreamRequest request) {
* WriteStream response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable getWriteStreamCallable() {
return stub.getWriteStreamCallable();
}
@@ -581,7 +605,9 @@ public final UnaryCallable getWriteStreamCal
* @param name Required. Name of the stream to finalize, in the form of
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName name) {
FinalizeWriteStreamRequest request =
FinalizeWriteStreamRequest.newBuilder()
@@ -612,7 +638,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName nam
* @param name Required. Name of the stream to finalize, in the form of
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FinalizeWriteStreamResponse finalizeWriteStream(String name) {
FinalizeWriteStreamRequest request =
FinalizeWriteStreamRequest.newBuilder().setName(name).build();
@@ -644,7 +672,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(String name) {
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStreamRequest request) {
return finalizeWriteStreamCallable().call(request);
}
@@ -674,7 +704,10 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
* FinalizeWriteStreamResponse response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable
finalizeWriteStreamCallable() {
return stub.finalizeWriteStreamCallable();
@@ -704,7 +737,9 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream
* @param parent Required. Parent table that all the streams should belong to, in the form of
* `projects/{project}/datasets/{dataset}/tables/{table}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(String parent) {
BatchCommitWriteStreamsRequest request =
BatchCommitWriteStreamsRequest.newBuilder().setParent(parent).build();
@@ -738,7 +773,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(String pare
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
BatchCommitWriteStreamsRequest request) {
return batchCommitWriteStreamsCallable().call(request);
@@ -770,7 +807,10 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
* BatchCommitWriteStreamsResponse response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable
batchCommitWriteStreamsCallable() {
return stub.batchCommitWriteStreamsCallable();
@@ -800,7 +840,9 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(
*
* @param writeStream Required. The stream that is the target of the flush operation.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FlushRowsResponse flushRows(WriteStreamName writeStream) {
FlushRowsRequest request =
FlushRowsRequest.newBuilder()
@@ -833,7 +875,9 @@ public final FlushRowsResponse flushRows(WriteStreamName writeStream) {
*
* @param writeStream Required. The stream that is the target of the flush operation.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FlushRowsResponse flushRows(String writeStream) {
FlushRowsRequest request = FlushRowsRequest.newBuilder().setWriteStream(writeStream).build();
return flushRows(request);
@@ -867,7 +911,9 @@ public final FlushRowsResponse flushRows(String writeStream) {
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final FlushRowsResponse flushRows(FlushRowsRequest request) {
return flushRowsCallable().call(request);
}
@@ -900,7 +946,10 @@ public final FlushRowsResponse flushRows(FlushRowsRequest request) {
* FlushRowsResponse response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable flushRowsCallable() {
return stub.flushRowsCallable();
}
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java
index 4d260be626..0aa5390c7e 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java
@@ -68,39 +68,72 @@
* .build());
* BigQueryWriteSettings bigQueryWriteSettings = bigQueryWriteSettingsBuilder.build();
* }
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public class BigQueryWriteSettings extends ClientSettings {
- /** Returns the object with the settings used for calls to createWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to createWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings createWriteStreamSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).createWriteStreamSettings();
}
- /** Returns the object with the settings used for calls to appendRows. */
+ /**
+ * Returns the object with the settings used for calls to appendRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public StreamingCallSettings appendRowsSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).appendRowsSettings();
}
- /** Returns the object with the settings used for calls to getWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to getWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings getWriteStreamSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).getWriteStreamSettings();
}
- /** Returns the object with the settings used for calls to finalizeWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to finalizeWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings
finalizeWriteStreamSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).finalizeWriteStreamSettings();
}
- /** Returns the object with the settings used for calls to batchCommitWriteStreams. */
+ /**
+ * Returns the object with the settings used for calls to batchCommitWriteStreams.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings
batchCommitWriteStreamsSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).batchCommitWriteStreamsSettings();
}
- /** Returns the object with the settings used for calls to flushRows. */
+ /**
+ * Returns the object with the settings used for calls to flushRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings flushRowsSettings() {
return ((BigQueryWriteStubSettings) getStubSettings()).flushRowsSettings();
}
@@ -201,37 +234,67 @@ public Builder applyToAllUnaryMethods(
return this;
}
- /** Returns the builder for the settings used for calls to createWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to createWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder
createWriteStreamSettings() {
return getStubSettingsBuilder().createWriteStreamSettings();
}
- /** Returns the builder for the settings used for calls to appendRows. */
+ /**
+ * Returns the builder for the settings used for calls to appendRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public StreamingCallSettings.Builder
appendRowsSettings() {
return getStubSettingsBuilder().appendRowsSettings();
}
- /** Returns the builder for the settings used for calls to getWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to getWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder getWriteStreamSettings() {
return getStubSettingsBuilder().getWriteStreamSettings();
}
- /** Returns the builder for the settings used for calls to finalizeWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to finalizeWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder
finalizeWriteStreamSettings() {
return getStubSettingsBuilder().finalizeWriteStreamSettings();
}
- /** Returns the builder for the settings used for calls to batchCommitWriteStreams. */
+ /**
+ * Returns the builder for the settings used for calls to batchCommitWriteStreams.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder<
BatchCommitWriteStreamsRequest, BatchCommitWriteStreamsResponse>
batchCommitWriteStreamsSettings() {
return getStubSettingsBuilder().batchCommitWriteStreamsSettings();
}
- /** Returns the builder for the settings used for calls to flushRows. */
+ /**
+ * Returns the builder for the settings used for calls to flushRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder flushRowsSettings() {
return getStubSettingsBuilder().flushRowsSettings();
}
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java
index ce1b295853..17915cbe61 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java
@@ -38,33 +38,42 @@
* Base stub class for the BigQueryWrite service API.
*
* This class is for advanced usage and reflects the underlying API directly.
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public abstract class BigQueryWriteStub implements BackgroundResource {
+ @Deprecated
public UnaryCallable createWriteStreamCallable() {
throw new UnsupportedOperationException("Not implemented: createWriteStreamCallable()");
}
+ @Deprecated
public BidiStreamingCallable appendRowsCallable() {
throw new UnsupportedOperationException("Not implemented: appendRowsCallable()");
}
+ @Deprecated
public UnaryCallable getWriteStreamCallable() {
throw new UnsupportedOperationException("Not implemented: getWriteStreamCallable()");
}
+ @Deprecated
public UnaryCallable
finalizeWriteStreamCallable() {
throw new UnsupportedOperationException("Not implemented: finalizeWriteStreamCallable()");
}
+ @Deprecated
public UnaryCallable
batchCommitWriteStreamsCallable() {
throw new UnsupportedOperationException("Not implemented: batchCommitWriteStreamsCallable()");
}
+ @Deprecated
public UnaryCallable flushRowsCallable() {
throw new UnsupportedOperationException("Not implemented: flushRowsCallable()");
}
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java
index 07c09518f9..44ee6b4a13 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java
@@ -89,8 +89,11 @@
* .build());
* BigQueryWriteStubSettings bigQueryWriteSettings = bigQueryWriteSettingsBuilder.build();
* }
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public class BigQueryWriteStubSettings extends StubSettings {
/** The default scopes of the service. */
@@ -110,34 +113,64 @@ public class BigQueryWriteStubSettings extends StubSettings flushRowsSettings;
- /** Returns the object with the settings used for calls to createWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to createWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings createWriteStreamSettings() {
return createWriteStreamSettings;
}
- /** Returns the object with the settings used for calls to appendRows. */
+ /**
+ * Returns the object with the settings used for calls to appendRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public StreamingCallSettings appendRowsSettings() {
return appendRowsSettings;
}
- /** Returns the object with the settings used for calls to getWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to getWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings getWriteStreamSettings() {
return getWriteStreamSettings;
}
- /** Returns the object with the settings used for calls to finalizeWriteStream. */
+ /**
+ * Returns the object with the settings used for calls to finalizeWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings
finalizeWriteStreamSettings() {
return finalizeWriteStreamSettings;
}
- /** Returns the object with the settings used for calls to batchCommitWriteStreams. */
+ /**
+ * Returns the object with the settings used for calls to batchCommitWriteStreams.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings
batchCommitWriteStreamsSettings() {
return batchCommitWriteStreamsSettings;
}
- /** Returns the object with the settings used for calls to flushRows. */
+ /**
+ * Returns the object with the settings used for calls to flushRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings flushRowsSettings() {
return flushRowsSettings;
}
@@ -420,37 +453,67 @@ public Builder applyToAllUnaryMethods(
return unaryMethodSettingsBuilders;
}
- /** Returns the builder for the settings used for calls to createWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to createWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder
createWriteStreamSettings() {
return createWriteStreamSettings;
}
- /** Returns the builder for the settings used for calls to appendRows. */
+ /**
+ * Returns the builder for the settings used for calls to appendRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public StreamingCallSettings.Builder
appendRowsSettings() {
return appendRowsSettings;
}
- /** Returns the builder for the settings used for calls to getWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to getWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder getWriteStreamSettings() {
return getWriteStreamSettings;
}
- /** Returns the builder for the settings used for calls to finalizeWriteStream. */
+ /**
+ * Returns the builder for the settings used for calls to finalizeWriteStream.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder
finalizeWriteStreamSettings() {
return finalizeWriteStreamSettings;
}
- /** Returns the builder for the settings used for calls to batchCommitWriteStreams. */
+ /**
+ * Returns the builder for the settings used for calls to batchCommitWriteStreams.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder<
BatchCommitWriteStreamsRequest, BatchCommitWriteStreamsResponse>
batchCommitWriteStreamsSettings() {
return batchCommitWriteStreamsSettings;
}
- /** Returns the builder for the settings used for calls to flushRows. */
+ /**
+ * Returns the builder for the settings used for calls to flushRows.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
+ */
+ @Deprecated
public UnaryCallSettings.Builder flushRowsSettings() {
return flushRowsSettings;
}
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java
index cd86f941ce..f80f249068 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java
@@ -41,8 +41,11 @@
* gRPC callable factory implementation for the BigQueryWrite service API.
*
* This class is for advanced usage.
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public class GrpcBigQueryWriteCallableFactory implements GrpcStubCallableFactory {
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java
index 2ec19ec94e..7939f97d9f 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java
@@ -48,8 +48,11 @@
* gRPC stub implementation for the BigQueryWrite service API.
*
*
This class is for advanced usage and reflects the underlying API directly.
+ *
+ * @deprecated This class is deprecated and will be removed in the next major version update.
*/
@BetaApi
+@Deprecated
@Generated("by gapic-generator-java")
public class GrpcBigQueryWriteStub extends BigQueryWriteStub {
private static final MethodDescriptor
diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
index 227edaa507..0332bffcf5 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
@@ -32,6 +32,7 @@
value = "by gRPC proto compiler",
comments = "Source: google/cloud/bigquery/storage/v1beta2/storage.proto")
@io.grpc.stub.annotations.GrpcGenerated
+@java.lang.Deprecated
public final class BigQueryWriteGrpc {
private BigQueryWriteGrpc() {}
@@ -378,6 +379,7 @@ public BigQueryWriteFutureStub newStub(
* should be used instead of the v1beta2 API for BigQueryWrite operations.
*
*/
+ @java.lang.Deprecated
public interface AsyncService {
/**
@@ -392,6 +394,7 @@ public interface AsyncService {
* soon as an acknowledgement is received.
*
*/
+ @java.lang.Deprecated
default void createWriteStream(
com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request,
io.grpc.stub.StreamObserver
@@ -422,6 +425,7 @@ default void createWriteStream(
* operations after the stream is committed.
*
*/
+ @java.lang.Deprecated
default io.grpc.stub.StreamObserver
appendRows(
io.grpc.stub.StreamObserver<
@@ -438,6 +442,7 @@ default void createWriteStream(
* Gets a write stream.
*
*/
+ @java.lang.Deprecated
default void getWriteStream(
com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request,
io.grpc.stub.StreamObserver
@@ -454,6 +459,7 @@ default void getWriteStream(
* stream. Finalize is not supported on the '_default' stream.
*
*/
+ @java.lang.Deprecated
default void finalizeWriteStream(
com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request,
io.grpc.stub.StreamObserver<
@@ -474,6 +480,7 @@ default void finalizeWriteStream(
* for read operations.
*
*/
+ @java.lang.Deprecated
default void batchCommitWriteStreams(
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request,
io.grpc.stub.StreamObserver<
@@ -495,6 +502,7 @@ default void batchCommitWriteStreams(
* Flush is not supported on the _default stream, since it is not BUFFERED.
*
*/
+ @java.lang.Deprecated
default void flushRows(
com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request,
io.grpc.stub.StreamObserver
@@ -514,6 +522,7 @@ default void flushRows(
* should be used instead of the v1beta2 API for BigQueryWrite operations.
*
*/
+ @java.lang.Deprecated
public abstract static class BigQueryWriteImplBase
implements io.grpc.BindableService, AsyncService {
@@ -534,6 +543,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
* should be used instead of the v1beta2 API for BigQueryWrite operations.
*
*/
+ @java.lang.Deprecated
public static final class BigQueryWriteStub
extends io.grpc.stub.AbstractAsyncStub {
private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -557,6 +567,7 @@ protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions c
* soon as an acknowledgement is received.
*
*/
+ @java.lang.Deprecated
public void createWriteStream(
com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request,
io.grpc.stub.StreamObserver
@@ -589,6 +600,7 @@ public void createWriteStream(
* operations after the stream is committed.
*
*/
+ @java.lang.Deprecated
public io.grpc.stub.StreamObserver
appendRows(
io.grpc.stub.StreamObserver<
@@ -605,6 +617,7 @@ public void createWriteStream(
* Gets a write stream.
*
*/
+ @java.lang.Deprecated
public void getWriteStream(
com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request,
io.grpc.stub.StreamObserver
@@ -623,6 +636,7 @@ public void getWriteStream(
* stream. Finalize is not supported on the '_default' stream.
*
*/
+ @java.lang.Deprecated
public void finalizeWriteStream(
com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request,
io.grpc.stub.StreamObserver<
@@ -645,6 +659,7 @@ public void finalizeWriteStream(
* for read operations.
*
*/
+ @java.lang.Deprecated
public void batchCommitWriteStreams(
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request,
io.grpc.stub.StreamObserver<
@@ -668,6 +683,7 @@ public void batchCommitWriteStreams(
* Flush is not supported on the _default stream, since it is not BUFFERED.
*
*/
+ @java.lang.Deprecated
public void flushRows(
com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request,
io.grpc.stub.StreamObserver
@@ -688,6 +704,7 @@ public void flushRows(
* should be used instead of the v1beta2 API for BigQueryWrite operations.
*
*/
+ @java.lang.Deprecated
public static final class BigQueryWriteBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -712,6 +729,7 @@ protected BigQueryWriteBlockingStub build(
* soon as an acknowledgement is received.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream(
com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
@@ -725,6 +743,7 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream(
* Gets a write stream.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(
com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
@@ -739,6 +758,7 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(
* stream. Finalize is not supported on the '_default' stream.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse
finalizeWriteStream(
com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) {
@@ -757,6 +777,7 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(
* for read operations.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
batchCommitWriteStreams(
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) {
@@ -776,6 +797,7 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(
* Flush is not supported on the _default stream, since it is not BUFFERED.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows(
com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
@@ -794,6 +816,7 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows(
* should be used instead of the v1beta2 API for BigQueryWrite operations.
*
*/
+ @java.lang.Deprecated
public static final class BigQueryWriteFutureStub
extends io.grpc.stub.AbstractFutureStub {
private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -818,6 +841,7 @@ protected BigQueryWriteFutureStub build(
* soon as an acknowledgement is received.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.bigquery.storage.v1beta2.WriteStream>
createWriteStream(
@@ -833,6 +857,7 @@ protected BigQueryWriteFutureStub build(
* Gets a write stream.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.bigquery.storage.v1beta2.WriteStream>
getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) {
@@ -848,6 +873,7 @@ protected BigQueryWriteFutureStub build(
* stream. Finalize is not supported on the '_default' stream.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>
finalizeWriteStream(
@@ -867,6 +893,7 @@ protected BigQueryWriteFutureStub build(
* for read operations.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>
batchCommitWriteStreams(
@@ -887,6 +914,7 @@ protected BigQueryWriteFutureStub build(
* Flush is not supported on the _default stream, since it is not BUFFERED.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>
flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) {
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java
index 003fa89d4b..9cd962f906 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java
@@ -235,50 +235,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst"
+ "orage.googleapis.com\322AWhttps://www.googl"
+ "eapis.com/auth/bigquery,https://www.goog"
- + "leapis.com/auth/cloud-platform2\226\014\n\rBigQu"
- + "eryWrite\022\346\001\n\021CreateWriteStream\022?.google."
+ + "leapis.com/auth/cloud-platform2\253\014\n\rBigQu"
+ + "eryWrite\022\351\001\n\021CreateWriteStream\022?.google."
+ "cloud.bigquery.storage.v1beta2.CreateWri"
+ "teStreamRequest\0322.google.cloud.bigquery."
- + "storage.v1beta2.WriteStream\"\\\332A\023parent,w"
- + "rite_stream\202\323\344\223\002@\"0/v1beta2/{parent=proj"
- + "ects/*/datasets/*/tables/*}:\014write_strea"
- + "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery"
- + ".storage.v1beta2.AppendRowsRequest\0329.goo"
- + "gle.cloud.bigquery.storage.v1beta2.Appen"
- + "dRowsResponse\"Z\332A\014write_stream\202\323\344\223\002E\"@/v"
- + "1beta2/{write_stream=projects/*/datasets"
- + "/*/tables/*/streams/*}:\001*(\0010\001\022\316\001\n\016GetWri"
- + "teStream\022<.google.cloud.bigquery.storage"
- + ".v1beta2.GetWriteStreamRequest\0322.google."
- + "cloud.bigquery.storage.v1beta2.WriteStre"
- + "am\"J\332A\004name\202\323\344\223\002=\"8/v1beta2/{name=projec"
- + "ts/*/datasets/*/tables/*/streams/*}:\001*\022\350"
- + "\001\n\023FinalizeWriteStream\022A.google.cloud.bi"
- + "gquery.storage.v1beta2.FinalizeWriteStre"
- + "amRequest\032B.google.cloud.bigquery.storag"
- + "e.v1beta2.FinalizeWriteStreamResponse\"J\332"
- + "A\004name\202\323\344\223\002=\"8/v1beta2/{name=projects/*/"
- + "datasets/*/tables/*/streams/*}:\001*\022\353\001\n\027Ba"
- + "tchCommitWriteStreams\022E.google.cloud.big"
- + "query.storage.v1beta2.BatchCommitWriteSt"
- + "reamsRequest\032F.google.cloud.bigquery.sto"
- + "rage.v1beta2.BatchCommitWriteStreamsResp"
- + "onse\"A\332A\006parent\202\323\344\223\0022\0220/v1beta2/{parent="
- + "projects/*/datasets/*/tables/*}\022\332\001\n\tFlus"
- + "hRows\0227.google.cloud.bigquery.storage.v1"
- + "beta2.FlushRowsRequest\0328.google.cloud.bi"
- + "gquery.storage.v1beta2.FlushRowsResponse"
- + "\"Z\332A\014write_stream\202\323\344\223\002E\"@/v1beta2/{write"
- + "_stream=projects/*/datasets/*/tables/*/s"
- + "treams/*}:\001*\032\260\001\312A\036bigquerystorage.google"
- + "apis.com\322A\213\001https://www.googleapis.com/a"
- + "uth/bigquery,https://www.googleapis.com/"
- + "auth/bigquery.insertdata,https://www.goo"
- + "gleapis.com/auth/cloud-platformB\200\001\n)com."
- + "google.cloud.bigquery.storage.v1beta2B\014S"
- + "torageProtoP\001ZCcloud.google.com/go/bigqu"
- + "ery/storage/apiv1beta2/storagepb;storage"
- + "pbb\006proto3"
+ + "storage.v1beta2.WriteStream\"_\210\002\001\332A\023paren"
+ + "t,write_stream\202\323\344\223\002@\"0/v1beta2/{parent=p"
+ + "rojects/*/datasets/*/tables/*}:\014write_st"
+ + "ream\022\344\001\n\nAppendRows\0228.google.cloud.bigqu"
+ + "ery.storage.v1beta2.AppendRowsRequest\0329."
+ + "google.cloud.bigquery.storage.v1beta2.Ap"
+ + "pendRowsResponse\"]\210\002\001\332A\014write_stream\202\323\344\223"
+ + "\002E\"@/v1beta2/{write_stream=projects/*/da"
+ + "tasets/*/tables/*/streams/*}:\001*(\0010\001\022\321\001\n\016"
+ + "GetWriteStream\022<.google.cloud.bigquery.s"
+ + "torage.v1beta2.GetWriteStreamRequest\0322.g"
+ + "oogle.cloud.bigquery.storage.v1beta2.Wri"
+ + "teStream\"M\210\002\001\332A\004name\202\323\344\223\002=\"8/v1beta2/{na"
+ + "me=projects/*/datasets/*/tables/*/stream"
+ + "s/*}:\001*\022\353\001\n\023FinalizeWriteStream\022A.google"
+ + ".cloud.bigquery.storage.v1beta2.Finalize"
+ + "WriteStreamRequest\032B.google.cloud.bigque"
+ + "ry.storage.v1beta2.FinalizeWriteStreamRe"
+ + "sponse\"M\210\002\001\332A\004name\202\323\344\223\002=\"8/v1beta2/{name"
+ + "=projects/*/datasets/*/tables/*/streams/"
+ + "*}:\001*\022\356\001\n\027BatchCommitWriteStreams\022E.goog"
+ + "le.cloud.bigquery.storage.v1beta2.BatchC"
+ + "ommitWriteStreamsRequest\032F.google.cloud."
+ + "bigquery.storage.v1beta2.BatchCommitWrit"
+ + "eStreamsResponse\"D\210\002\001\332A\006parent\202\323\344\223\0022\0220/v"
+ + "1beta2/{parent=projects/*/datasets/*/tab"
+ + "les/*}\022\335\001\n\tFlushRows\0227.google.cloud.bigq"
+ + "uery.storage.v1beta2.FlushRowsRequest\0328."
+ + "google.cloud.bigquery.storage.v1beta2.Fl"
+ + "ushRowsResponse\"]\210\002\001\332A\014write_stream\202\323\344\223\002"
+ + "E\"@/v1beta2/{write_stream=projects/*/dat"
+ + "asets/*/tables/*/streams/*}:\001*\032\263\001\210\002\001\312A\036b"
+ + "igquerystorage.googleapis.com\322A\213\001https:/"
+ + "/www.googleapis.com/auth/bigquery,https:"
+ + "//www.googleapis.com/auth/bigquery.inser"
+ + "tdata,https://www.googleapis.com/auth/cl"
+ + "oud-platformB\200\001\n)com.google.cloud.bigque"
+ + "ry.storage.v1beta2B\014StorageProtoP\001ZCclou"
+ + "d.google.com/go/bigquery/storage/apiv1be"
+ + "ta2/storagepb;storagepbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto
index dc982d3ad0..511654037f 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -112,10 +112,12 @@ service BigQueryRead {
//
// The Write API can be used to write data to BigQuery.
//
+//
// The [google.cloud.bigquery.storage.v1
// API](/bigquery/docs/reference/storage/rpc/google.cloud.bigquery.storage.v1)
// should be used instead of the v1beta2 API for BigQueryWrite operations.
service BigQueryWrite {
+ option deprecated = true;
option (google.api.default_host) = "bigquerystorage.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/bigquery,"
@@ -129,6 +131,7 @@ service BigQueryWrite {
// number of clients. Data written to this stream is considered committed as
// soon as an acknowledgement is received.
rpc CreateWriteStream(CreateWriteStreamRequest) returns (WriteStream) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1beta2/{parent=projects/*/datasets/*/tables/*}"
body: "write_stream"
@@ -156,6 +159,7 @@ service BigQueryWrite {
// If the stream is of `PENDING` type, data will only be available for read
// operations after the stream is committed.
rpc AppendRows(stream AppendRowsRequest) returns (stream AppendRowsResponse) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1beta2/{write_stream=projects/*/datasets/*/tables/*/streams/*}"
body: "*"
@@ -165,6 +169,7 @@ service BigQueryWrite {
// Gets a write stream.
rpc GetWriteStream(GetWriteStreamRequest) returns (WriteStream) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1beta2/{name=projects/*/datasets/*/tables/*/streams/*}"
body: "*"
@@ -176,6 +181,7 @@ service BigQueryWrite {
// stream. Finalize is not supported on the '_default' stream.
rpc FinalizeWriteStream(FinalizeWriteStreamRequest)
returns (FinalizeWriteStreamResponse) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1beta2/{name=projects/*/datasets/*/tables/*/streams/*}"
body: "*"
@@ -190,6 +196,7 @@ service BigQueryWrite {
// for read operations.
rpc BatchCommitWriteStreams(BatchCommitWriteStreamsRequest)
returns (BatchCommitWriteStreamsResponse) {
+ option deprecated = true;
option (google.api.http) = {
get: "/v1beta2/{parent=projects/*/datasets/*/tables/*}"
};
@@ -203,6 +210,7 @@ service BigQueryWrite {
// stream, to the offset specified in the request.
// Flush is not supported on the _default stream, since it is not BUFFERED.
rpc FlushRows(FlushRowsRequest) returns (FlushRowsResponse) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1beta2/{write_stream=projects/*/datasets/*/tables/*/streams/*}"
body: "*"
@@ -309,7 +317,7 @@ message ReadRowsResponse {
// The schema for the read. If read_options.selected_fields is set, the
// schema may be different from the table schema as it will only contain
- // the selected fields. This schema is equivelant to the one returned by
+ // the selected fields. This schema is equivalent to the one returned by
// CreateSession. This field is only populated in the first ReadRowsResponse
// RPC.
oneof schema {