Skip to content

Commit

Permalink
feat: add max messages batching for Cloud Storage subscriptions (#1224)
Browse files Browse the repository at this point in the history
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] authored Jul 29, 2024
1 parent fbd9840 commit 91c89d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions google/pubsub_v1/types/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,10 @@ class CloudStorageConfig(proto.Message):
Storage file before a new file is created. Min 1 KB, max 10
GiB. The max_bytes limit may be exceeded in cases where
messages are larger than the limit.
max_messages (int):
Optional. The maximum number of messages that
can be written to a Cloud Storage file before a
new file is created. Min 1000 messages.
state (google.pubsub_v1.types.CloudStorageConfig.State):
Output only. An output-only field that
indicates whether or not the subscription can
Expand Down Expand Up @@ -1551,6 +1555,10 @@ class AvroConfig(proto.Message):
proto.INT64,
number=7,
)
max_messages: int = proto.Field(
proto.INT64,
number=8,
)
state: State = proto.Field(
proto.ENUM,
number=9,
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.22.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 91c89d3

Please sign in to comment.