batchCreateChunks method

  1. @override
Future<BatchCreateChunksResponse> batchCreateChunks(
  1. BatchCreateChunksRequest request
)
override

Batch create Chunks.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<BatchCreateChunksResponse> batchCreateChunks(
  BatchCreateChunksRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_batchCreateChunks case final batchCreateChunks?) {
    return batchCreateChunks(request);
  }
  throw UnsupportedError('batchCreateChunks');
}