Skip to content

feat(storage): make GrpcRustClient available to Storage GAPIC methods - #6745

Draft
joshuatants wants to merge 2 commits into
googleapis:grpc_rustfrom
joshuatants:grpc_rust_enable_for_unary
Draft

feat(storage): make GrpcRustClient available to Storage GAPIC methods#6745
joshuatants wants to merge 2 commits into
googleapis:grpc_rustfrom
joshuatants:grpc_rust_enable_for_unary

Conversation

@joshuatants

Copy link
Copy Markdown
Contributor

Configure grpc_client: crate::storage::bidi::GrpcClient specifically for google-cloud-storage in librarian.yaml and regenerate the GAPIC transports.

This makes GrpcRustClient available exclusively to Storage's GAPIC transports under --cfg google_cloud_unstable_grpc_rust, while defaulting to gaxi::grpc::Client (Tonic) when the flag is absent.

For #5991.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Sep 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request configures the generator in librarian.yaml to use a custom gRPC client (crate::storage::bidi::GrpcClient) instead of the default gaxi::grpc::Client for the Rust storage library. Consequently, the generated transport files for both gapic and gapic_control have been updated to use this custom client in the StorageControl struct and its initialization. There are no review comments, and I have no feedback to provide.

@joshuatants
joshuatants force-pushed the grpc_rust_enable_for_unary branch from 9e3cb16 to bae987d Compare September 9, 2026 00:09
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.95%. Comparing base (076e0a6) to head (73fce10).

Additional details and impacted files
@@              Coverage Diff              @@
##           grpc_rust    #6745      +/-   ##
=============================================
- Coverage      96.96%   96.95%   -0.01%     
=============================================
  Files            322      322              
  Lines         107029   107029              
=============================================
- Hits          103783   103774       -9     
- Misses          3246     3255       +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshuatants
joshuatants force-pushed the grpc_rust_enable_for_unary branch 2 times, most recently from aefabf0 to cd04070 Compare September 9, 2026 00:40
Comment thread src/storage/src/generated/gapic_control/transport.rs Outdated
Configure `grpc_client: crate::storage::bidi::GrpcClient` specifically
for `google-cloud-storage` in librarian.yaml and regenerate the GAPIC
transports.

This makes `GrpcRustClient` available exclusively to Storage's GAPIC
transports under `--cfg google_cloud_unstable_grpc_rust`, while defaulting
to `gaxi::grpc::Client` (Tonic) when the flag is absent.
@joshuatants
joshuatants force-pushed the grpc_rust_enable_for_unary branch from cd04070 to 3f4f626 Compare September 9, 2026 03:26
@joshuatants
joshuatants requested a review from xlai20 September 9, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants