docs: clarify that proto plus messages are not pickleable#260
Merged
software-dov merged 2 commits intogoogleapis:masterfrom Oct 8, 2021
Merged
docs: clarify that proto plus messages are not pickleable#260software-dov merged 2 commits intogoogleapis:masterfrom
software-dov merged 2 commits intogoogleapis:masterfrom
Conversation
Clarify that proto-plus messages are not pickleable, describe the alternative, and give a multiprocessing example. Note: in the future, we _may_ enable pickling proto-plus messages through custom extensions as described in https://docs.python.org/3/library/pickle.html#pickling-class-instances This is _not_ guaranteed. For the foreseeable future, the preferred method of serializing and deserializing proto-plus messages is Message.serialize and Message.deserialize
efac97b to
d6911d2
Compare
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 21 +1
Lines 862 933 +71
Branches 149 169 +20
=========================================
+ Hits 862 933 +71
Continue to review full report at Codecov.
|
busunkim96
approved these changes
Oct 8, 2021
tseaver
added a commit
that referenced
this pull request
Dec 8, 2021
FBO of frameworks such as Apache Beam, which use them for sharing state between trusted hosts. Closes #260.
tseaver
added a commit
that referenced
this pull request
Dec 9, 2021
FBO of frameworks such as Apache Beam, which use them for sharing state between trusted hosts. Closes #260.
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
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.
Clarify that proto-plus messages are not pickleable, describe the
alternative, and give a multiprocessing example.
Note: in the future, we may enable pickling proto-plus messages
through custom extensions as described in
https://docs.python.org/3/library/pickle.html#pickling-class-instances
This is not guaranteed. For the foreseeable future, the preferred
method of serializing and deserializing proto-plus messages is
Message.serialize and Message.deserialize
Closes #162