Request for the StreamingPull
streaming RPC method. This request is used to establish the initial stream as well as to stream acknowledgements and ack deadline modifications from the client to the server.
JSON representation |
---|
{ "subscription": string, "ackIds": [ string ], "modifyDeadlineSeconds": [ integer ], "modifyDeadlineAckIds": [ string ], "streamAckDeadlineSeconds": integer, "clientId": string, "maxOutstandingMessages": string, "maxOutstandingBytes": string } |
Fields | |
---|---|
subscription |
Required. The subscription for which to initialize the new stream. This must be provided in the first request on the stream, and must not be set in subsequent requests from client to server. Format is |
ackIds[] |
Optional. List of acknowledgement IDs for acknowledging previously received messages (received on this stream or a different stream). If an ack ID has expired, the corresponding message may be redelivered later. Acknowledging a message more than once will not result in an error. If the acknowledgement ID is malformed, the stream will be aborted with status |
modifyDeadlineSeconds[] |
Optional. The list of new ack deadlines for the IDs listed in |
modifyDeadlineAckIds[] |
Optional. List of acknowledgement IDs whose deadline will be modified based on the corresponding element in |
streamAckDeadlineSeconds |
Required. The ack deadline to use for the stream. This must be provided in the first request on the stream, but it can also be updated on subsequent requests from client to server. The minimum deadline you can specify is 10 seconds. The maximum deadline you can specify is 600 seconds (10 minutes). |
clientId |
Optional. A unique identifier that is used to distinguish client instances from each other. Only needs to be provided on the initial request. When a stream disconnects and reconnects for the same stream, the clientId should be set to the same value so that state associated with the old stream can be transferred to the new stream. The same clientId should not be used for different client instances. |
maxOutstandingMessages |
Optional. Flow control settings for the maximum number of outstanding messages. When there are |
maxOutstandingBytes |
Optional. Flow control settings for the maximum number of outstanding bytes. When there are |