The Google Sheet API, in some cases, requires the expression of range using a GridRange, for example when you wish to format some cells, as shown here: https://developers.google.com/sheets/api/samples/formatting
However, I cannot find any conversion utility from A1 notation, e.g. Sheet2!A3:B4 into GridRange.
There are two difficulties, the first is knowing what sheetId corresponds to the named sheet and the second encoding the range into 0-based indices