A Batch contains a collection of requests that are to be batched into a single API call.
A Batch contains a singleUnaryCallableobject, which will be used to make the API
call, and a list ofBatchedRequestIssuerobjects, which represent the individual requests
in the batch.
Additional batches can be merged into an existing batch using the#merge(Batch)method. Request objects are combined using aRequestBuilderinto a single request.
This is public only for technical reasons, for advanced usage.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eBatch\u003c/code\u003e class within the Google API Client Library for Java, specifically version 2.13.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatch\u003c/code\u003e class allows for the aggregation of multiple requests into a single API call, improving efficiency.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatch\u003c/code\u003e class includes methods to obtain the number of bytes, the associated \u003ccode\u003eUnaryCallable\u003c/code\u003e, the overall request, the list of request issuers, and how to merge additional batches.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage lists various versions of the API, with version 2.63.1 being the most recent and version 2.7.1 being the oldest, in addition to giving a link to each of their respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatch\u003c/code\u003e class's constructor takes a \u003ccode\u003eBatchingDescriptor\u003c/code\u003e, a request, a \u003ccode\u003eUnaryCallable\u003c/code\u003e, and a \u003ccode\u003eBatchedFuture\u003c/code\u003e as parameters, for advanced usage.\u003c/p\u003e\n"]]],[],null,[]]