Skip to content

Commit

Permalink
feat: add use_table_schema field to BigQueryConfig (#1858)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 4, 2023
1 parent 822dbbb commit 2875d83
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
12 changes: 9 additions & 3 deletions protos/google/pubsub/v1/pubsub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -997,9 +997,10 @@ message BigQueryConfig {
// {projectId}.{datasetId}.{tableId}
string table = 1;

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

// When true, write the subscription name, message_id, publish_time,
// attributes, and ordering_key to additional columns in the table. The
Expand All @@ -1018,6 +1019,11 @@ message BigQueryConfig {
// Output only. An output-only field that indicates whether or not the
// subscription can receive messages.
State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. When true, use the BigQuery table's schema as the columns to
// write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
// enabled at the same time.
bool use_table_schema = 6 [(google.api.field_behavior) = OPTIONAL];
}

// Configuration for a Cloud Storage subscription.
Expand Down
6 changes: 6 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2875d83

Please sign in to comment.