Interface BatchingRequestBuilder<ElementT,RequestT>

Type Parameters:
ElementT - The type of each individual element to be batched.
RequestT - The type of the request that will contain the accumulated elements.

@InternalApi("For google-cloud-java client use only.") public interface 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.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(ElementT element)
    Adds element object into client specific batch request.
    Returns the collected elements as a single client specific batch request.
  • Method Details

    • add

      void add(ElementT element)
      Adds element object into client specific batch request.
    • build

      RequestT build()
      Returns the collected elements as a single client specific batch request.