[go: up one dir, main page]

Skip to content

Commit

Permalink
feat: add use_table_schema field to BigQueryConfig (#1035)
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

---------

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] committed Dec 2, 2023
1 parent 695af43 commit ac6d912
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions google/pubsub_v1/types/pubsub.py
Expand Up @@ -1111,8 +1111,9 @@ class BigQueryConfig(proto.Message):
The name of the table to which to write data,
of the form {projectId}.{datasetId}.{tableId}
use_topic_schema (bool):
When true, use the topic's schema as the
columns to write to in BigQuery, if it exists.
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.
write_metadata (bool):
When true, write the subscription name, message_id,
publish_time, attributes, and ordering_key to additional
Expand All @@ -1131,6 +1132,10 @@ class BigQueryConfig(proto.Message):
Output only. An output-only field that
indicates whether or not the subscription can
receive messages.
use_table_schema (bool):
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.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -1186,6 +1191,10 @@ class State(proto.Enum):
number=5,
enum=State,
)
use_table_schema: bool = proto.Field(
proto.BOOL,
number=6,
)


class CloudStorageConfig(proto.Message):
Expand Down

0 comments on commit ac6d912

Please sign in to comment.