# GoogleDriveDownloadCheckpoint

Portable file-download checkpoint bound to resource, revision, destination, length, and content prefix.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[GoogleDriveDownloadCheckpoint.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L37)

**Modifiers**

sealed

Portable file-download checkpoint bound to resource, revision, destination, length, and content prefix.

## Inheritance

- object
- GoogleDriveDownloadCheckpoint

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [GoogleDriveClient.DownloadToFileAsync](/api/google-workspace/officeimo-googleworkspace-drive-googledriveclient/#method-downloadtofileasync-string-string-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-func-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-system-threading-cancellationtoken-system-threading-tasks-task-int32-officeimo-googleworkspace-translationreport-threading-cancellationtoken)
- Method [GoogleDriveDownloadCheckpoint.Parse](/api/google-workspace/officeimo-googleworkspace-drive-googledrivedownloadcheckpoint/#method-parse-string)
- Property [GoogleDriveDownloadCheckpointPersistenceException.Checkpoint](/api/google-workspace/officeimo-googleworkspace-drive-googledrivedownloadcheckpointpersistenceexception/#property-checkpoint)

### Accepted by parameters 2

- Method [GoogleDriveClient.DownloadToFileAsync](/api/google-workspace/officeimo-googleworkspace-drive-googledriveclient/#method-downloadtofileasync-string-string-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-func-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-system-threading-cancellationtoken-system-threading-tasks-task-int32-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `checkpoint`
- Method [GoogleDriveClient.DownloadToFileAsync](/api/google-workspace/officeimo-googleworkspace-drive-googledriveclient/#method-downloadtofileasync-string-string-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-func-officeimo-googleworkspace-drive-googledrivedownloadcheckpoint-system-threading-cancellationtoken-system-threading-tasks-task-int32-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `checkpointSink`

Filter members 

Show inherited

## Methods

`public static GoogleDriveDownloadCheckpoint Parse(string value)` [#](#method-parse-string)

[GoogleDriveDownloadCheckpoint.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L37)

Parses and validates a persisted download checkpoint.

Parameters

**value string required**

URL-safe checkpoint value returned by [GoogleDriveDownloadCheckpoint.Value](/api/google-workspace/officeimo-googleworkspace-drive-googledrivedownloadcheckpoint/).

Returns

`GoogleDriveDownloadCheckpoint` The validated checkpoint.

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

[GoogleDriveDownloadCheckpoint.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L59)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

## 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`

## Properties

`public string Value { get; }` [#](#property-value)

[GoogleDriveDownloadCheckpoint.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L17)

Gets the URL-safe opaque value to persist for restart.

`public string FileId { get; }` [#](#property-fileid)

[GoogleDriveDownloadCheckpoint.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L19)

Gets the Drive file identifier bound to the checkpoint.

`public long ExpectedVersion { get; }` [#](#property-expectedversion)

[GoogleDriveDownloadCheckpoint.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L21)

Gets the Drive file version that must remain unchanged.

`public long TotalBytes { get; }` [#](#property-totalbytes)

[GoogleDriveDownloadCheckpoint.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L23)

Gets the expected complete file length in bytes.

`public long ConfirmedBytes { get; }` [#](#property-confirmedbytes)

[GoogleDriveDownloadCheckpoint.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L25)

Gets the durable byte count already confirmed in the destination.

`public int ChunkSize { get; }` [#](#property-chunksize)

[GoogleDriveDownloadCheckpoint.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L27)

Gets the chunk size used to calculate prefix fingerprints.

`public string DestinationIdentity { get; }` [#](#property-destinationidentity)

[GoogleDriveDownloadCheckpoint.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L29)

Gets the SHA-256 identity of the absolute destination path.

`public string PrefixFingerprint { get; }` [#](#property-prefixfingerprint)

[GoogleDriveDownloadCheckpoint.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveDownloadCheckpoint.cs#L31)

Gets the chained SHA-256 fingerprint of the confirmed destination prefix.

<!-- PowerForge markdown artifact sha256:3F3E291680124296EC9C5694F7D6865308D8210C9F45D1B9F94EB09CCFA6EC43 -->
