# GoogleSheetsDiffPlanner

Builds source fingerprints and compares an Excel document with native Google Sheets data.

Class 

`OfficeIMO.Excel.GoogleSheets`

**Namespace**

`OfficeIMO.Excel.GoogleSheets`

**Assembly**

`OfficeIMO.Excel.GoogleSheets`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[GoogleSheetsDiffPlan.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsDiffPlan.cs#L63)

**Modifiers**

static

Builds source fingerprints and compares an Excel document with native Google Sheets data.

## Inheritance

- object
- GoogleSheetsDiffPlanner

Filter members 

Show inherited

## Methods

`public static async Task<GoogleSheetsDiffPlan> BuildAsync(ExcelDocument source, string spreadsheetId, GoogleWorkspaceSession session, GoogleSheetsSyncCheckpoint? checkpoint = null, CancellationToken cancellationToken = default)` [#](#method-buildasync-officeimo-excel-exceldocument-string-officeimo-googleworkspace-googleworkspacesession-officeimo-excel-googlesheets-googlesheetssynccheckpoint-threading-cancellationtoken)

Imports the remote spreadsheet natively and compares it with the source and optional baseline.

Parameters

**source OfficeIMO.Excel.ExcelDocument required**

**spreadsheetId string required**

**session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required**

**checkpoint OfficeIMO.Excel.GoogleSheets.GoogleSheetsSyncCheckpoint? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<GoogleSheetsDiffPlan>`

`public static GoogleSheetsSyncCheckpoint CreateCheckpoint(ExcelDocument document, long? driveVersion = null)` [#](#method-createcheckpoint-officeimo-excel-exceldocument-nullable-system-int64)

[GoogleSheetsDiffPlan.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/GoogleSheetsDiffPlan.cs#L63)

Captures source content hashes and an optional observed remote Drive version.

Parameters

**document OfficeIMO.Excel.ExcelDocument required**

**driveVersion long? = null optional**

Returns

`GoogleSheetsSyncCheckpoint`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:63C6270725E38309CA7268A513C4106B23D42A52A732554025F381D117AEA615 -->
