I am working on a PubSub project and was a bit confused about the Message publish_time. I expected to get datetime per the docstring for the method. Instead I got a Timestamp that apparently comes from protobuf types. I found there is even a unit test that verifies that publish_time returns a Timestamp.
Can we return datetime? Or should the docs just be updated to explain what is actually being returned? I'd prefer the former but wanted to ask before submitting a PR, given the inconsistency.
I am working on a PubSub project and was a bit confused about the Message
publish_time. I expected to getdatetimeper the docstring for the method. Instead I got aTimestampthat apparently comes from protobuf types. I found there is even a unit test that verifies thatpublish_timereturns aTimestamp.Can we return
datetime? Or should the docs just be updated to explain what is actually being returned? I'd prefer the former but wanted to ask before submitting a PR, given the inconsistency.