1- // Copyright 2021 Google LLC
1+ // Copyright 2023 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.
@@ -112,10 +112,12 @@ service BigQueryRead {
112112//
113113// The Write API can be used to write data to BigQuery.
114114//
115+ //
115116// The [google.cloud.bigquery.storage.v1
116117// API](/bigquery/docs/reference/storage/rpc/google.cloud.bigquery.storage.v1)
117118// should be used instead of the v1beta2 API for BigQueryWrite operations.
118119service BigQueryWrite {
120+ option deprecated = true ;
119121 option (google.api.default_host ) = "bigquerystorage.googleapis.com" ;
120122 option (google.api.oauth_scopes ) =
121123 "https://www.googleapis.com/auth/bigquery,"
@@ -129,6 +131,7 @@ service BigQueryWrite {
129131 // number of clients. Data written to this stream is considered committed as
130132 // soon as an acknowledgement is received.
131133 rpc CreateWriteStream (CreateWriteStreamRequest ) returns (WriteStream ) {
134+ option deprecated = true ;
132135 option (google.api.http ) = {
133136 post : "/v1beta2/{parent=projects/*/datasets/*/tables/*}"
134137 body : "write_stream"
@@ -156,6 +159,7 @@ service BigQueryWrite {
156159 // If the stream is of `PENDING` type, data will only be available for read
157160 // operations after the stream is committed.
158161 rpc AppendRows (stream AppendRowsRequest ) returns (stream AppendRowsResponse ) {
162+ option deprecated = true ;
159163 option (google.api.http ) = {
160164 post : "/v1beta2/{write_stream=projects/*/datasets/*/tables/*/streams/*}"
161165 body : "*"
@@ -165,6 +169,7 @@ service BigQueryWrite {
165169
166170 // Gets a write stream.
167171 rpc GetWriteStream (GetWriteStreamRequest ) returns (WriteStream ) {
172+ option deprecated = true ;
168173 option (google.api.http ) = {
169174 post : "/v1beta2/{name=projects/*/datasets/*/tables/*/streams/*}"
170175 body : "*"
@@ -176,6 +181,7 @@ service BigQueryWrite {
176181 // stream. Finalize is not supported on the '_default' stream.
177182 rpc FinalizeWriteStream (FinalizeWriteStreamRequest )
178183 returns (FinalizeWriteStreamResponse ) {
184+ option deprecated = true ;
179185 option (google.api.http ) = {
180186 post : "/v1beta2/{name=projects/*/datasets/*/tables/*/streams/*}"
181187 body : "*"
@@ -190,6 +196,7 @@ service BigQueryWrite {
190196 // for read operations.
191197 rpc BatchCommitWriteStreams (BatchCommitWriteStreamsRequest )
192198 returns (BatchCommitWriteStreamsResponse ) {
199+ option deprecated = true ;
193200 option (google.api.http ) = {
194201 get : "/v1beta2/{parent=projects/*/datasets/*/tables/*}"
195202 };
@@ -203,6 +210,7 @@ service BigQueryWrite {
203210 // stream, to the offset specified in the request.
204211 // Flush is not supported on the _default stream, since it is not BUFFERED.
205212 rpc FlushRows (FlushRowsRequest ) returns (FlushRowsResponse ) {
213+ option deprecated = true ;
206214 option (google.api.http ) = {
207215 post : "/v1beta2/{write_stream=projects/*/datasets/*/tables/*/streams/*}"
208216 body : "*"
@@ -309,7 +317,7 @@ message ReadRowsResponse {
309317
310318 // The schema for the read. If read_options.selected_fields is set, the
311319 // schema may be different from the table schema as it will only contain
312- // the selected fields. This schema is equivelant to the one returned by
320+ // the selected fields. This schema is equivalent to the one returned by
313321 // CreateSession. This field is only populated in the first ReadRowsResponse
314322 // RPC.
315323 oneof schema {
0 commit comments