diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java index 59eb681545..4a937b6be5 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java @@ -61,11 +61,9 @@ import org.threeten.bp.Duration; /** - * A BigQuery Stream Writer that can be used to write data into BigQuery Table. - * - *

This is to be used to managed streaming write when you are working with PENDING streams or - * want to explicitly manage offset. In that most common cases when writing with COMMITTED stream - * without offset, please use a simpler writer {@code DirectWriter}. + * This is to be used to managed streaming write when you are working with PENDING streams or want + * to explicitly manage offset. In that most common cases when writing with COMMITTED stream without + * offset, please use a simpler writer {@code DirectWriter}. * *

A {@link StreamWrier} provides built-in capabilities to: handle batching of messages; * controlling memory utilization (through flow control) and request cleanup (only keeps write @@ -80,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 #StreamWriterV2()} instead. */ +@Deprecated public class StreamWriter implements AutoCloseable { private static final Logger LOG = Logger.getLogger(StreamWriter.class.getName());