Skip to content

Commit 4bef000

Browse files
Google APIscopybara-github
authored andcommitted
fix: add resource reference to proto files
chore: update copyright and comments PiperOrigin-RevId: 309990843
1 parent 1b5a8d2 commit 4bef000

6 files changed

Lines changed: 22 additions & 18 deletions

File tree

google/cloud/bigquery/storage/v1beta1/arrow.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

google/cloud/bigquery/storage/v1beta1/avro.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

google/cloud/bigquery/storage/v1beta1/bigquerystorage_v1beta1.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ title: BigQuery Storage API
66
apis:
77
- name: google.cloud.bigquery.storage.v1beta1.BigQueryStorage
88

9+
backend:
10+
rules:
11+
- selector: 'google.cloud.bigquery.storage.v1beta1.BigQueryStorage.*'
12+
deadline: 120.0
13+
- selector: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows
14+
deadline: 21600.0
15+
916
authentication:
1017
rules:
1118
- selector: 'google.cloud.bigquery.storage.v1beta1.BigQueryStorage.*'

google/cloud/bigquery/storage/v1beta1/read_options.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

google/cloud/bigquery/storage/v1beta1/storage.proto

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -204,7 +203,12 @@ message CreateReadSessionRequest {
204203
// Required. String of the form `projects/{project_id}` indicating the
205204
// project this ReadSession is associated with. This is the project that will
206205
// 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+
];
208212

209213
// Any modifiers to the Table (e.g. snapshot timestamp).
210214
TableModifiers table_modifiers = 2;
@@ -286,9 +290,6 @@ message StreamStatus {
286290
float fraction_consumed = 2;
287291

288292
// 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.
292293
Progress progress = 4;
293294

294295
// Whether this stream can be split. For sessions that use the LIQUID sharding
@@ -373,14 +374,14 @@ message BatchCreateReadSessionStreamsResponse {
373374

374375
// Request information for invoking `FinalizeStream`.
375376
message FinalizeStreamRequest {
376-
// Stream to finalize.
377-
Stream stream = 2;
377+
// Required. Stream to finalize.
378+
Stream stream = 2 [(google.api.field_behavior) = REQUIRED];
378379
}
379380

380381
// Request information for `SplitReadStream`.
381382
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];
384385

385386
// A value in the range (0.0, 1.0) that specifies the fractional point at
386387
// which the original stream should be split. The actual split point is

google/cloud/bigquery/storage/v1beta1/table_reference.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

0 commit comments

Comments
 (0)