1- // Copyright 2019 Google LLC.
1+ // Copyright 2021 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.
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
1615syntax = "proto3" ;
1716
@@ -72,17 +71,27 @@ message ReadSession {
7271 // "nullable_field is not NULL"
7372 // "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))"
7473 // "numeric_field BETWEEN 1.0 AND 5.0"
74+ //
75+ // Restricted to a maximum length for 1 MB.
7576 string row_restriction = 2 ;
77+
78+ // Optional. Options specific to the Apache Arrow output format.
79+ oneof output_format_serialization_options {
80+ ArrowSerializationOptions arrow_serialization_options = 3
81+ [(google.api.field_behavior ) = OPTIONAL ];
82+ }
7683 }
7784
7885 // Output only. Unique identifier for the session, in the form
7986 // `projects/{project_id}/locations/{location}/sessions/{session_id}`.
8087 string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
8188
82- // Output only. Time at which the session becomes invalid. After this time, subsequent
83- // requests to read this Session will return errors. The expire_time is
84- // automatically assigned and currently cannot be specified or updated.
85- google.protobuf.Timestamp expire_time = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
89+ // Output only. Time at which the session becomes invalid. After this time,
90+ // subsequent requests to read this Session will return errors. The
91+ // expire_time is automatically assigned and currently cannot be specified or
92+ // updated.
93+ google.protobuf.Timestamp expire_time = 2
94+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
8695
8796 // Immutable. Data format of the output data.
8897 DataFormat data_format = 3 [(google.api.field_behavior ) = IMMUTABLE ];
@@ -102,12 +111,11 @@ message ReadSession {
102111 // `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
103112 string table = 6 [
104113 (google.api.field_behavior ) = IMMUTABLE ,
105- (google.api.resource_reference ) = {
106- type : "bigquery.googleapis.com/Table"
107- }
114+ (google.api.resource_reference ) = { type : "bigquery.googleapis.com/Table" }
108115 ];
109116
110- // Optional. Any modifiers which are applied when reading from the specified table.
117+ // Optional. Any modifiers which are applied when reading from the specified
118+ // table.
111119 TableModifiers table_modifiers = 7 [(google.api.field_behavior ) = OPTIONAL ];
112120
113121 // Optional. Read options for this session (e.g. column selection, filters).
0 commit comments