NAME

Google::RestApi::SheetsApi4::Request - Build Google Sheets API batchRequests with merge support.

DESCRIPTION

Inherits from Google::RestApi::Request and adds Sheets-specific request merging logic. Multiple calls for the same-named request (e.g. repeatCell) can be merged into a single request for efficiency.

See the description and synopsis at Google::RestApi::SheetsApi4.

SUBROUTINES

merge_request(\%request);

Attempts to merge the given request with an existing queued request of the same type. For example, $range->bold()->blue()->center() targets three 'repeatCell' requests that get merged into one.

submit_requests(%args);

This is a pure virtual function that must be overridden in the derived class. The derived class must decide what to do when the queued requests are ready to be sumitted. It must eventually pass the requests to the parent SheetsApi4 object.

AUTHORS

  • Robin Murray mvsjes@cpan.org

COPYRIGHT

Copyright (c) 2019-2026 Robin Murray. All rights reserved.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.