Skip to content

Commit 1cf9407

Browse files
Google APIscopybara-github
authored andcommitted
feat: add location to WriteStream and add WriteStreamView support
PiperOrigin-RevId: 472835596
1 parent 855b74d commit 1cf9407

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

google/cloud/bigquery/storage/v1/storage.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ message GetWriteStreamRequest {
524524
type: "bigquerystorage.googleapis.com/WriteStream"
525525
}
526526
];
527+
528+
// Indicates whether to get full or partial view of the WriteStream. If
529+
// not set, view returned will be basic.
530+
WriteStreamView view = 3;
527531
}
528532

529533
// Request message for `BatchCommitWriteStreams`.

google/cloud/bigquery/storage/v1/stream.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,23 @@ message ReadStream {
203203
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
204204
}
205205

206+
// WriteStreamView is a view enum that controls what details about a write
207+
// stream should be returned.
208+
enum WriteStreamView {
209+
// The default / unset value.
210+
WRITE_STREAM_VIEW_UNSPECIFIED = 0;
211+
212+
// The BASIC projection returns basic metadata about a write stream. The
213+
// basic view does not include schema information. This is the default view
214+
// returned by GetWriteStream.
215+
BASIC = 1;
216+
217+
// The FULL projection returns all available write stream metadata, including
218+
// the schema. CreateWriteStream returns the full projection of write stream
219+
// metadata.
220+
FULL = 2;
221+
}
222+
206223
// Information about a single stream that gets data inside the storage system.
207224
message WriteStream {
208225
option (google.api.resource) = {
@@ -261,4 +278,9 @@ message WriteStream {
261278

262279
// Immutable. Mode of the stream.
263280
WriteMode write_mode = 7 [(google.api.field_behavior) = IMMUTABLE];
281+
282+
// Immutable. The geographic location where the stream's dataset resides. See
283+
// https://cloud.google.com/bigquery/docs/locations for supported
284+
// locations.
285+
string location = 8 [(google.api.field_behavior) = IMMUTABLE];
264286
}

0 commit comments

Comments
 (0)