Interface BatchingRequestBuilder<ElementT,RequestT> (2.35.0)

publicinterface BatchingRequestBuilder<ElementT,RequestT>

Adapter to pack individual elements into a larger batch request.

The implementation for this interface will be implemented by service specific client or auto generated by the gapic-generator.

Type Parameters

Name Description
ElementT
RequestT

Methods

add(ElementT element)

publicabstractvoidadd(ElementTelement)

Adds element object into client specific batch request.

Parameter
Name Description
element ElementT

build()

publicabstractRequestTbuild()

Returns the collected elements as a single client specific batch request.

Returns
Type Description
RequestT

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.