Skip to content

feat: Remove protobuf dep on _gax#52

Merged
brianquinlan merged 4 commits intogoogleapis:mainfrom
brianquinlan:linear_deps
Oct 23, 2025
Merged

feat: Remove protobuf dep on _gax#52
brianquinlan merged 4 commits intogoogleapis:mainfrom
brianquinlan:linear_deps

Conversation

@brianquinlan
Copy link
Copy Markdown
Contributor

@brianquinlan brianquinlan commented Oct 23, 2025

Moved:

  1. JsonEncodable, ProtoMessage, ProtoEnum to google_cloud_protobuf/src/protobuf.p.dart
  2. google_cloud_gax/src/encoding.dart (and test [tests were updated]) to google_cloud_protobuf/src/encoding.dart`

Added a dependency on package:google_cloud_protobuf to package:google_cloud_gax to acomodate the move of JsonEncodable.

Depends on the code generation in googleapis/librarian#2660

Copy link
Copy Markdown
Contributor

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

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 is a well-executed refactoring that extracts Protobuf-related base classes from google_cloud_gax into a new, dedicated google_cloud_protobuf package. This significantly improves the project's architecture by promoting better separation of concerns and modularity. The associated tests have been thoughtfully migrated and enhanced with more specific matchers, increasing their robustness. The change is clean and focused. I have one suggestion to clean up some leftover documentation to finalize this refactoring.

@brianquinlan brianquinlan merged commit fb874de into googleapis:main Oct 23, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants