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-03-21 UTC."],[[["This webpage provides documentation for the `BatchResource` interface within the Google API Client Libraries for Java (gax) library, showcasing versions ranging from 2.7.1 to the latest release, 2.63.1."],["The `BatchResource` interface represents a resource used by a batch, tracking element and byte counts, and determining if a new element should be flow-controlled or if the current batch needs to be flushed."],["Key methods within the `BatchResource` interface include `add(BatchResource resource)` for adding resources, `getByteCount()` for retrieving the byte count, `getElementCount()` for retrieving the element count, and `shouldFlush(long maxElementThreshold, long maxBytesThreshold)` for determining if a batch should be flushed based on size thresholds."],["The documentation outlines the parameters and return types for each method, detailing the usage and data types involved, such as `BatchResource`, `long`, and `boolean`."],["The oldest version available for documentation is 2.7.1, while the newest version is 2.63.1, with many minor versions available in between."]]],[]]