Skip to content

Commit 0375433

Browse files
gcf-owl-bot[bot]steffnayBenjamin E. Coe
authored
feat: add write_mode support for BigQuery Storage Write API v1 (#228)
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]>
1 parent 4302980 commit 0375433

4 files changed

Lines changed: 87 additions & 0 deletions

File tree

handwritten/bigquery-storage/protos/google/cloud/bigquery/storage/v1/stream.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ message WriteStream {
171171
BUFFERED = 3;
172172
}
173173

174+
// Mode enum of the stream.
175+
enum WriteMode {
176+
// Unknown type.
177+
WRITE_MODE_UNSPECIFIED = 0;
178+
179+
// Insert new records into the table.
180+
// It is the default value if customers do not specify it.
181+
INSERT = 1;
182+
}
183+
174184
// Output only. Name of the stream, in the form
175185
// `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
176186
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -193,4 +203,7 @@ message WriteStream {
193203
// compatible with this schema to send in initial `AppendRowsRequest`.
194204
// The table schema could go out of date during the life time of the stream.
195205
TableSchema table_schema = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
206+
207+
// Immutable. Mode of the stream.
208+
WriteMode write_mode = 7 [(google.api.field_behavior) = IMMUTABLE];
196209
}

handwritten/bigquery-storage/protos/protos.d.ts

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

handwritten/bigquery-storage/protos/protos.js

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

handwritten/bigquery-storage/protos/protos.json

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

0 commit comments

Comments
 (0)