File tree Expand file tree Collapse file tree
google/cloud/bigquery/storage/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments