n-oden commented on a change in pull request #14767:
URL: https://github.com/apache/beam/pull/14767#discussion_r631103651



##########
File path: sdks/python/apache_beam/io/gcp/pubsub.py
##########
@@ -294,6 +327,9 @@ def message_to_proto_str(element):
       raise TypeError(
           'Unexpected element. Type: %s (expected: PubsubMessage), '
           'value: %r' % (type(element), element))
+    # message_id and publish_time cannot be written back to pubsub

Review comment:
       actually yeah, putting this into `_to_proto_str` makes a lot of sense 
and that way we don't eat memory copying the message. 👍 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to