From 19ed91657d884ca6bf15f96c9bf07c5a741f57f1 Mon Sep 17 00:00:00 2001 From: yirutang Date: Wed, 31 Mar 2021 11:28:05 -0700 Subject: [PATCH] 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