Skip to content

Commit

Permalink
docs: clarified where ordering_key will be written if write_metadata …
Browse files Browse the repository at this point in the history
…is set (#965)

* docs: clarified where ordering_key will be written if write_metadata is set

PiperOrigin-RevId: 551210991

Source-Link: googleapis/googleapis@7c762d7

Source-Link: googleapis/googleapis-gen@15fe4c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTVmZTRjNWZmNWViZDUyOTExYjQyOWIwNWI5OTJlMjMyZjUzMzUxZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 26, 2023
1 parent c56f33b commit 3d95034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion google/pubsub_v1/types/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,11 @@ class AvroConfig(proto.Message):
write_metadata (bool):
When true, write the subscription name, message_id,
publish_time, attributes, and ordering_key as additional
fields in the output.
fields in the output. The subscription name, message_id, and
publish_time fields are put in their own fields while all
other message properties other than data (for example, an
ordering_key, if present) are added as entries in the
attributes map.
"""

write_metadata: bool = proto.Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-pubsub",
"version": "2.18.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 3d95034

Please sign in to comment.