@@ -70,7 +70,8 @@ service BigQueryRead {
7070 post : "/v1beta2/{read_session.table=projects/*/datasets/*/tables/*}"
7171 body : "*"
7272 };
73- option (google.api.method_signature ) = "parent,read_session,max_stream_count" ;
73+ option (google.api.method_signature ) =
74+ "parent,read_session,max_stream_count" ;
7475 }
7576
7677 // Reads rows from the stream in the format prescribed by the ReadSession.
@@ -99,7 +100,8 @@ service BigQueryRead {
99100 // original, primary, and residual, that original[0-j] = primary[0-j] and
100101 // original[j-n] = residual[0-m] once the streams have been read to
101102 // completion.
102- rpc SplitReadStream (SplitReadStreamRequest ) returns (SplitReadStreamResponse ) {
103+ rpc SplitReadStream (SplitReadStreamRequest )
104+ returns (SplitReadStreamResponse ) {
103105 option (google.api.http ) = {
104106 get : "/v1beta2/{name=projects/*/locations/*/sessions/*/streams/*}"
105107 };
@@ -109,6 +111,10 @@ service BigQueryRead {
109111// BigQuery Write API.
110112//
111113// The Write API can be used to write data to BigQuery.
114+ //
115+ // The [google.cloud.bigquery.storage.v1
116+ // API](/bigquery/docs/reference/storage/rpc/google.cloud.bigquery.storage.v1)
117+ // should be used instead of the v1beta2 API for BigQueryWrite operations.
112118service BigQueryWrite {
113119 option (google.api.default_host ) = "bigquerystorage.googleapis.com" ;
114120 option (google.api.oauth_scopes ) =
@@ -168,7 +174,8 @@ service BigQueryWrite {
168174
169175 // Finalize a write stream so that no new data can be appended to the
170176 // stream. Finalize is not supported on the '_default' stream.
171- rpc FinalizeWriteStream (FinalizeWriteStreamRequest ) returns (FinalizeWriteStreamResponse ) {
177+ rpc FinalizeWriteStream (FinalizeWriteStreamRequest )
178+ returns (FinalizeWriteStreamResponse ) {
172179 option (google.api.http ) = {
173180 post : "/v1beta2/{name=projects/*/datasets/*/tables/*/streams/*}"
174181 body : "*"
@@ -181,7 +188,8 @@ service BigQueryWrite {
181188 // Streams must be finalized before commit and cannot be committed multiple
182189 // times. Once a stream is committed, data in the stream becomes available
183190 // for read operations.
184- rpc BatchCommitWriteStreams (BatchCommitWriteStreamsRequest ) returns (BatchCommitWriteStreamsResponse ) {
191+ rpc BatchCommitWriteStreams (BatchCommitWriteStreamsRequest )
192+ returns (BatchCommitWriteStreamsResponse ) {
185193 option (google.api.http ) = {
186194 get : "/v1beta2/{parent=projects/*/datasets/*/tables/*}"
187195 };
@@ -350,9 +358,7 @@ message CreateWriteStreamRequest {
350358 // of `projects/{project}/datasets/{dataset}/tables/{table}`.
351359 string parent = 1 [
352360 (google.api.field_behavior ) = REQUIRED ,
353- (google.api.resource_reference ) = {
354- type : "bigquery.googleapis.com/Table"
355- }
361+ (google.api.resource_reference ) = { type : "bigquery.googleapis.com/Table" }
356362 ];
357363
358364 // Required. Stream to be created.
@@ -370,9 +376,9 @@ message AppendRowsRequest {
370376 ProtoRows rows = 2 ;
371377 }
372378
373- // Required. The stream that is the target of the append operation. This value must be
374- // specified for the initial request. If subsequent requests specify the
375- // stream name, it must equal to the value provided in the first request.
379+ // Required. The stream that is the target of the append operation. This value
380+ // must be specified for the initial request. If subsequent requests specify
381+ // the stream name, it must equal to the value provided in the first request.
376382 // To write to the _default stream, populate this field with a string in the
377383 // format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
378384 string write_stream = 1 [
@@ -458,11 +464,9 @@ message GetWriteStreamRequest {
458464
459465// Request message for `BatchCommitWriteStreams`.
460466message BatchCommitWriteStreamsRequest {
461- // Required. Parent table that all the streams should belong to, in the form of
462- // `projects/{project}/datasets/{dataset}/tables/{table}`.
463- string parent = 1 [
464- (google.api.field_behavior ) = REQUIRED
465- ];
467+ // Required. Parent table that all the streams should belong to, in the form
468+ // of `projects/{project}/datasets/{dataset}/tables/{table}`.
469+ string parent = 1 [(google.api.field_behavior ) = REQUIRED ];
466470
467471 // Required. The group of streams that will be committed atomically.
468472 repeated string write_streams = 2 [(google.api.field_behavior ) = REQUIRED ];
0 commit comments