{object} SubscriberOptions {number} [ackDeadline=10] Acknowledge deadline in seconds. If left unset, the initial value will be 10 seconds, but it will evolve into the 99th percentile time it takes to acknowledge a message, subject to the limitations of minAckDeadline and maxAckDeadline. If ackDeadline is set by the user, then the min/max values will be set to match it. New code should prefer setting minAckDeadline and maxAckDeadline directly. {Duration} [minAckDeadline] The minimum time that ackDeadline should ever have, while it's under library control. {Duration} [maxAckDeadline] The maximum time that ackDeadline should ever have, while it's under library control. {BatchOptions} [batching] Request batching options. {FlowControlOptions} [flowControl] Flow control options. {boolean} [useLegacyFlowControl] Disables enforcing flow control settings at the Cloud PubSub server and uses the less accurate method of only enforcing flow control at the client side. {MessageStreamOptions} [streamingOptions] Streaming options.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface SubscriberOptions (4.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.8.0 (latest)](/nodejs/docs/reference/pubsub/latest/pubsub/subscriberoptions)\n- [4.4.0](/nodejs/docs/reference/pubsub/4.4.0/pubsub/subscriberoptions)\n- [4.3.3](/nodejs/docs/reference/pubsub/4.3.3/pubsub/subscriberoptions)\n- [4.1.1](/nodejs/docs/reference/pubsub/4.1.1/pubsub/subscriberoptions)\n- [4.0.7](/nodejs/docs/reference/pubsub/4.0.7/pubsub/subscriberoptions)\n- [3.7.5](/nodejs/docs/reference/pubsub/3.7.5/pubsub/subscriberoptions)\n- [3.2.1](/nodejs/docs/reference/pubsub/3.2.1/pubsub/subscriberoptions)\n- [3.1.1](/nodejs/docs/reference/pubsub/3.1.1/pubsub/subscriberoptions)\n- [3.0.3](/nodejs/docs/reference/pubsub/3.0.3/pubsub/subscriberoptions)\n- [2.18.3](/nodejs/docs/reference/pubsub/2.18.3/pubsub/subscriberoptions)\n- [2.17.0](/nodejs/docs/reference/pubsub/2.17.0/pubsub/subscriberoptions)\n- [2.16.6](/nodejs/docs/reference/pubsub/2.16.6/pubsub/subscriberoptions)\n- [2.13.0](/nodejs/docs/reference/pubsub/2.13.0/pubsub/subscriberoptions) \n{object} SubscriberOptions {number} \\[ackDeadline=10\\] Acknowledge deadline in seconds. If left unset, the initial value will be 10 seconds, but it will evolve into the 99th percentile time it takes to acknowledge a message, subject to the limitations of minAckDeadline and maxAckDeadline. If ackDeadline is set by the user, then the min/max values will be set to match it. New code should prefer setting minAckDeadline and maxAckDeadline directly. {Duration} \\[minAckDeadline\\] The minimum time that ackDeadline should ever have, while it's under library control. {Duration} \\[maxAckDeadline\\] The maximum time that ackDeadline should ever have, while it's under library control. {BatchOptions} \\[batching\\] Request batching options. {FlowControlOptions} \\[flowControl\\] Flow control options. {boolean} \\[useLegacyFlowControl\\] Disables enforcing flow control settings at the Cloud PubSub server and uses the less accurate method of only enforcing flow control at the client side. {MessageStreamOptions} \\[streamingOptions\\] Streaming options.\n\nPackage\n-------\n\n[@google-cloud/pubsub](../overview.html)\n\nProperties\n----------\n\n### ackDeadline\n\n ackDeadline?: number;\n\n### batching\n\n batching?: BatchOptions;\n\n### enableOpenTelemetryTracing\n\n enableOpenTelemetryTracing?: boolean;\n\n### flowControl\n\n flowControl?: FlowControlOptions;\n\n### maxAckDeadline\n\n maxAckDeadline?: Duration;\n\n### minAckDeadline\n\n minAckDeadline?: Duration;\n\n### streamingOptions\n\n streamingOptions?: MessageStreamOptions;\n\n### useLegacyFlowControl\n\n useLegacyFlowControl?: boolean;"]]