Skip to content

Commit

Permalink
feat: Adding deprecated message to v1beta2 manual client (#2098)
Browse files Browse the repository at this point in the history
* feat: Adding deprecated message to v1beta2 manual client

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
yirutang and gcf-owl-bot[bot] authored Jan 2, 2024
1 parent 3c08b4f commit f150780
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* when constructing the protobuf descriptor. The mapping between field types and field modes are
* shown in the ImmutableMaps below.
*/
@Deprecated
public class BQTableSchemaToProtoDescriptor {
private static ImmutableMap<TableFieldSchema.Mode, FieldDescriptorProto.Label>
BQTableSchemaModeMap =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* <p>When encoding the TIME or DATETIME into a bit field, larger date/time field is on the more
* significant side.
*/
@Deprecated
public final class CivilTimeEncoder {
private static final int NANO_LENGTH = 30;
private static final int MICRO_LENGTH = 20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
* A StreamWriter that can write JSON data (JSONObjects) to BigQuery tables. The JsonStreamWriter is
* built on top of a StreamWriter, and it simply converts all JSON data to protobuf messages then
* calls StreamWriter's append() method to write to BigQuery tables.
*
* <p>This client lib is deprecated, please use v1 instead.
*/
@Deprecated
public class JsonStreamWriter implements AutoCloseable {
private static String streamPatternString =
"projects/[^/]+/datasets/[^/]+/tables/[^/]+/streams/[^/]+";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
/**
* Converts Json data to protocol buffer messages given the protocol buffer descriptor. The protobuf
* descriptor must have all fields lowercased.
*
* <p>This client lib is deprecated, please use v1 instead.
*/
@Deprecated
public class JsonToProtoMessage {
private static final Logger LOG = Logger.getLogger(JsonToProtoMessage.class.getName());
private static ImmutableMap<FieldDescriptor.Type, String> FieldTypeToDebugMessage =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
// A Converter class that turns a native protobuf::DescriptorProto to a self contained
// protobuf::DescriptorProto
// that can be reconstructed by the backend.
//
// This client lib is deprecated, please use v1 instead.
@Deprecated
public class ProtoSchemaConverter {
private static String getNameFromFullName(String fullName) {
return fullName.replace('.', '_');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
* in receiving order.
*
* <p>It's user's responsibility to do the flow control and maintain the lifetime of the requests.
*
* <p>This client lib is deprecated, please use v1 instead.
*/
@Deprecated
public class StreamConnection {
private BidiStreamingCallable<AppendRowsRequest, AppendRowsResponse> bidiStreamingCallable;
private ClientStream<AppendRowsRequest> clientStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
* <p>TODO: Support batching.
*
* <p>TODO: Support schema change.
*
* <p>This client lib is deprecated, please use v1 instead.
*/
@Deprecated
public class StreamWriterV2 implements AutoCloseable {
private static final Logger log = Logger.getLogger(StreamWriterV2.class.getName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* A barrier kind of object that helps keep track of pending actions and synchronously wait until
* all have completed.
*/
@Deprecated
class Waiter {
private static final Logger LOG =
Logger.getLogger(com.google.cloud.bigquery.storage.v1beta2.Waiter.class.getName());
Expand Down

0 comments on commit f150780

Please sign in to comment.