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 <xref uid="com.google.api.gax.rpc.Batch.merge(com.google.api.gax.rpc.Batch<RequestT,ResponseT>)" data-throw-if-not-resolved="false">#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\u003eThe provided content is a documentation page for the \u003ccode\u003eBatch\u003c/code\u003e class in the Google API Client Library for Java, specifically within the \u003ccode\u003ecom.google.api.gax.rpc\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation page provides access to various versions of the \u003ccode\u003eBatch\u003c/code\u003e class, ranging from version 2.63.1 (latest) down to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatch\u003c/code\u003e class is designed to contain and manage a collection of requests, which are processed together in a single API call.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatch\u003c/code\u003e class can merge with another batch and uses a \u003ccode\u003eRequestBuilder\u003c/code\u003e to combine requests into one, and a \u003ccode\u003eUnaryCallable\u003c/code\u003e object is used to execute the API call.\u003c/p\u003e\n"],["\u003cp\u003eThere is an inheritance hierarchy for the \u003ccode\u003eBatch\u003c/code\u003e class, with \u003ccode\u003eBatch<RequestT,ResponseT>\u003c/code\u003e inheriting from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]