private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    factory = null;
                    batchUpdateSpreadsheetRequest = null;
                }

                disposedValue = true;
            }
        }
 public GoogleSheetsBatchUpdateRequests()
 {
     this.factory = new GoogleSheetsFactory();
     this.batchUpdateSpreadsheetRequest          = new BatchUpdateSpreadsheetRequest();
     this.batchUpdateSpreadsheetRequest.Requests = new List <Request>();
 }