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

Commit c7da342

Browse files
authored
feat: add deprecated annotation and tag to bq storage alpha api (#978)
* feat: add deprecated annotation and tag to bq storage alpha api * . * lint; * .
1 parent 235ce1d commit c7da342

File tree

11 files changed

+32
-0
lines changed

11 files changed

+32
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
* Converts a BQ table schema to protobuf descriptor. All field names will be converted to lowercase
3333
* when constructing the protobuf descriptor. The mapping between field types and field modes are
3434
* shown in the ImmutableMaps below.
35+
*
36+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.BQTableSchemaToProtoDescriptor}
3537
*/
38+
@Deprecated
3639
public class BQTableSchemaToProtoDescriptor {
3740
private static ImmutableMap<Table.TableFieldSchema.Mode, FieldDescriptorProto.Label>
3841
BQTableSchemaModeMap =

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
*
4949
* <p>{@link DirectWriter} will use the credentials set on the channel, which uses application
5050
* default credentials through {@link GoogleCredentials#getApplicationDefault} by default.
51+
*
52+
* @deprecated no longer supported
5153
*/
54+
@Deprecated
5255
public class DirectWriter {
5356
private static final Logger LOG = Logger.getLogger(DirectWriter.class.getName());
5457
private static WriterCache cache = null;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444
* functions, but also provides an additional feature: schema update support, where if the BigQuery
4545
* table schema is updated, users will be able to ingest data on the new schema after some time (in
4646
* order of minutes).
47+
*
48+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriter}
4749
*/
50+
@Deprecated
4851
public class JsonStreamWriter implements AutoCloseable {
4952
private static String streamPatternString =
5053
"projects/[^/]+/datasets/[^/]+/tables/[^/]+/streams/[^/]+";

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
/**
3030
* Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf
3131
* descriptor must have all fields lowercased.
32+
*
33+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.JsonToProtoMessage}
3234
*/
35+
@Deprecated
3336
public class JsonToProtoMessage {
3437
private static ImmutableMap<FieldDescriptor.Type, String> FieldTypeToDebugMessage =
3538
new ImmutableMap.Builder<FieldDescriptor.Type, String>()

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
* A cache of JsonStreamWriters that can be looked up by Table Name. The entries will expire after 5
3131
* minutes if not used. Code sample: JsonWriterCache cache = JsonWriterCache.getInstance();
3232
* JsonStreamWriter writer = cache.getWriter(); // Use... cache.returnWriter(writer);
33+
*
34+
* @deprecated No longer supported
3335
*/
36+
@Deprecated
3437
public class JsonWriterCache {
3538
private static final Logger LOG = Logger.getLogger(JsonWriterCache.class.getName());
3639

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
* A abstract class that implements the Runnable interface and provides access to the current
2020
* StreamWriter and updatedSchema. This runnable will only be called when a updated schema has been
2121
* passed back through the AppendRowsResponse. Users should only implement the run() function.
22+
*
23+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.OnSchemaUpdateRunnable}
2224
*/
25+
@Deprecated
2326
public abstract class OnSchemaUpdateRunnable implements Runnable {
2427
private StreamWriter streamWriter;
2528
private Table.TableSchema updatedSchema;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
// A Converter class that turns a native protobuf::DescriptorProto to a self contained
3131
// protobuf::DescriptorProto
3232
// that can be reconstructed by the backend.
33+
// @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaConverter}
34+
@Deprecated
3335
public class ProtoSchemaConverter {
3436
private static String getNameFromFullName(String fullName) {
3537
return fullName.replace('.', '_');

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
*
4242
* <p>The implementation as of now is not complete, which measn, if this check passed, there is
4343
* still a possbility of writing will fail.
44+
*
45+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.SchemaCompatibility}
4446
*/
47+
@Deprecated
4548
public class SchemaCompatibility {
4649
private BigQuery bigquery;
4750
private static SchemaCompatibility compat;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
*
7979
* <p>{@link StreamWriter} will use the credentials set on the channel, which uses application
8080
* default credentials through {@link GoogleCredentials#getApplicationDefault} by default.
81+
*
82+
* @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriterV2}
8183
*/
84+
@Deprecated
8285
public class StreamWriter implements AutoCloseable {
8386
private static final Logger LOG = Logger.getLogger(StreamWriter.class.getName());
8487

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
/**
2929
* A barrier kind of object that helps keep track of pending actions and synchronously wait until
3030
* all have completed.
31+
*
32+
* @deprecated No longer supported
3133
*/
34+
@Deprecated
3235
class Waiter {
3336
private static final Logger LOG = Logger.getLogger(Waiter.class.getName());
3437

0 commit comments

Comments
 (0)