Skip to content

Commit 14f0c2c

Browse files
Google APIscopybara-github
authored andcommitted
feature: Add flow control settings for StreamingPullRequest to pubsub.proto
PiperOrigin-RevId: 317914250
1 parent 4dfcfdc commit 14f0c2c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

google/pubsub/v1/pubsub.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,28 @@ message StreamingPullRequest {
11091109
// transferred to the new stream. The same client_id should not be used for
11101110
// different client instances.
11111111
string client_id = 6;
1112+
1113+
// Flow control settings for the maximum number of outstanding messages. When
1114+
// there are `max_outstanding_messages` or more currently sent to the
1115+
// streaming pull client that have not yet been acked or nacked, the server
1116+
// stops sending more messages. The sending of messages resumes once the
1117+
// number of outstanding messages is less than this value. If the value is
1118+
// <= 0, there is no limit to the number of outstanding messages. This
1119+
// property can only be set on the initial StreamingPullRequest. If it is set
1120+
// on a subsequent request, the stream will be aborted with status
1121+
// `INVALID_ARGUMENT`.
1122+
int64 max_outstanding_messages = 7;
1123+
1124+
// Flow control settings for the maximum number of outstanding bytes. When
1125+
// there are `max_outstanding_bytes` or more worth of messages currently sent
1126+
// to the streaming pull client that have not yet been acked or nacked, the
1127+
// server will stop sending more messages. The sending of messages resumes
1128+
// once the number of outstanding bytes is less than this value. If the value
1129+
// is <= 0, there is no limit to the number of outstanding bytes. This
1130+
// property can only be set on the initial StreamingPullRequest. If it is set
1131+
// on a subsequent request, the stream will be aborted with status
1132+
// `INVALID_ARGUMENT`.
1133+
int64 max_outstanding_bytes = 8;
11121134
}
11131135

11141136
// Response for the `StreamingPull` method. This response is used to stream

0 commit comments

Comments
 (0)