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 available is 2.63.1, with a comprehensive list of versions from 2.63.1 down to 2.7.1 provided for reference."],["`BatchResource` is an interface that represents a resource used by a batch, considering both element and byte counts, and is designed for extension to incorporate other factors for flow control or flushing."],["The `add(BatchResource resource)` method facilitates adding another `BatchResource` to the current one."],["`getByteCount()` and `getElementCount()` methods are used to retrieve the byte and element counts of a resource respectively."],["The `shouldFlush(long maxElementThreshold, long maxBytesThreshold)` method determines if a `BatchResource` should be flushed based on the provided maximum thresholds for elements and bytes."]]],[]]