Represent the resource used by a batch including element and byte. It can also be extended to
other things to determine if adding a new element needs to be flow controlled or if the current
batch needs to be flushed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["The latest version of the `BatchResource` is 2.63.1, with various other versions available for reference, ranging from 2.2.0 all the way up to the latest."],["`BatchResource` represents a resource used by a batch, tracking elements and bytes, and can be extended for custom batching logic."],["The `add()` method is used to combine another `BatchResource` to the current `BatchResource`, returning the combined `BatchResource`."],["The `getByteCount()` and `getElementCount()` methods provide the byte and element counts for the current resource respectively."],["The `shouldFlush()` method checks if the `BatchResource` should be flushed based on maximum element and byte thresholds."]]],[]]