Skip to content

Commit 2875d83

Browse files
feat: add use_table_schema field to BigQueryConfig (#1858)
* feat: add `use_table_schema` field to BigQueryConfig PiperOrigin-RevId: 587079085 Source-Link: googleapis/googleapis@95fabe6 Source-Link: googleapis/googleapis-gen@90b35e9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTBiMzVlOWQ4YmM2NzgwYTgwZGIzYmFiYWJlZmMyOTA3MmZhMzUwNiJ9 * 🦉 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>
1 parent 822dbbb commit 2875d83

File tree

4 files changed

+49
-4
lines changed

4 files changed

+49
-4
lines changed

protos/google/pubsub/v1/pubsub.proto

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,9 +997,10 @@ message BigQueryConfig {
997997
// {projectId}.{datasetId}.{tableId}
998998
string table = 1;
999999

1000-
// When true, use the topic's schema as the columns to write to in BigQuery,
1001-
// if it exists.
1002-
bool use_topic_schema = 2;
1000+
// Optional. When true, use the topic's schema as the columns to write to in
1001+
// BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
1002+
// enabled at the same time.
1003+
bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL];
10031004

10041005
// When true, write the subscription name, message_id, publish_time,
10051006
// attributes, and ordering_key to additional columns in the table. The
@@ -1018,6 +1019,11 @@ message BigQueryConfig {
10181019
// Output only. An output-only field that indicates whether or not the
10191020
// subscription can receive messages.
10201021
State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
1022+
1023+
// Optional. When true, use the BigQuery table's schema as the columns to
1024+
// write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
1025+
// enabled at the same time.
1026+
bool use_table_schema = 6 [(google.api.field_behavior) = OPTIONAL];
10211027
}
10221028

10231029
// Configuration for a Cloud Storage subscription.

protos/protos.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)