diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptor.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptor.java index f25d626129..9cc814602e 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptor.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptor.java @@ -32,7 +32,10 @@ * Converts a BQ table schema to protobuf descriptor. All field names will be converted to lowercase * when constructing the protobuf descriptor. The mapping between field types and field modes are * shown in the ImmutableMaps below. + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.BQTableSchemaToProtoDescriptor} */ +@Deprecated public class BQTableSchemaToProtoDescriptor { private static ImmutableMap BQTableSchemaModeMap = diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/DirectWriter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/DirectWriter.java index 4338f5f598..85dc02ee3f 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/DirectWriter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/DirectWriter.java @@ -48,7 +48,10 @@ * *

{@link DirectWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * + * @deprecated no longer supported */ +@Deprecated public class DirectWriter { private static final Logger LOG = Logger.getLogger(DirectWriter.class.getName()); private static WriterCache cache = null; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java index ed8ee0f9fe..214b8b5246 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java @@ -44,7 +44,10 @@ * functions, but also provides an additional feature: schema update support, where if the BigQuery * table schema is updated, users will be able to ingest data on the new schema after some time (in * order of minutes). + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriter} */ +@Deprecated public class JsonStreamWriter implements AutoCloseable { private static String streamPatternString = "projects/[^/]+/datasets/[^/]+/tables/[^/]+/streams/[^/]+"; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java index c6aced9f17..34feb24766 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java @@ -29,7 +29,10 @@ /** * Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf * descriptor must have all fields lowercased. + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.JsonToProtoMessage} */ +@Deprecated public class JsonToProtoMessage { private static ImmutableMap FieldTypeToDebugMessage = new ImmutableMap.Builder() diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonWriterCache.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonWriterCache.java index f623076252..d72403a0c2 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonWriterCache.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonWriterCache.java @@ -30,7 +30,10 @@ * A cache of JsonStreamWriters that can be looked up by Table Name. The entries will expire after 5 * minutes if not used. Code sample: JsonWriterCache cache = JsonWriterCache.getInstance(); * JsonStreamWriter writer = cache.getWriter(); // Use... cache.returnWriter(writer); + * + * @deprecated No longer supported */ +@Deprecated public class JsonWriterCache { private static final Logger LOG = Logger.getLogger(JsonWriterCache.class.getName()); diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java index a8df165602..5194e6cb36 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java @@ -19,7 +19,10 @@ * A abstract class that implements the Runnable interface and provides access to the current * StreamWriter and updatedSchema. This runnable will only be called when a updated schema has been * passed back through the AppendRowsResponse. Users should only implement the run() function. + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.OnSchemaUpdateRunnable} */ +@Deprecated public abstract class OnSchemaUpdateRunnable implements Runnable { private StreamWriter streamWriter; private Table.TableSchema updatedSchema; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/ProtoSchemaConverter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/ProtoSchemaConverter.java index 6876d7e2e1..4367c4ba21 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/ProtoSchemaConverter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/ProtoSchemaConverter.java @@ -30,6 +30,8 @@ // A Converter class that turns a native protobuf::DescriptorProto to a self contained // protobuf::DescriptorProto // that can be reconstructed by the backend. +// @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaConverter} +@Deprecated public class ProtoSchemaConverter { private static String getNameFromFullName(String fullName) { return fullName.replace('.', '_'); diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java index 6943993b05..c79cf934d8 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java @@ -41,7 +41,10 @@ * *

The implementation as of now is not complete, which measn, if this check passed, there is * still a possbility of writing will fail. + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.SchemaCompatibility} */ +@Deprecated public class SchemaCompatibility { private BigQuery bigquery; private static SchemaCompatibility compat; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/StreamWriter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/StreamWriter.java index 83fa66cefa..d94dba51b4 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/StreamWriter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/StreamWriter.java @@ -78,7 +78,10 @@ * *

{@link StreamWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriterV2} */ +@Deprecated public class StreamWriter implements AutoCloseable { private static final Logger LOG = Logger.getLogger(StreamWriter.class.getName()); diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/Waiter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/Waiter.java index 5da8a1a57c..29d389f494 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/Waiter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/Waiter.java @@ -28,7 +28,10 @@ /** * A barrier kind of object that helps keep track of pending actions and synchronously wait until * all have completed. + * + * @deprecated No longer supported */ +@Deprecated class Waiter { private static final Logger LOG = Logger.getLogger(Waiter.class.getName()); diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/WriterCache.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/WriterCache.java index ad74900f76..4aa4074f96 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/WriterCache.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/WriterCache.java @@ -32,7 +32,10 @@ * A cache of StreamWriters that can be looked up by Table Name. The entries will expire after 5 * minutes if not used. Code sample: WriterCache cache = WriterCache.getInstance(); StreamWriter * writer = cache.getWriter(); // Use... cache.returnWriter(writer); + * + * @deprecated No longer supported */ +@Deprecated public class WriterCache { private static final Logger LOG = Logger.getLogger(WriterCache.class.getName());