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"]],[["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-04-09 UTC."],[[["The latest version available for `BatchResource` is 2.63.1, with a list of previous versions going back to version 2.7.1, all accessible through provided links."],["`BatchResource` is an interface that represents a resource used by a batch, including element and byte counts, which can also be extended."],["The `add(BatchResource resource)` method allows for adding an additional resource to the current `BatchResource`, returning the updated resource."],["The methods `getByteCount()` and `getElementCount()` provide a way to retrieve the byte and element counts of a `BatchResource`, respectively."],["The `shouldFlush(long maxElementThreshold, long maxBytesThreshold)` method determines if a `BatchResource` should be flushed based on specified thresholds for maximum elements and bytes."]]],[]]