Skip to content

Commit

Permalink
feat: add write_mode support for BigQuery Storage Write API v1 (#228)
Browse files Browse the repository at this point in the history
Committer: @anahan
PiperOrigin-RevId: 414771198
Source-Link: googleapis/googleapis@8a2398e
Source-Link: googleapis/googleapis-gen@9df7ea3
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWRmN2VhMzg2YjU5ZDVjYzM5N2EzOTI0OThkM2MxYTVlNWE2NzNjYiJ9
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>
Co-authored-by: Steffany Brown <[email protected]>
Co-authored-by: Benjamin E. Coe <[email protected]>
  • Loading branch information
4 people authored Dec 30, 2021
1 parent 499ece1 commit df33dc9
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ message WriteStream {
BUFFERED = 3;
}

// Mode enum of the stream.
enum WriteMode {
// Unknown type.
WRITE_MODE_UNSPECIFIED = 0;

// Insert new records into the table.
// It is the default value if customers do not specify it.
INSERT = 1;
}

// Output only. Name of the stream, in the form
// `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand All @@ -193,4 +203,7 @@ message WriteStream {
// compatible with this schema to send in initial `AppendRowsRequest`.
// The table schema could go out of date during the life time of the stream.
TableSchema table_schema = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

// Immutable. Mode of the stream.
WriteMode write_mode = 7 [(google.api.field_behavior) = IMMUTABLE];
}
12 changes: 12 additions & 0 deletions packages/google-cloud-bigquery-storage/protos/protos.d.ts

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

49 changes: 49 additions & 0 deletions packages/google-cloud-bigquery-storage/protos/protos.js

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

13 changes: 13 additions & 0 deletions packages/google-cloud-bigquery-storage/protos/protos.json

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

0 comments on commit df33dc9

Please sign in to comment.