|
1 | | -// Copyright 2019 Google LLC. |
| 1 | +// Copyright 2020 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
|
11 | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | 12 | // See the License for the specific language governing permissions and |
13 | 13 | // limitations under the License. |
14 | | -// |
15 | 14 |
|
16 | 15 | syntax = "proto3"; |
17 | 16 |
|
@@ -204,7 +203,12 @@ message CreateReadSessionRequest { |
204 | 203 | // Required. String of the form `projects/{project_id}` indicating the |
205 | 204 | // project this ReadSession is associated with. This is the project that will |
206 | 205 | // be billed for usage. |
207 | | - string parent = 6 [(google.api.field_behavior) = REQUIRED]; |
| 206 | + string parent = 6 [ |
| 207 | + (google.api.field_behavior) = REQUIRED, |
| 208 | + (google.api.resource_reference) = { |
| 209 | + type: "cloudresourcemanager.googleapis.com/Project" |
| 210 | + } |
| 211 | + ]; |
208 | 212 |
|
209 | 213 | // Any modifiers to the Table (e.g. snapshot timestamp). |
210 | 214 | TableModifiers table_modifiers = 2; |
@@ -286,9 +290,6 @@ message StreamStatus { |
286 | 290 | float fraction_consumed = 2; |
287 | 291 |
|
288 | 292 | // Represents the progress of the current stream. |
289 | | - // |
290 | | - // Note: This value is under development and should not be used. Use |
291 | | - // `fraction_consumed` instead. |
292 | 293 | Progress progress = 4; |
293 | 294 |
|
294 | 295 | // Whether this stream can be split. For sessions that use the LIQUID sharding |
@@ -373,14 +374,14 @@ message BatchCreateReadSessionStreamsResponse { |
373 | 374 |
|
374 | 375 | // Request information for invoking `FinalizeStream`. |
375 | 376 | message FinalizeStreamRequest { |
376 | | - // Stream to finalize. |
377 | | - Stream stream = 2; |
| 377 | + // Required. Stream to finalize. |
| 378 | + Stream stream = 2 [(google.api.field_behavior) = REQUIRED]; |
378 | 379 | } |
379 | 380 |
|
380 | 381 | // Request information for `SplitReadStream`. |
381 | 382 | message SplitReadStreamRequest { |
382 | | - // Stream to split. |
383 | | - Stream original_stream = 1; |
| 383 | + // Required. Stream to split. |
| 384 | + Stream original_stream = 1 [(google.api.field_behavior) = REQUIRED]; |
384 | 385 |
|
385 | 386 | // A value in the range (0.0, 1.0) that specifies the fractional point at |
386 | 387 | // which the original stream should be split. The actual split point is |
|
0 commit comments