-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(pubsub/v2): add new v2 library #12218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+27,041
−11,535
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* refactor imports to support v2 * remove handwritten schema client * remove handwritten topic admin methods * remove handwritten subscription admin methods * remove admin operations only tests * delete handwritten snapshot methods
* deprecate(pubsub/v2): deprecate and rename user settings * remove more code related to synchronous and byte limit
* refactor(pubsub/v2): make tests use new GAPIC library * remove examples for list operations that are no longer part of this library
* rename data plane clients * add renamed data clients * revert changes to filenames * rename subscriber * fix go docs referencing topic/subs * fix remaining data client renames * remove unused publisher method * remove TopicInProject remove TopicInProject
* chore(pubsub): revert v2 gapic to HEAD * revert info.go changes
* chore(pubsub): replace go.mod and go.work files in v1 * fix go.work formatting * run go mod tidy
* chore(pubsub): rename data clients and update documentation * more data plane renaming
* remove v2 fake * remove lingering import of v2 pstest * run go mod tidy
* feat(pubsub): add back v2 helper libraries * fix copyright header year for new files * update internal/testutil package version
* docs(pubsub): add migration guide to v2 * additional code formatting and edits to migration guide
shollyman
previously approved these changes
Jul 14, 2025
quartzmo
previously approved these changes
Jul 14, 2025
shollyman
approved these changes
Jul 14, 2025
quartzmo
approved these changes
Jul 14, 2025
This was referenced Jul 14, 2025
Merged
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 18, 2025
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 18, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 18, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 18, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 24, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Aug 25, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Sep 2, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
philicious
added a commit
to philicious/sdk-go
that referenced
this pull request
Sep 2, 2025
See googleapis/google-cloud-go#12218 for reference Signed-off-by: Philipp Schuler <philipp.schuler@command-b.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a release of the new Pub/Sub v2 library which is⚠️ backwards incompatible with the v1. The differences are summarized below:
ErrTopicStopped
->ErrPublisherStopped
We plan to support the cloud.google.com/go/pubsub (henceforth known as the v1 library) for 1 year from when the v2 library is released, to give developers proper time to migrate to the v2. We will prioritize new features in v2, but providing security and bug fixes in the v1.
Fixes #11368