From a2cf7d0df2edd6423948af9d9b7495354b3d0524 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 25 Jun 2020 14:07:38 -0700 Subject: [PATCH] feat: Add two new fields, ignoreUnknownFields in AppendRowsRequest and update_schema in AppendRowsResponse. PiperOrigin-RevId: 318344356 --- google/cloud/bigquery/storage/v1alpha2/storage.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/google/cloud/bigquery/storage/v1alpha2/storage.proto b/google/cloud/bigquery/storage/v1alpha2/storage.proto index e9a893b9..431f925b 100644 --- a/google/cloud/bigquery/storage/v1alpha2/storage.proto +++ b/google/cloud/bigquery/storage/v1alpha2/storage.proto @@ -169,6 +169,11 @@ message AppendRowsRequest { oneof rows { ProtoData proto_rows = 4; } + + // Only initial request setting is respected. If true, drop unknown input + // fields. Otherwise, the extra fields will cause append to fail. Default + // value is false. + bool ignore_unknown_fields = 5; } // Response message for `AppendRows`. @@ -181,6 +186,11 @@ message AppendRowsResponse { // into the system. Users can retry within the same connection. google.rpc.Status error = 2; } + + // If backend detects a schema update, pass it to user so that user can + // use it to input new type of message. It will be empty when there is no + // schema updates. + TableSchema updated_schema = 3; } // Request message for `GetWriteStreamRequest`.