From 31a4b2aae82479812655ce6a2690ab6586b959c3 Mon Sep 17 00:00:00 2001 From: yirutang Date: Wed, 31 Mar 2021 10:46:16 -0700 Subject: [PATCH 1/4] feat: add deprecated annotation and tag to bq storage alpha api --- .../storage/v1alpha2/BQTableSchemaToProtoDescriptor.java | 3 +++ .../cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java | 3 +++ .../bigquery/storage/v1alpha2/BigQueryWriteSettings.java | 3 +++ .../google/cloud/bigquery/storage/v1alpha2/DirectWriter.java | 3 +++ .../cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java | 3 +++ .../cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java | 3 +++ .../cloud/bigquery/storage/v1alpha2/JsonWriterCache.java | 3 +++ .../bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java | 4 ++++ .../cloud/bigquery/storage/v1alpha2/ProtoSchemaConverter.java | 3 +++ .../cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java | 3 +++ .../google/cloud/bigquery/storage/v1alpha2/StreamWriter.java | 3 +++ .../com/google/cloud/bigquery/storage/v1alpha2/Waiter.java | 4 ++++ .../google/cloud/bigquery/storage/v1alpha2/WriterCache.java | 3 +++ 13 files changed, 41 insertions(+) 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..27e4ab9dbf 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 @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -32,7 +33,9 @@ * 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 */ +@GcpLaunchStage.Deprecated public class BQTableSchemaToProtoDescriptor { private static ImmutableMap BQTableSchemaModeMap = diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java index 15b468a92b..dbb26ff418 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java @@ -20,6 +20,7 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStub; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStubSettings; import java.io.IOException; @@ -88,7 +89,9 @@ * } * *

Please refer to the GitHub repository's samples for more quickstart code snippets. + * @deprecated */ +@GcpLaunchStage.Deprecated @BetaApi @Generated("by gapic-generator-java") public class BigQueryWriteClient implements BackgroundResource { diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java index e7a2233438..7069023109 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStubSettings; import java.io.IOException; import java.util.List; @@ -63,7 +64,9 @@ * .build()); * BigQueryWriteSettings bigQueryWriteSettings = bigQueryWriteSettingsBuilder.build(); * } + * @deprecated */ +@GcpLaunchStage.Deprecated @BetaApi @Generated("by gapic-generator-java") public class BigQueryWriteSettings extends ClientSettings { 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..894ea7c772 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 @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoRows; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.common.annotations.VisibleForTesting; @@ -48,7 +49,9 @@ * *

{@link DirectWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * @deprecated */ +@GcpLaunchStage.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..310188f439 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 @@ -21,6 +21,7 @@ import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoRows; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsResponse; @@ -44,7 +45,9 @@ * 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 */ +@GcpLaunchStage.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..1cd7c6a66d 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 @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import com.google.protobuf.Descriptors.Descriptor; @@ -29,7 +30,9 @@ /** * Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf * descriptor must have all fields lowercased. + * @deprecated */ +@GcpLaunchStage.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..66ddade4f1 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 @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.cache.Cache; @@ -30,7 +31,9 @@ * 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 */ +@GcpLaunchStage.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..3ac2ee63d9 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 @@ -15,11 +15,15 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; + /** * 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 */ +@GcpLaunchStage.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..93ac2997b1 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 @@ -17,6 +17,7 @@ import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoSchema; import com.google.protobuf.DescriptorProtos.DescriptorProto; import com.google.protobuf.DescriptorProtos.EnumDescriptorProto; @@ -30,6 +31,8 @@ // A Converter class that turns a native protobuf::DescriptorProto to a self contained // protobuf::DescriptorProto // that can be reconstructed by the backend. +// @deprecated +@GcpLaunchStage.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..5709d88cd4 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 @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.Field; import com.google.cloud.bigquery.LegacySQLTypeName; @@ -41,7 +42,9 @@ * *

The implementation as of now is not complete, which measn, if this check passed, there is * still a possbility of writing will fail. + * @deprecated */ +@GcpLaunchStage.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..06582d5cf7 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 @@ -36,6 +36,7 @@ import com.google.api.gax.rpc.StreamController; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.auth.oauth2.GoogleCredentials; +import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsResponse; import com.google.common.base.Preconditions; @@ -78,7 +79,9 @@ * *

{@link StreamWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * @deprecated */ +@GcpLaunchStage.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..71279095bd 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 @@ -19,6 +19,8 @@ import com.google.api.core.InternalApi; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; +import com.google.cloud.GcpLaunchStage; + import java.util.LinkedList; import java.util.concurrent.CountDownLatch; import java.util.concurrent.locks.Lock; @@ -28,7 +30,9 @@ /** * A barrier kind of object that helps keep track of pending actions and synchronously wait until * all have completed. + * @deprecated */ +@GcpLaunchStage.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..4aa69057b6 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 @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; +import com.google.cloud.GcpLaunchStage; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.cache.Cache; @@ -32,7 +33,9 @@ * 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 */ +@GcpLaunchStage.Deprecated public class WriterCache { private static final Logger LOG = Logger.getLogger(WriterCache.class.getName()); From 3380eafdcbbafaf4992d8f6772bfbfe77b0a5025 Mon Sep 17 00:00:00 2001 From: yirutang Date: Wed, 31 Mar 2021 10:50:22 -0700 Subject: [PATCH 2/4] . --- .../cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java | 2 -- .../cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java index dbb26ff418..8b722f0eca 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java @@ -89,9 +89,7 @@ * } * *

Please refer to the GitHub repository's samples for more quickstart code snippets. - * @deprecated */ -@GcpLaunchStage.Deprecated @BetaApi @Generated("by gapic-generator-java") public class BigQueryWriteClient implements BackgroundResource { diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java index 7069023109..29d0205b0d 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java @@ -64,9 +64,7 @@ * .build()); * BigQueryWriteSettings bigQueryWriteSettings = bigQueryWriteSettingsBuilder.build(); * } - * @deprecated */ -@GcpLaunchStage.Deprecated @BetaApi @Generated("by gapic-generator-java") public class BigQueryWriteSettings extends ClientSettings { From 19ed91657d884ca6bf15f96c9bf07c5a741f57f1 Mon Sep 17 00:00:00 2001 From: yirutang Date: Wed, 31 Mar 2021 11:28:05 -0700 Subject: [PATCH 3/4] lint; --- .../storage/v1alpha2/BQTableSchemaToProtoDescriptor.java | 1 + .../cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java | 1 - .../cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java | 1 - .../google/cloud/bigquery/storage/v1alpha2/DirectWriter.java | 1 + .../cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java | 1 + .../cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java | 1 + .../google/cloud/bigquery/storage/v1alpha2/JsonWriterCache.java | 1 + .../cloud/bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java | 1 + .../cloud/bigquery/storage/v1alpha2/SchemaCompatibility.java | 1 + .../google/cloud/bigquery/storage/v1alpha2/StreamWriter.java | 1 + .../java/com/google/cloud/bigquery/storage/v1alpha2/Waiter.java | 2 +- .../com/google/cloud/bigquery/storage/v1alpha2/WriterCache.java | 1 + 12 files changed, 10 insertions(+), 3 deletions(-) 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 27e4ab9dbf..26206c7725 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 @@ -33,6 +33,7 @@ * 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 */ @GcpLaunchStage.Deprecated diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java index 8b722f0eca..15b468a92b 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteClient.java @@ -20,7 +20,6 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStub; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStubSettings; import java.io.IOException; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java index 29d0205b0d..e7a2233438 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BigQueryWriteSettings.java @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.stub.BigQueryWriteStubSettings; import java.io.IOException; import java.util.List; 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 894ea7c772..554720f8ca 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 @@ -49,6 +49,7 @@ * *

{@link DirectWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * * @deprecated */ @GcpLaunchStage.Deprecated 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 310188f439..9b6c9a24a2 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 @@ -45,6 +45,7 @@ * 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 */ @GcpLaunchStage.Deprecated 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 1cd7c6a66d..3a52dfbfe1 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 @@ -30,6 +30,7 @@ /** * Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf * descriptor must have all fields lowercased. + * * @deprecated */ @GcpLaunchStage.Deprecated 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 66ddade4f1..37e4488764 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 @@ -31,6 +31,7 @@ * 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 */ @GcpLaunchStage.Deprecated 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 3ac2ee63d9..40a96d147e 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 @@ -21,6 +21,7 @@ * 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 */ @GcpLaunchStage.Deprecated 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 5709d88cd4..1ff8071e12 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 @@ -42,6 +42,7 @@ * *

The implementation as of now is not complete, which measn, if this check passed, there is * still a possbility of writing will fail. + * * @deprecated */ @GcpLaunchStage.Deprecated 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 06582d5cf7..82552583d1 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 @@ -79,6 +79,7 @@ * *

{@link StreamWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * * @deprecated */ @GcpLaunchStage.Deprecated 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 71279095bd..bb40f07ba6 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 @@ -20,7 +20,6 @@ import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.cloud.GcpLaunchStage; - import java.util.LinkedList; import java.util.concurrent.CountDownLatch; import java.util.concurrent.locks.Lock; @@ -30,6 +29,7 @@ /** * A barrier kind of object that helps keep track of pending actions and synchronously wait until * all have completed. + * * @deprecated */ @GcpLaunchStage.Deprecated 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 4aa69057b6..5727cc1e49 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 @@ -33,6 +33,7 @@ * 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 */ @GcpLaunchStage.Deprecated From 1fba6e50778010eb4a5ccd2efbdbbf4c04a4c429 Mon Sep 17 00:00:00 2001 From: yirutang Date: Thu, 1 Apr 2021 15:38:55 -0700 Subject: [PATCH 4/4] . --- .../storage/v1alpha2/BQTableSchemaToProtoDescriptor.java | 5 ++--- .../cloud/bigquery/storage/v1alpha2/DirectWriter.java | 5 ++--- .../cloud/bigquery/storage/v1alpha2/JsonStreamWriter.java | 5 ++--- .../cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java | 5 ++--- .../cloud/bigquery/storage/v1alpha2/JsonWriterCache.java | 5 ++--- .../bigquery/storage/v1alpha2/OnSchemaUpdateRunnable.java | 6 ++---- .../bigquery/storage/v1alpha2/ProtoSchemaConverter.java | 5 ++--- .../bigquery/storage/v1alpha2/SchemaCompatibility.java | 5 ++--- .../cloud/bigquery/storage/v1alpha2/StreamWriter.java | 5 ++--- .../com/google/cloud/bigquery/storage/v1alpha2/Waiter.java | 5 ++--- .../google/cloud/bigquery/storage/v1alpha2/WriterCache.java | 5 ++--- 11 files changed, 22 insertions(+), 34 deletions(-) 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 26206c7725..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 @@ -15,7 +15,6 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -34,9 +33,9 @@ * when constructing the protobuf descriptor. The mapping between field types and field modes are * shown in the ImmutableMaps below. * - * @deprecated + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.BQTableSchemaToProtoDescriptor} */ -@GcpLaunchStage.Deprecated +@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 554720f8ca..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 @@ -20,7 +20,6 @@ import com.google.api.core.ApiFutures; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoRows; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.common.annotations.VisibleForTesting; @@ -50,9 +49,9 @@ *

{@link DirectWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. * - * @deprecated + * @deprecated no longer supported */ -@GcpLaunchStage.Deprecated +@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 9b6c9a24a2..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 @@ -21,7 +21,6 @@ import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoRows; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsResponse; @@ -46,9 +45,9 @@ * table schema is updated, users will be able to ingest data on the new schema after some time (in * order of minutes). * - * @deprecated + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriter} */ -@GcpLaunchStage.Deprecated +@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 3a52dfbfe1..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 @@ -15,7 +15,6 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import com.google.protobuf.Descriptors.Descriptor; @@ -31,9 +30,9 @@ * Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf * descriptor must have all fields lowercased. * - * @deprecated + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.JsonToProtoMessage} */ -@GcpLaunchStage.Deprecated +@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 37e4488764..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 @@ -15,7 +15,6 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.cache.Cache; @@ -32,9 +31,9 @@ * minutes if not used. Code sample: JsonWriterCache cache = JsonWriterCache.getInstance(); * JsonStreamWriter writer = cache.getWriter(); // Use... cache.returnWriter(writer); * - * @deprecated + * @deprecated No longer supported */ -@GcpLaunchStage.Deprecated +@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 40a96d147e..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 @@ -15,16 +15,14 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; - /** * 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 + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.OnSchemaUpdateRunnable} */ -@GcpLaunchStage.Deprecated +@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 93ac2997b1..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 @@ -17,7 +17,6 @@ import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.ProtoBufProto.ProtoSchema; import com.google.protobuf.DescriptorProtos.DescriptorProto; import com.google.protobuf.DescriptorProtos.EnumDescriptorProto; @@ -31,8 +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 -@GcpLaunchStage.Deprecated +// @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 1ff8071e12..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 @@ -15,7 +15,6 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.Field; import com.google.cloud.bigquery.LegacySQLTypeName; @@ -43,9 +42,9 @@ *

The implementation as of now is not complete, which measn, if this check passed, there is * still a possbility of writing will fail. * - * @deprecated + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1beta2.SchemaCompatibility} */ -@GcpLaunchStage.Deprecated +@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 82552583d1..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 @@ -36,7 +36,6 @@ import com.google.api.gax.rpc.StreamController; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.auth.oauth2.GoogleCredentials; -import com.google.cloud.GcpLaunchStage; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsRequest; import com.google.cloud.bigquery.storage.v1alpha2.Storage.AppendRowsResponse; import com.google.common.base.Preconditions; @@ -80,9 +79,9 @@ *

{@link StreamWriter} will use the credentials set on the channel, which uses application * default credentials through {@link GoogleCredentials#getApplicationDefault} by default. * - * @deprecated + * @deprecated Use {@link com.google.cloud.bigquery.storage.v1alpha2.JsonStreamWriterV2} */ -@GcpLaunchStage.Deprecated +@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 bb40f07ba6..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 @@ -19,7 +19,6 @@ import com.google.api.core.InternalApi; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; -import com.google.cloud.GcpLaunchStage; import java.util.LinkedList; import java.util.concurrent.CountDownLatch; import java.util.concurrent.locks.Lock; @@ -30,9 +29,9 @@ * A barrier kind of object that helps keep track of pending actions and synchronously wait until * all have completed. * - * @deprecated + * @deprecated No longer supported */ -@GcpLaunchStage.Deprecated +@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 5727cc1e49..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 @@ -15,7 +15,6 @@ */ package com.google.cloud.bigquery.storage.v1alpha2; -import com.google.cloud.GcpLaunchStage; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.cache.Cache; @@ -34,9 +33,9 @@ * minutes if not used. Code sample: WriterCache cache = WriterCache.getInstance(); StreamWriter * writer = cache.getWriter(); // Use... cache.returnWriter(writer); * - * @deprecated + * @deprecated No longer supported */ -@GcpLaunchStage.Deprecated +@Deprecated public class WriterCache { private static final Logger LOG = Logger.getLogger(WriterCache.class.getName());