Skip to content

Commit 5544fcd

Browse files
authored
chore: update librarian and regenerate qualified To/FromProto (#7374)
Regenerates prost conversions to use fully qualified syntax. For #7284
1 parent 98c36fa commit 5544fcd

39 files changed

Lines changed: 16340 additions & 8655 deletions

File tree

‎librarian.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
language: rust
15-
version: v0.52.0
15+
version: v0.52.1-0.20261110140229-d8c765b043a1
1616
repo: googleapis/google-cloud-rust
1717
sources:
1818
comment: sources.discovery is pinned to 066be1f6 because newer Compute discovery documents use API version 2026-11-01, which production does not accept yet. Bump sources.discovery after the GCE rollout that serves API version 2026-11-01 reaches production.

‎src/bigquery/src/write/generated/convert/storage/convert.rs‎

Lines changed: 205 additions & 205 deletions
Large diffs are not rendered by default.

‎src/bigquery/src/write/generated/gapic_storage/transport.rs‎

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,13 @@ impl super::stub::Read for Read {
117117
.execute(
118118
extensions,
119119
path,
120-
req.to_proto().map_err(Error::deser)?,
120+
ToProto::<crate::google::cloud::bigquery::storage::v1::CreateReadSessionRequest>::to_proto(req).map_err(Error::deser)?,
121121
options,
122122
&info::X_GOOG_API_CLIENT_HEADER,
123123
&x_goog_request_params,
124124
)
125125
.await
126-
.and_then(
127-
gaxi::grpc::to_gax_response::<
128-
TR,
129-
crate::write::generated::gapic_storage::model::ReadSession,
130-
>,
131-
)
126+
.and_then(gaxi::grpc::to_gax_response::<TR, crate::write::generated::gapic_storage::model::ReadSession>)
132127
}
133128

134129
async fn read_rows(
@@ -228,18 +223,13 @@ impl super::stub::Read for Read {
228223
.execute(
229224
extensions,
230225
path,
231-
req.to_proto().map_err(Error::deser)?,
226+
ToProto::<crate::google::cloud::bigquery::storage::v1::SplitReadStreamRequest>::to_proto(req).map_err(Error::deser)?,
232227
options,
233228
&info::X_GOOG_API_CLIENT_HEADER,
234229
&x_goog_request_params,
235230
)
236231
.await
237-
.and_then(
238-
gaxi::grpc::to_gax_response::<
239-
TR,
240-
crate::write::generated::gapic_storage::model::SplitReadStreamResponse,
241-
>,
242-
)
232+
.and_then(gaxi::grpc::to_gax_response::<TR, crate::write::generated::gapic_storage::model::SplitReadStreamResponse>)
243233
}
244234
}
245235

@@ -324,18 +314,13 @@ impl super::stub::BigQueryWrite for BigQueryWrite {
324314
.execute(
325315
extensions,
326316
path,
327-
req.to_proto().map_err(Error::deser)?,
317+
ToProto::<crate::google::cloud::bigquery::storage::v1::CreateWriteStreamRequest>::to_proto(req).map_err(Error::deser)?,
328318
options,
329319
&info::X_GOOG_API_CLIENT_HEADER,
330320
&x_goog_request_params,
331321
)
332322
.await
333-
.and_then(
334-
gaxi::grpc::to_gax_response::<
335-
TR,
336-
crate::write::generated::gapic_storage::model::WriteStream,
337-
>,
338-
)
323+
.and_then(gaxi::grpc::to_gax_response::<TR, crate::write::generated::gapic_storage::model::WriteStream>)
339324
}
340325

341326
fn append_rows(
@@ -428,18 +413,13 @@ impl super::stub::BigQueryWrite for BigQueryWrite {
428413
.execute(
429414
extensions,
430415
path,
431-
req.to_proto().map_err(Error::deser)?,
416+
ToProto::<crate::google::cloud::bigquery::storage::v1::GetWriteStreamRequest>::to_proto(req).map_err(Error::deser)?,
432417
options,
433418
&info::X_GOOG_API_CLIENT_HEADER,
434419
&x_goog_request_params,
435420
)
436421
.await
437-
.and_then(
438-
gaxi::grpc::to_gax_response::<
439-
TR,
440-
crate::write::generated::gapic_storage::model::WriteStream,
441-
>,
442-
)
422+
.and_then(gaxi::grpc::to_gax_response::<TR, crate::write::generated::gapic_storage::model::WriteStream>)
443423
}
444424

445425
async fn finalize_write_stream(
@@ -496,18 +476,13 @@ impl super::stub::BigQueryWrite for BigQueryWrite {
496476
.execute(
497477
extensions,
498478
path,
499-
req.to_proto().map_err(Error::deser)?,
479+
ToProto::<crate::google::cloud::bigquery::storage::v1::FinalizeWriteStreamRequest>::to_proto(req).map_err(Error::deser)?,
500480
options,
501481
&info::X_GOOG_API_CLIENT_HEADER,
502482
&x_goog_request_params,
503483
)
504484
.await
505-
.and_then(
506-
gaxi::grpc::to_gax_response::<
507-
TR,
508-
crate::write::generated::gapic_storage::model::FinalizeWriteStreamResponse,
509-
>,
510-
)
485+
.and_then(gaxi::grpc::to_gax_response::<TR, crate::write::generated::gapic_storage::model::FinalizeWriteStreamResponse>)
511486
}
512487

513488
async fn batch_commit_write_streams(
@@ -566,7 +541,10 @@ impl super::stub::BigQueryWrite for BigQueryWrite {
566541
.execute(
567542
extensions,
568543
path,
569-
req.to_proto().map_err(Error::deser)?,
544+
ToProto::<
545+
crate::google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsRequest,
546+
>::to_proto(req)
547+
.map_err(Error::deser)?,
570548
options,
571549
&info::X_GOOG_API_CLIENT_HEADER,
572550
&x_goog_request_params,
@@ -631,7 +609,10 @@ impl super::stub::BigQueryWrite for BigQueryWrite {
631609
.execute(
632610
extensions,
633611
path,
634-
req.to_proto().map_err(Error::deser)?,
612+
ToProto::<crate::google::cloud::bigquery::storage::v1::FlushRowsRequest>::to_proto(
613+
req,
614+
)
615+
.map_err(Error::deser)?,
635616
options,
636617
&info::X_GOOG_API_CLIENT_HEADER,
637618
&x_goog_request_params,

0 commit comments

Comments
 (0)