Skip to content

Commit 8a2398e

Browse files
Google APIscopybara-github
authored andcommitted
feat: add write_mode support for BigQuery Storage Write API v1
Committer: @anahan PiperOrigin-RevId: 414771198
1 parent 297bfd8 commit 8a2398e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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
}

0 commit comments

Comments
 (0)